Files
2026-01-31 22:56:48 -08:00

184 lines
3.2 KiB
CSS

body {
font-family: helvetica, sans-serif, arial;
font-size: 1em;
color: #111;
margin: 0;
padding: 0;
height: 100vh;
display: grid;
grid-template-rows: 24px 1fr;
overflow: hidden;
}
#banner {
background: #161716;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
}
.banner-title {
color: #5DA5D5;
font-weight: bold;
font-size: 14px;
}
.banner-tabs {
display: flex;
gap: 2px;
}
.banner-tabs button {
background: transparent;
border: none;
color: #ccc;
padding: 4px 10px;
cursor: pointer;
font-size: 12px;
outline-offset: -1px;
}
.banner-tabs button:hover {
background: rgba(255,255,255,0.1);
}
.banner-tabs button.active {
background: rgba(255,255,255,0.2);
color: #fff;
}
p {
font-size: 0.9em;
font-style: italic
}
dl:first-child,
p:first-child {
margin-top: 0;
}
#option-container {
display: flex;
justify-content: center;
}
.option-group {
display: inline-block;
padding-left: 20px;
vertical-align: top;
}
pre {
display: block;
padding: 9.5px;
font-size: 13px;
color: #c7254e;
background-color: #f9f2f4;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
}
#container {
display: flex;
position: relative;
min-height: 0;
}
.grid {
flex: 1;
width: 100%;
min-width: 100px;
}
div:first-of-type.grid {
flex: 2;
height: 100%;
}
/* Sidebar */
#sidebar {
position: fixed;
top: 24px;
right: 15px; /* Room for scrollbar */
width: 400px;
max-width: calc(100vw - 30px); /* Don't exceed screen width minus scrollbar */
height: 500px;
background: #161716;
color: #fff;
border: 1px solid #333;
border-top: none;
box-shadow: 0 2px 10px rgba(0,0,0,0.4);
z-index: 1000;
overflow: auto;
flex: none;
opacity: 0.5;
transition: opacity 0.1s;
}
#sidebar:hover {
opacity: 1;
}
#sidebar.sidebar-hidden {
display: none;
}
/* Resize handles */
#sidebar-resize-handle-horizontal {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 6px;
cursor: ew-resize;
background: transparent;
}
#sidebar-resize-handle-horizontal:hover {
background: rgba(0, 120, 212, 0.3);
}
#sidebar-resize-handle-vertical {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 6px;
cursor: ns-resize;
background: transparent;
}
#sidebar-resize-handle-vertical:hover {
background: rgba(0, 120, 212, 0.3);
}
#sidebar-resize-handle-corner {
position: absolute;
left: 0;
bottom: 0;
width: 12px;
height: 12px;
cursor: nesw-resize;
background: transparent;
}
#sidebar-resize-handle-corner:hover {
background: rgba(0, 120, 212, 0.5);
}
/* Style the tab content */
.tabContent {
display: none;
padding: 6px 12px;
border-top: none;
}
#texture-atlas-zoom:checked ~ #texture-atlas canvas {
/* Zoom atlas to the width of the container*/
width: 100% !important;
height: auto !important;
}
#texture-atlas {
width: 100%;
}
#texture-atlas canvas {
image-rendering: pixelated;
border: 1px solid #ccc;
}
.vt-button * {
margin-right: 1em;
}
input#opt-cols_rows {
width: 6em;
}