123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794 |
- :root {
- color-scheme: light dark;
- }
- [hidden] {
- display: none !important;
- }
- body {
- font-family: Helvetica, Arial, sans-serif;
- font-size: 14px;
- margin: 0;
- overflow: hidden;
- }
- hr {
- border: 0;
- border-top: 1px solid #ccc;
- }
- button {
- position: relative;
- }
- input {
- vertical-align: middle;
- }
- input[type="color"]::-webkit-color-swatch-wrapper {
- padding: 0;
- }
- input[type="color"]::-webkit-color-swatch {
- border: none;
- }
- textarea {
- tab-size: 4;
- white-space: pre;
- word-wrap: normal;
- }
- textarea.success {
- border-color: #8b8 !important;
- }
- textarea.fail {
- border-color: #f00 !important;
- background-color: rgba(255,0,0,0.05);
- }
- textarea, input { outline: none; } /* osx */
- .Panel {
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- /* No support for these yet */
- -o-user-select: none;
- user-select: none;
- }
- .TabbedPanel {
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- /* No support for these yet */
- -o-user-select: none;
- user-select: none;
- position: relative;
- display: block;
- width: 100%;
- min-width: 335px;
- }
- .TabbedPanel .Tabs {
- position: relative;
- z-index: 1; /** Above .Panels **/
- display: block;
- width: 100%;
- white-space: pre;
- overflow: hidden;
- overflow-x: auto;
- }
- .TabbedPanel .Tabs::-webkit-scrollbar {
- height: 5px;
- background: #eee;
- }
- .TabbedPanel .Tabs::-webkit-scrollbar-thumb {
- background: #08f3;
- }
- .TabbedPanel .Tabs:hover::-webkit-scrollbar-thumb {
- background: #08f;
- cursor: ew-resize;
- }
- .TabbedPanel .Tabs .Tab {
- padding: 10px 9px;
- text-transform: uppercase;
- }
- .TabbedPanel .Panels {
- position: absolute;
- top: 40px;
- display: block;
- width: 100%;
- }
- /* Listbox */
- .Listbox {
- color: #444;
- background-color: #fff;
- padding: 0;
- width: 100%;
- min-height: 180px;
- font-size: 12px;
- cursor: default;
- overflow: auto;
- }
- .Listbox .ListboxItem {
- padding: 6px;
- color: #666;
- white-space: nowrap;
- }
- .Listbox .ListboxItem.active {
- background-color: rgba(0, 0, 0, 0.04);
- }
- /* CodeMirror */
- .CodeMirror {
- position: absolute !important;
- top: 37px;
- width: 100% !important;
- height: calc(100% - 37px) !important;
- }
- .CodeMirror .errorLine {
- background: rgba(255,0,0,0.25);
- }
- .CodeMirror .esprima-error {
- color: #f00;
- text-align: right;
- padding: 0 20px;
- }
- /* outliner */
- #outliner .opener {
- display: inline-block;
- width: 14px;
- height: 14px;
- margin: 0px 4px;
- vertical-align: top;
- text-align: center;
- }
- #outliner .opener.open:after {
- content: '−';
- }
- #outliner .opener.closed:after {
- content: '+';
- }
- #outliner .option {
- border: 1px solid transparent;
- }
- #outliner .option.drag {
- border: 1px dashed #999;
- }
- #outliner .option.dragTop {
- border-top: 1px dashed #999;
- }
- #outliner .option.dragBottom {
- border-bottom: 1px dashed #999;
- }
- #outliner .type {
- display: inline-block;
- width: 14px;
- height: 14px;
- color: #ddd;
- text-align: center;
- }
- #outliner .type:after {
- content: '●';
- }
- /* */
- #outliner .Scene {
- color: #8888dd;
- }
- #outliner .Camera {
- color: #dd8888;
- }
- #outliner .Light {
- color: #dddd88;
- }
- /* */
- #outliner .Object3D {
- color: #aaaaee;
- }
- #outliner .Mesh {
- color: #8888ee;
- }
- #outliner .Line {
- color: #88ee88;
- }
- #outliner .LineSegments {
- color: #88ee88;
- }
- #outliner .Points {
- color: #ee8888;
- }
- /* */
- #outliner .Geometry {
- color: #aaeeaa;
- }
- #outliner .Material {
- color: #eeaaee;
- }
- /* */
- #outliner .Script:after {
- content: '◎'
- }
- /* */
- button {
- color: #555;
- background-color: #ddd;
- border: 0px;
- margin: 0px; /* GNOME Web */
- padding: 5px 8px;
- font-size: 12px;
- text-transform: uppercase;
- cursor: pointer;
- outline: none;
- }
- button:hover {
- background-color: #fff;
- }
- button.selected {
- background-color: #fff;
- }
- input, textarea {
- border: 1px solid transparent;
- color: #444;
- }
- input.Number {
- color: #08f!important;
- font-size: 12px;
- border: 0px;
- padding: 2px;
- }
- select {
- color: #666;
- background-color: #ddd;
- border: 0px;
- text-transform: uppercase;
- cursor: pointer;
- outline: none;
- }
- select:hover {
- background-color: #fff;
- }
- /* UI */
- #resizer {
- position: absolute;
- z-index: 2; /* Above #sidebar */
- top: 32px;
- right: 350px;
- width: 5px;
- bottom: 0px;
- transform: translatex(2.5px);
- cursor: col-resize;
- }
- #resizer:hover {
- background-color: #08f8;
- transition-property: background-color;
- transition-delay: 0.1s;
- transition-duration: 0.2s;
- }
- #resizer:active {
- background-color: #08f;
- }
- #viewport {
- position: absolute;
- top: 32px;
- left: 0;
- right: 350px;
- bottom: 0;
- }
- #viewport .Text {
- text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
- pointer-events: none;
- }
- #script {
- position: absolute;
- top: 32px;
- left: 0;
- right: 350px;
- bottom: 0;
- opacity: 0.9;
- }
- #player {
- position: absolute;
- top: 32px;
- left: 0;
- right: 350px;
- bottom: 0;
- }
- #menubar {
- position: absolute;
- width: 100%;
- height: 32px;
- background: #eee;
- padding: 0;
- margin: 0;
- right: 0;
- top: 0;
- }
- #menubar .menu {
- float: left;
- cursor: pointer;
- padding-right: 8px;
- }
- #menubar .menu.right {
- float: right;
- cursor: auto;
- padding-right: 0;
- text-align: right;
- }
- #menubar .menu .title {
- display: inline-block;
- color: #888;
- margin: 0;
- padding: 8px;
- line-height: 16px;
- }
- #menubar .menu .key {
- position: absolute;
- right: 10px;
- color: #ccc;
- border: 1px solid #ccc;
- border-radius: 4px;
- font-size: 9px;
- padding: 2px 4px;
- right: 10px;
- pointer-events: none;
- }
- #menubar .menu .options {
- position: fixed;
- z-index: 1; /* higher than resizer */
- display: none;
- padding: 5px 0;
- background: #eee;
- min-width: 150px;
- max-height: calc(100vh - 80px);
- overflow: auto;
- }
- #menubar .menu:hover .options {
- display: block;
- box-shadow: 0 10px 10px -5px #00000033;
- }
- #menubar .menu .options hr {
- border-color: #ddd;
- }
- #menubar .menu .options .option {
- color: #666;
- background-color: transparent;
- padding: 5px 10px;
- margin: 0 !important;
- }
- #menubar .menu .options .option:hover {
- color: #fff;
- background-color: #08f;
- }
- #menubar .menu .options .option:not(.submenu-title):active {
- color: #666;
- background: transparent;
- }
- #menubar .menu .options .option.toggle::before {
- content: ' ';
- display: inline-block;
- width: 16px;
- }
- #menubar .menu .options .option.toggle-on::before {
- content: '✔';
- font-size: 12px;
- }
- #menubar .submenu-title::after {
- content: '⏵';
- float: right;
- }
- #menubar .menu .options .inactive {
- color: #bbb;
- background-color: transparent;
- padding: 5px 10px;
- margin: 0 !important;
- cursor: not-allowed;
- }
-
- #sidebar {
- position: absolute;
- right: 0;
- top: 32px;
- bottom: 0;
- width: 350px;
- background: #eee;
- overflow: auto;
- overflow-x: hidden;
- }
- #sidebar .Panel {
- color: #888;
- padding: 10px;
- border-top: 1px solid #ccc;
- }
- #sidebar .Panel.collapsed {
- margin-bottom: 0;
- }
- #sidebar .Row {
- display: flex;
- align-items: center;
- min-height: 24px;
- margin-bottom: 10px;
- }
- #sidebar .Row .Label {
- width: 120px;
- }
- #tabs {
- background-color: #ddd;
- border-top: 1px solid #ccc;
- }
- #tabs span {
- color: #aaa;
- border-right: 1px solid #ccc;
- padding: 10px;
- }
- #tabs span.selected {
- color: #888;
- background-color: #eee;
- }
- #toolbar {
- position: absolute;
- left: 10px;
- top: 42px;
- width: 32px;
- background: #eee;
- text-align: center;
- }
- #toolbar button, #toolbar input {
- height: 32px;
- }
- #toolbar button img {
- width: 16px;
- opacity: 0.5;
- }
- .Outliner {
- color: #444;
- background-color: #fff;
- padding: 0;
- width: 100%;
- height: 180px;
- font-size: 12px;
- cursor: default;
- overflow: auto;
- resize: vertical;
- outline: none !important;
- }
- .Outliner .option {
- padding: 4px;
- color: #666;
- white-space: nowrap;
- }
- .Outliner .option:hover {
- background-color: rgba(0,0,0,0.02);
- }
- .Outliner .option.active {
- background-color: rgba(0,0,0,0.04);
- }
- .TabbedPanel .Tabs {
- background-color: #ddd;
- border-top: 1px solid #ccc;
- }
- .TabbedPanel .Tab {
- color: #aaa;
- border-right: 1px solid #ccc;
- }
- .TabbedPanel .Tab.selected {
- color: #888;
- background-color: #eee;
- }
- .Listbox {
- color: #444;
- background-color: #fff;
- }
- .Panel {
- color: #888;
- }
- /* */
- @media all and ( max-width: 600px ) {
- #resizer {
- display: none;
- }
- #menubar .menu .options {
- max-height: calc(100% - 80px);
- }
- #menubar .menu.right {
- display: none;
- }
- #viewport {
- left: 0;
- right: 0;
- top: 32px;
- height: calc(100% - 352px);
- }
- #script {
- left: 0;
- right: 0;
- top: 32px;
- height: calc(100% - 352px);
- }
- #player {
- left: 0;
- right: 0;
- top: 32px;
- height: calc(100% - 352px);
- }
- #sidebar {
- left: 0;
- width: 100%;
- top: calc(100% - 320px);
- bottom: 0;
- }
- }
- /* DARK MODE */
- @media ( prefers-color-scheme: dark ) {
- button {
- color: #aaa;
- background-color: #222;
- }
- button:hover {
- color: #ccc;
- background-color: #444;
- }
- button.selected {
- color: #fff;
- background-color: #08f;
- }
- input, textarea {
- background-color: #222;
- border: 1px solid transparent;
- color: #888;
- }
- select {
- color: #aaa;
- background-color: #222;
- }
- select:hover {
- color: #ccc;
- background-color: #444;
- }
- /* UI */
- #menubar {
- background: #111;
- }
- #menubar .menu .key {
- color: #444;
- border-color: #444;
- }
- #menubar .menu .options {
- background: #111;
- }
- #menubar .menu .options hr {
- border-color: #222;
- }
- #menubar .menu .options .option {
- color: #888;
- }
- #menubar .menu .options .inactive {
- color: #444;
- }
- #sidebar {
- background-color: #111;
- }
- #sidebar .Panel {
- border-top: 1px solid #222;
- }
- #sidebar .Panel.Material canvas {
- border: solid 1px #5A5A5A;
- }
- #tabs {
- background-color: #1b1b1b;
- border-top: 1px solid #222;
- }
- #tabs span {
- color: #555;
- border-right: 1px solid #222;
- }
- #tabs span.selected {
- background-color: #111;
- }
- #toolbar {
- background-color: #111;
- }
- #toolbar img {
- filter: invert(1);
- }
- .Outliner {
- background: #222;
- }
- .Outliner .option {
- color: #999;
- }
- .Outliner .option:hover {
- background-color: rgba(21,60,94,0.5);
- }
- .Outliner .option.active {
- background-color: rgba(21,60,94,1);
- }
- .TabbedPanel .Tabs {
- background-color: #1b1b1b;
- border-top: 1px solid #222;
- }
- .TabbedPanel .Tabs::-webkit-scrollbar {
- background: #111;
- }
- .TabbedPanel .Tab {
- color: #555;
- border-right: 1px solid #222;
- }
- .TabbedPanel .Tab.selected {
- color: #888;
- background-color: #111;
- }
- .Listbox {
- color: #888;
- background: #222;
- }
- .Listbox .ListboxItem:hover {
- background-color: rgba(21,60,94,0.5);
- }
- .Listbox .ListboxItem.active {
- background-color: rgba(21,60,94,1);
- }
- }
- /* Temporary Chrome fix (#24794) */
- [draggable="true"] {
- transform: translate(0, 0);
- z-index: 0;
- }
|