sim/ui/style.css

191 lines
2.6 KiB
CSS
Raw Normal View History

body {
margin: 0;
background: #111;
color: #ddd;
font: 13px monospace;
}
.app {
display: flex;
}
.map {
flex: 1;
min-width: 0;
height: 100vh;
overflow: hidden;
}
canvas {
display: block;
width: 100%;
height: 100%;
}
@media (max-width: 900px) {
.app {
flex-direction: column;
}
.map {
flex: none;
width: 100%;
height: 70vh;
}
.side {
width: 100%;
height: auto;
}
}
.side {
flex: none;
width: 340px;
height: 100vh;
overflow-y: auto;
padding: 10px;
box-sizing: border-box;
}
.panel-heading {
display: flex;
align-items: center;
justify-content: space-between;
}
.panel-heading h3 {
margin: 1em 0;
}
.about-dialog {
width: min(560px, calc(100vw - 40px));
max-height: min(640px, calc(100vh - 40px));
padding: 24px;
overflow: auto;
border: 1px solid #56615c;
border-top: 3px solid #9bbf8a;
border-radius: 4px;
background: #171b19;
color: #ddd;
font: inherit;
line-height: 1.6;
}
.about-dialog::backdrop {
background: rgb(0 0 0 / 72%);
}
.about-dialog h2 {
margin: 4px 0 12px;
font-size: 20px;
line-height: 1.3;
}
.about-dialog h3 {
margin: 22px 0 4px;
color: #b7d1a8;
font-size: 14px;
}
.about-dialog p {
margin: 8px 0;
color: #c2c9c4;
}
.about-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
}
.about-kicker {
color: #a7c895 !important;
font-size: 11px;
}
.about-close {
flex: none;
}
.about-actions {
display: flex;
justify-content: flex-end;
margin-top: 20px;
}
.side input[type=number] {
width: 56px;
}
.stage-settings {
display: flex;
align-items: center;
gap: 4px;
margin: 4px 0;
}
.stage-settings strong {
width: 92px;
}
.setting {
display: inline-flex;
align-items: center;
gap: 4px;
margin: 3px;
}
.log div {
margin: 2px 0;
color: #aaa;
}
.hover {
color: #fc6;
min-height: 1.2em;
}
.hint {
color: #888;
}
.editor-panel {
display: none;
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(760px, 70vw);
flex-direction: column;
background: #1e1e1e;
border-left: 1px solid #444;
z-index: 10;
}
.editor-bar {
padding: 6px 10px;
display: flex;
gap: 8px;
align-items: center;
}
.editor-host {
flex: 1;
min-height: 0;
}
.vim-status {
padding: 2px 10px;
font: 12px monospace;
min-height: 1.4em;
}
.script-err {
padding: 6px 10px;
max-height: 25vh;
overflow: auto;
color: #f77;
white-space: pre-wrap;
}