diff --git a/.bobconfigrc b/.bobconfigrc index 7c11e6d8a..10f37a0ed 100644 --- a/.bobconfigrc +++ b/.bobconfigrc @@ -9,5 +9,7 @@ "examplesMediaDest": "./docs/media/", "fontsMediaDest": "./docs/media/fonts/", "metaGlob": "./live-examples/**/meta.json", - "pagesDir": "./docs/pages/" + "pagesDir": "./docs/pages/", + "editorHeights": "./editor-heights.json", + "heightData": "./docs/height-data.json" } diff --git a/editor-heights.json b/editor-heights.json new file mode 100644 index 000000000..3526bad79 --- /dev/null +++ b/editor-heights.json @@ -0,0 +1,134 @@ +{ + "editors": [ + { + "name": "css", + "heights": [ + { + "minFrameWidth": 0, + "height": 675 + }, + { + "minFrameWidth": 590, + "height": 375 + } + ] + }, + { + "name": "js-taller", + "heights": [ + { + "minFrameWidth": 0, + "height": 723 + }, + { + "minFrameWidth": 590, + "height": 654 + } + ] + }, + { + "name": "js-standard", + "heights": [ + { + "minFrameWidth": 0, + "height": 513 + }, + { + "minFrameWidth": 590, + "height": 444 + } + ] + }, + { + "name": "js-smaller", + "heights": [ + { + "minFrameWidth": 0, + "height": 433 + }, + { + "minFrameWidth": 590, + "height": 364 + } + ] + }, + { + "name": "wat-taller", + "heights": [ + { + "minFrameWidth": 0, + "height": 686 + }, + { + "minFrameWidth": 590, + "height": 617 + } + ] + }, + { + "name": "wat-standard", + "heights": [ + { + "minFrameWidth": 0, + "height": 476 + }, + { + "minFrameWidth": 590, + "height": 407 + } + ] + }, + { + "name": "wat-smaller", + "heights": [ + { + "minFrameWidth": 0, + "height": 406 + }, + { + "minFrameWidth": 590, + "height": 337 + } + ] + }, + { + "name": "tabbed-taller", + "heights": [ + { + "minFrameWidth": 0, + "height": 774 + }, + { + "minFrameWidth": 590, + "height": 630 + } + ] + }, + { + "name": "tabbed-standard", + "heights": [ + { + "minFrameWidth": 0, + "height": 549 + }, + { + "minFrameWidth": 590, + "height": 420 + } + ] + }, + { + "name": "tabbed-shorter", + "heights": [ + { + "minFrameWidth": 0, + "height": 487 + }, + { + "minFrameWidth": 590, + "height": 350 + } + ] + } + ] +} diff --git a/editor/css/editor-libs/common.css b/editor/css/editor-libs/common.css index bddb0876b..230d71af5 100644 --- a/editor/css/editor-libs/common.css +++ b/editor/css/editor-libs/common.css @@ -457,19 +457,30 @@ body { justify-content: space-between; align-items: center; gap: 1rem; - border-bottom: 1px solid var(--border-primary); } -.output-header.no-border { - border-bottom: 0 none; +.border-rounded-top { + border: 1px solid var(--border-primary); + border-radius: var(--button-radius) var(--button-radius) 0 0; } -.output-header.full-border { - border: 1px solid var(--border-primary); - border-width: 1px 1px 0 1px; +.border-rounded-top-no-bottom { + border: solid var(--border-primary); + border-width: 1px 1px 0; border-radius: var(--button-radius) var(--button-radius) 0 0; } +.border-sides { + border: solid var(--border-primary); + border-width: 0 1px; +} + +.border-rounded-bottom { + border: solid var(--border-primary); + border-width: 0 1px 1px; + border-radius: 0 0 var(--button-radius) var(--button-radius); +} + .output-heading { margin: 0; font: var(--type-body-l); diff --git a/editor/css/tabbed-editor.css b/editor/css/tabbed-editor.css index 682651313..29862d644 100644 --- a/editor/css/tabbed-editor.css +++ b/editor/css/tabbed-editor.css @@ -75,7 +75,6 @@ .console-container { position: relative; - border-top: 1px solid var(--border-primary); padding-top: 0.5rem; } diff --git a/editor/tmpl/live-css-tmpl.html b/editor/tmpl/live-css-tmpl.html index cc810a6bf..ecfab26d0 100644 --- a/editor/tmpl/live-css-tmpl.html +++ b/editor/tmpl/live-css-tmpl.html @@ -12,7 +12,7 @@