| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030 |
- :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: 36px;
- 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: 4px;
- color: #666;
- white-space: nowrap;
- }
- .Listbox .ListboxItem:hover {
- background-color: rgba(0, 0, 0, 0.02);
- }
- .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: 3px solid #ddd;
- border-radius: 4px;
- text-transform: uppercase;
- cursor: pointer;
- outline: none;
- }
- .Select:hover {
- background-color: #fff;
- }
- /* UI */
- #resizer {
- position: absolute;
- z-index: 2; /* Above #sidebar */
- top: 36px;
- 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: 36px;
- left: 0;
- right: 350px;
- bottom: 36px;
- }
- #viewport .Text {
- text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
- pointer-events: none;
- }
- #animation {
- position: absolute;
- left: 0;
- right: 350px;
- bottom: 0;
- height: 36px;
- background: #eee;
- border-top: 1px solid #ccc;
- display: none;
- flex-direction: row;
- }
- #animation .Panel {
- color: #888;
- }
- #animation input[type="range"] {
- accent-color: #08f;
- }
- #animation-resizer {
- position: absolute;
- left: 0;
- right: 350px;
- bottom: 36px;
- height: 5px;
- transform: translateY(2.5px);
- cursor: row-resize;
- z-index: 2;
- }
- #animation-resizer:hover {
- background-color: #08f8;
- transition-property: background-color;
- transition-delay: 0.1s;
- transition-duration: 0.2s;
- }
- #animation-resizer:active {
- background-color: #08f;
- }
- #script {
- position: absolute;
- top: 36px;
- left: 0;
- right: 350px;
- bottom: 0;
- opacity: 0.9;
- }
- #player {
- position: absolute;
- top: 36px;
- left: 0;
- right: 350px;
- bottom: 0;
- }
- #menubar {
- position: absolute;
- width: 100%;
- height: 36px;
- 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: 10px;
- line-height: 16px;
- }
- #menubar .menu .key {
- position: absolute;
- right: 10px;
- color: #ccc;
- border: 1px solid #ccc;
- border-radius: 4px;
- font-size: 9px;
- line-height: normal;
- 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;
- line-height: 25px;
- 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;
- line-height: 25px;
- margin: 0 !important;
- cursor: not-allowed;
- }
-
- #sidebar {
- position: absolute;
- right: 0;
- top: 36px;
- 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: calc(50% - 175px);
- transform: translateX(-50%);
- bottom: 56px;
- height: 32px;
- background: #eee;
- text-align: center;
- display: flex;
- align-items: center;
- gap: 2px;
- border-radius: 6px;
- border: 3px solid #eee;
- overflow: hidden;
- }
- #toolbar .Button, #toolbar .Input {
- height: 32px;
- border-radius: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- #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;
- }
- #animation-resizer {
- display: none;
- }
- #menubar .menu .options {
- max-height: calc(100% - 80px);
- }
- #menubar .menu.right {
- display: none;
- }
- #viewport {
- left: 0;
- right: 0;
- top: 36px;
- height: calc(100% - 356px);
- }
- #script {
- left: 0;
- right: 0;
- top: 36px;
- height: calc(100% - 356px);
- }
- #player {
- left: 0;
- right: 0;
- top: 36px;
- height: calc(100% - 356px);
- }
- #sidebar {
- left: 0;
- width: 100%;
- top: calc(100% - 320px);
- bottom: 0;
- }
- #toolbar {
- left: 50%;
- transform: translateX(-50%);
- bottom: 330px;
- }
- #animation {
- display: none !important;
- }
- }
- /* 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;
- border-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;
- }
- #animation {
- background-color: #111;
- border-top: 1px solid #222;
- }
- #animation .Panel {
- border-bottom: 1px solid #222;
- }
- #animation .timeline-container {
- background: rgba(255, 255, 255, 0.05);
- }
- #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;
- border-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);
- }
- }
- /* Dialog */
- .Dialog {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 100;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .Dialog-background {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- }
- .Dialog-content {
- position: relative;
- background: #eee;
- min-width: 300px;
- max-width: 90%;
- max-height: 90%;
- overflow: auto;
- }
- .Dialog-title {
- padding: 10px 15px;
- color: #666;
- text-transform: uppercase;
- }
- .Dialog-body {
- padding: 15px;
- }
- .Dialog-body .Row {
- display: flex;
- align-items: center;
- min-height: 24px;
- margin-bottom: 10px;
- }
- .Dialog-body .Row .Label {
- width: 120px;
- color: #888;
- }
- .Dialog-buttons {
- display: flex;
- justify-content: flex-end;
- margin-top: 15px;
- }
- .TextureParametersDialog-content {
- min-width: 480px;
- }
- .TextureParametersDialog-split {
- display: flex;
- gap: 20px;
- }
- .TextureParametersDialog-preview {
- flex: 0 0 auto;
- }
- .TextureParametersDialog-preview canvas {
- border: 1px solid #888;
- background: #000;
- display: block;
- max-width: 100%;
- height: auto;
- }
- .TextureParametersDialog-form {
- flex: 1 1 auto;
- min-width: 0;
- }
- @media all and ( max-width: 600px ) {
- .TextureParametersDialog-content {
- min-width: 0;
- width: 90vw;
- }
- .TextureParametersDialog-split {
- flex-direction: column;
- }
- .TextureParametersDialog-preview {
- align-self: center;
- max-width: 100%;
- }
- }
- .TextureParametersDialog-groupHeading {
- margin: 12px 0 6px;
- padding-bottom: 2px;
- border-bottom: 1px solid #ccc;
- font-weight: bold;
- text-transform: uppercase;
- font-size: 11px;
- color: #666;
- }
- .TextureParametersDialog-groupHeading:first-child {
- margin-top: 0;
- }
- @media ( prefers-color-scheme: dark ) {
- .TextureParametersDialog-groupHeading {
- border-bottom-color: #444;
- color: #888;
- }
- }
- .TextureSettingsButton {
- padding: 0 4px;
- line-height: 16px;
- }
- @media ( prefers-color-scheme: dark ) {
- .Dialog-content {
- background: #111;
- }
- .Dialog-title {
- color: #888;
- }
- }
- /* Temporary Chrome fix (#24794) */
- [draggable="true"] {
- transform: translate(0, 0);
- z-index: 0;
- }
|