|
| 1 | +* { |
| 2 | + padding:0; |
| 3 | + margin:0; |
| 4 | +} |
| 5 | + |
| 6 | +.blocks_js_editor { |
| 7 | + width:100%; |
| 8 | + height:100%; |
| 9 | + position:relative; |
| 10 | +} |
| 11 | + |
| 12 | +.blocks_js_editor .blocks { |
| 13 | + overflow:hidden; |
| 14 | +} |
| 15 | + |
| 16 | +.blocks_js_editor svg { |
| 17 | + position:absolute; |
| 18 | + z-index:1; |
| 19 | +} |
| 20 | + |
| 21 | +.blocks_js_editor .blocks { |
| 22 | + overflow:hidden; |
| 23 | + position:absolute; |
| 24 | + z-index:3; |
| 25 | + width:100%; |
| 26 | + height:100%; |
| 27 | +} |
| 28 | + |
| 29 | +/** |
| 30 | + * Menu bar |
| 31 | + */ |
| 32 | + |
| 33 | +.blocks_js_editor .menubar { |
| 34 | + width:100%; |
| 35 | + height:30px; |
| 36 | + z-index:1; |
| 37 | +} |
| 38 | + |
| 39 | +.blocks_js_editor .contextmenu, |
| 40 | +.blocks_js_editor .childs { |
| 41 | + width:120px; |
| 42 | + padding:0px; |
| 43 | + position:absolute; |
| 44 | + display:none; |
| 45 | + float:left; |
| 46 | + z-index:99; |
| 47 | +} |
| 48 | + |
| 49 | +.blocks_js_editor .contextmenu, |
| 50 | +.blocks_js_editor .childs |
| 51 | +{ |
| 52 | + box-shadow:0px 0px 5px #666; |
| 53 | + border:1px solid #aaa; |
| 54 | + background-color:#fff; |
| 55 | +} |
| 56 | + |
| 57 | +.blocks_js_editor .menubar .add span { |
| 58 | + color:green; |
| 59 | +} |
| 60 | + |
| 61 | +.blocks_js_editor .contextmenu .types { |
| 62 | +} |
| 63 | + |
| 64 | +.blocks_js_editor .contextmenu .type, |
| 65 | +.blocks_js_editor .contextmenu .menuentry, |
| 66 | +.blocks_js_editor .contextmenu .family { |
| 67 | + font-size:14px; |
| 68 | + padding:1px; |
| 69 | + cursor:pointer; |
| 70 | + background-color:#fff; |
| 71 | + height:18px; |
| 72 | + background-image:url('gfx/menufade.png'); |
| 73 | + color:#666; |
| 74 | + border-left:1px solid #aaa; |
| 75 | + border-right:1px solid #aaa; |
| 76 | + border-top:none; |
| 77 | + border-bottom:none; |
| 78 | + margin-left:-1px; |
| 79 | + margin-right:-1px; |
| 80 | + background-repeat:repeat-x; |
| 81 | + padding:3px; |
| 82 | +} |
| 83 | + |
| 84 | +.blocks_js_editor .contextmenu .menu_icon |
| 85 | +{ |
| 86 | + width:16px; |
| 87 | + height:16px; |
| 88 | + float:left; |
| 89 | + background-repeat:no-repeat; |
| 90 | + margin-right:3px; |
| 91 | +} |
| 92 | + |
| 93 | +.blocks_js_editor .contextmenu .menu_icon_compact |
| 94 | +{ |
| 95 | + background-image:url('gfx/compact.png'); |
| 96 | +} |
| 97 | + |
| 98 | +.blocks_js_editor .contextmenu .menu_icon_scale |
| 99 | +{ |
| 100 | + background-image:url('gfx/scale.png'); |
| 101 | +} |
| 102 | + |
| 103 | +.blocks_js_editor .contextmenu .family:hover, |
| 104 | +.blocks_js_editor .contextmenu .menuentry:hover, |
| 105 | +.blocks_js_editor .contextmenu .type:hover { |
| 106 | + background-image:url('gfx/menufadeOver.png'); |
| 107 | + color:black; |
| 108 | +} |
| 109 | + |
| 110 | +.blocks_js_editor .contextmenu .family .childs { |
| 111 | + margin-left:121px; |
| 112 | + margin-top:-20px; |
| 113 | +} |
| 114 | + |
| 115 | +.blocks_js_editor .contextmenu .family .familyName span { |
| 116 | + float:right; |
| 117 | +} |
| 118 | + |
| 119 | +.blocks_js_editor .contextmenu .family h3 { |
| 120 | + font-size:100%; |
| 121 | + font-weight:bold; |
| 122 | + cursor:pointer; |
| 123 | +} |
| 124 | + |
| 125 | +/** |
| 126 | + * Blocks |
| 127 | + */ |
| 128 | + |
| 129 | +.blocks_js_editor .block { |
| 130 | + position:absolute; |
| 131 | + background-image:url('gfx/blockFade.png'); |
| 132 | + background-repeat:repeat-x; |
| 133 | + border:2px solid #fafafa; |
| 134 | + box-shadow:5px 5px 10px #aaa; |
| 135 | + padding:1px; |
| 136 | + margin-left:0px; |
| 137 | + margin-top:0px; |
| 138 | + background-color:#fafafa; |
| 139 | + opacity:0.8; |
| 140 | + font-size:14px; |
| 141 | + -moz-user-select:none; |
| 142 | + -khtml-user-select:none; |
| 143 | + -webkit-user-select:none; |
| 144 | + -o-user-select:none; |
| 145 | +} |
| 146 | + |
| 147 | +.blocks_js_editor .block .description { |
| 148 | + display:none; |
| 149 | + width:200px; |
| 150 | + padding:3px; |
| 151 | + border:1px solid #083776; |
| 152 | + border-radius:5px; |
| 153 | + color:#001531; |
| 154 | + background-color:#91bcf6; |
| 155 | + margin-top:15px; |
| 156 | + position:absolute; |
| 157 | + font-weight:normal; |
| 158 | +} |
| 159 | + |
| 160 | +.blocks_js_editor .blockTitle { |
| 161 | + font-weight:bold; |
| 162 | + background-color:#ddd; |
| 163 | + background-image:url('gfx/titleFade.png'); |
| 164 | + background-repeat:repeat-x; |
| 165 | + padding:1px; |
| 166 | + margin:-1px; |
| 167 | + margin-bottom:2px; |
| 168 | + cursor:move; |
| 169 | + font-size:80%; |
| 170 | +} |
| 171 | + |
| 172 | +.blocks_js_editor .blockTitle .blockId { |
| 173 | + opacity:0.4; |
| 174 | +} |
| 175 | + |
| 176 | +.blocks_js_editor .block .blockicon |
| 177 | +{ |
| 178 | + margin:0; |
| 179 | + padding:0; |
| 180 | + width:14px; |
| 181 | + height:14px; |
| 182 | + float:right; |
| 183 | + cursor:pointer; |
| 184 | + opacity:0.5; |
| 185 | + margin-right:2px; |
| 186 | +} |
| 187 | + |
| 188 | +.blocks_js_editor .block .blockicon:hover { |
| 189 | + opacity:1.0; |
| 190 | +} |
| 191 | + |
| 192 | +.blocks_js_editor .block .settings { |
| 193 | + background-image:url('gfx/settings.png'); |
| 194 | +} |
| 195 | + |
| 196 | +.blocks_js_editor .block .delete { |
| 197 | + background-image:url('gfx/delete.png'); |
| 198 | +} |
| 199 | + |
| 200 | +.blocks_js_editor .block .info { |
| 201 | + background-image:url('gfx/info.png'); |
| 202 | +} |
| 203 | + |
| 204 | +.blocks_js_editor .block_selected { |
| 205 | + border:2px solid #0a0; |
| 206 | +} |
| 207 | + |
| 208 | +.blocks_js_editor .block_selected .blockTitle { |
| 209 | + background-color:#0c0; |
| 210 | +} |
| 211 | + |
| 212 | +.blocks_js_editor .inputs, |
| 213 | +.blocks_js_editor .outputs { |
| 214 | + width:80px; |
| 215 | +} |
| 216 | + |
| 217 | +.blocks_js_editor .outputs { |
| 218 | + float:right; |
| 219 | +} |
| 220 | + |
| 221 | +.blocks_js_editor .inputs { |
| 222 | + float:left; |
| 223 | +} |
| 224 | + |
| 225 | +.blocks_js_editor .inputs.loopable { |
| 226 | + float:right; |
| 227 | +} |
| 228 | + |
| 229 | +.blocks_js_editor .outputs.loopable { |
| 230 | + float:left; |
| 231 | +} |
| 232 | + |
| 233 | +.blocks_js_editor .connector { |
| 234 | + font-size:80%; |
| 235 | + padding-top:2px; |
| 236 | + background-repeat:no-repeat; |
| 237 | + cursor:pointer; |
| 238 | + clear:both; |
| 239 | + width:130px; |
| 240 | +} |
| 241 | + |
| 242 | +.blocks_js_editor .connector.disabled { |
| 243 | + opacity:0.4; |
| 244 | +} |
| 245 | + |
| 246 | +.blocks_js_editor .output { |
| 247 | + text-align:right; |
| 248 | +} |
| 249 | + |
| 250 | +.blocks_js_editor .circle { |
| 251 | + width:12px; |
| 252 | + height:12px; |
| 253 | + background-image:url('gfx/circle.png'); |
| 254 | + background-size:12px 12px; |
| 255 | +} |
| 256 | + |
| 257 | +.blocks_js_editor .circle.io_active { |
| 258 | + background-image:url('gfx/circle_full.png'); |
| 259 | +} |
| 260 | + |
| 261 | +.blocks_js_editor .circle.io_selected { |
| 262 | + background-image:url('gfx/circle_selected.png') !important; |
| 263 | +} |
| 264 | + |
| 265 | +.blocks_js_editor input, |
| 266 | +.blocks_js_editor textarea |
| 267 | +{ |
| 268 | + font-family:Courier; |
| 269 | +} |
| 270 | + |
| 271 | +.blocks_js_editor .input, |
| 272 | +.blocks_js_editor .loopable .output |
| 273 | +{ |
| 274 | + float:left; |
| 275 | +} |
| 276 | + |
| 277 | +.blocks_js_editor .input .circle, |
| 278 | +.blocks_js_editor .loopable .output .circle, |
| 279 | +.blocks_js_editor .parameter .circle { |
| 280 | + float:left; |
| 281 | + margin:1px; |
| 282 | +} |
| 283 | + |
| 284 | +.blocks_js_editor .input .circle.io_active, |
| 285 | +.blocks_js_editor .loopable .output .circle.io_active |
| 286 | +{ |
| 287 | + float:left; |
| 288 | + margin:1px; |
| 289 | +} |
| 290 | + |
| 291 | +.blocks_js_editor .output, |
| 292 | +.blocks_js_editor .loopable .input { |
| 293 | + float:right; |
| 294 | +} |
| 295 | + |
| 296 | +.blocks_js_editor .output .circle, |
| 297 | +.blocks_js_editor .loopable .input .circle |
| 298 | +{ |
| 299 | + float:right; |
| 300 | + margin:1px; |
| 301 | +} |
| 302 | + |
| 303 | +.blocks_js_editor .block .parameters { |
| 304 | + display:none; |
| 305 | + position:absolute; |
| 306 | + border:2px solid #aaa; |
| 307 | + padding:3px; |
| 308 | + z-index:50; |
| 309 | + width:250px; |
| 310 | + margin-left:-5px; |
| 311 | + margin-top:-5px; |
| 312 | + background-color:white; |
| 313 | +} |
| 314 | + |
| 315 | +/** |
| 316 | + * Messages |
| 317 | + */ |
| 318 | +.blocks_js_editor .messages { |
| 319 | + display:none; |
| 320 | + width:350px; |
| 321 | + position:absolute; |
| 322 | + z-index:100; |
| 323 | +} |
| 324 | + |
| 325 | +.blocks_js_editor .message { |
| 326 | + padding:5px; |
| 327 | + font-size:14px; |
| 328 | + cursor:pointer; |
| 329 | + border:3px solid; |
| 330 | + border-radius:5px; |
| 331 | +} |
| 332 | + |
| 333 | +.blocks_js_editor .messages ul { |
| 334 | + list-style:circle; |
| 335 | + margin-left:20px; |
| 336 | +} |
| 337 | + |
| 338 | +.blocks_js_editor .message.error { |
| 339 | + color:red; |
| 340 | + border-color:red; |
| 341 | + background-color:#ffe3e3; |
| 342 | +} |
| 343 | + |
| 344 | +.blocks_js_editor .message.valid { |
| 345 | + color:green; |
| 346 | + border-color:green; |
| 347 | + background-color:#eeffee; |
| 348 | +} |
| 349 | + |
| 350 | +.blocks_js_modal button { |
| 351 | + margin:5px; |
| 352 | + padding:2px; |
| 353 | + cursor:pointer; |
| 354 | + border:0; |
| 355 | + color:#222; |
| 356 | + font-size:18px; |
| 357 | +} |
| 358 | + |
| 359 | +.blocks_js_modal button.close { |
| 360 | + color:white; |
| 361 | + background-color:#ff4646; |
| 362 | +} |
| 363 | + |
| 364 | +.blocks_js_modal button.save { |
| 365 | + color:white; |
| 366 | + background-color:#21c40c; |
| 367 | + float:right; |
| 368 | +} |
| 369 | + |
| 370 | +.blocks_js_modal input, |
| 371 | +.blocks_js_modal select, |
| 372 | +.blocks_js_modal textarea { |
| 373 | + width:250px; |
| 374 | + padding:2px; |
| 375 | + border:1px solid #aaa; |
| 376 | + border-radius:2px; |
| 377 | + background-color:#fafafa; |
| 378 | +} |
0 commit comments