Files
xteink-web-emulator/web/styles.css
T
2026-07-20 14:25:43 -04:00

78 lines
3.0 KiB
CSS

:root {
color-scheme: light;
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
color: #20211f;
background: #e9e5dc;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
width: min(100% - 2rem, 70rem);
margin: 0 auto;
padding: 2.5rem 0 4rem;
}
header { margin-bottom: 1.5rem; }
header p { max-width: 42rem; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.eyebrow { margin-bottom: .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.boot-panel {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: end;
padding: 1rem;
border: 1px solid #c8c2b6;
border-radius: .75rem;
background: #f7f4ed;
}
label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 700; }
input, select, button { font: inherit; }
input, select { min-height: 2.6rem; padding: .5rem; border: 1px solid #aaa398; border-radius: .4rem; background: white; }
button { min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid #55534e; border-radius: .5rem; color: #fff; background: #343532; font-weight: 750; cursor: pointer; touch-action: none; }
button:hover:not(:disabled) { background: #11120f; }
button:focus-visible { outline: 3px solid #d2752b; outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .4; }
button.active { transform: translateY(2px); background: #d2752b; }
.status { min-height: 1.5rem; margin: 1rem 0; }
.status.error { color: #a52d20; font-weight: 700; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.device { display: flex; justify-content: center; }
.device-frame {
display: grid;
grid-template-columns: auto minmax(14rem, 30rem) auto;
grid-template-rows: auto auto auto;
gap: .6rem;
align-items: stretch;
justify-items: stretch;
}
.screen-shell { grid-column: 2; grid-row: 2; padding: 1.1rem; border-radius: 1.2rem; background: #30312e; box-shadow: 0 1rem 2.5rem #5d584c40; }
canvas { display: block; width: 100%; height: auto; background: #fff; image-rendering: pixelated; }
.device-frame button { min-height: 0; border-radius: .6rem; }
.btn-power { grid-column: 2; grid-row: 1; height: 1.6rem; }
.btn-side { grid-row: 2; width: 1.6rem; }
.btn-up { grid-column: 1; }
.btn-down { grid-column: 3; }
.btn-bottom { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.btn-bottom button { height: 1.6rem; }
@media (max-width: 48rem) {
main { padding-top: 1.5rem; }
.workspace { grid-template-columns: 1fr; }
}
.log-panel { min-width: 0; }
.log-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .85rem; color: #b9b3a4; }
.log-header button { min-height: auto; padding: .25rem .75rem; font-size: .8rem; }
.log { margin: 0; max-height: 20rem; overflow: auto; padding: .75rem 1rem; border-radius: .6rem; background: #1c1d1a; color: #d6d0c2; font: .78rem/1.4 ui-monospace, monospace; white-space: pre-wrap; word-break: break-word; }