Files
Thomas Farstrike 6738c96400 Beautify WebREPL
2026-03-24 11:06:58 +01:00

141 lines
2.8 KiB
CSS

:root {
color-scheme: light;
--bg: #ffffff;
--panel: #f6f7f9;
--panel-border: #e1e5ea;
--text: #1c1f24;
--muted: #5c6572;
--accent: #f0a010;
--accent-hover: #e08f00;
--accent-active: #cc7f00;
--shadow: 0 10px 30px rgba(19, 27, 43, 0.08);
--radius: 12px;
--focus-ring: 0 0 0 3px rgba(240, 160, 16, 0.3);
}
* {
box-sizing: border-box;
}
html {
background: var(--bg);
}
body {
margin: 0;
padding: 24px 28px 32px;
font: 16px/1.6 "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
color: var(--text);
background: var(--bg);
}
h1 {
margin: 0 0 20px;
font: 600 24px/1.3 "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
color: var(--text);
}
form {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-bottom: 16px;
}
/* Fixed-height wrapper keeps the terminal footprint stable; rows are computed from this height. */
#term-wrapper {
height: 420px;
}
/* Terminal fills the wrapper; row count is recalculated on load/resize only. */
#term {
height: 100%;
border-radius: var(--radius);
border: 1px solid var(--panel-border);
background: #0f141b;
color: #f1f5f9;
padding: 8px;
box-shadow: var(--shadow);
overflow: hidden;
}
#file-boxes {
margin-left: 20px;
}
.file-box {
margin: 0 0 16px;
padding: 14px 16px 16px;
background: var(--panel);
border: 1px solid var(--panel-border);
border-radius: var(--radius);
box-shadow: var(--shadow);
display: grid;
gap: 10px;
}
.file-box strong {
font-size: 15px;
}
#file-status {
color: var(--muted);
font-size: 14px;
}
input[type="text"],
input[type="file"] {
width: 100%;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--panel-border);
background: #ffffff;
color: var(--text);
font-size: 14px;
}
input[type="text"]:focus,
input[type="file"]:focus {
outline: none;
border-color: var(--accent);
box-shadow: var(--focus-ring);
}
input[type="submit"],
input[type="button"] {
padding: 10px 16px;
border-radius: 999px;
border: none;
background: var(--accent);
color: #1a1200;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
box-shadow: 0 8px 18px rgba(240, 160, 16, 0.35);
}
input[type="submit"]:hover,
input[type="button"]:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
input[type="submit"]:active,
input[type="button"]:active {
background: var(--accent-active);
transform: translateY(0);
}
input[type="submit"]:focus,
input[type="button"]:focus {
outline: none;
box-shadow: var(--focus-ring);
}
i {
color: var(--muted);
font-size: 13px;
}