130 lines
7.1 KiB
CSS
130 lines
7.1 KiB
CSS
:root {
|
|
--bg: #0f1216;
|
|
--panel: #171c23;
|
|
--border: #262d38;
|
|
--text: #e6e9ef;
|
|
--muted: #8b95a5;
|
|
--accent: #4f9dff;
|
|
--accent-hover: #3b86e6;
|
|
--danger: #ff5c5c;
|
|
--ok: #37c871;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
/* The hidden attribute wins over any display set by a class. */
|
|
[hidden] { display: none !important; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
}
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
header.topbar {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--panel);
|
|
}
|
|
header.topbar .brand { font-weight: 600; }
|
|
header.topbar nav a { margin-left: 18px; color: var(--muted); }
|
|
header.topbar nav a:hover { color: var(--text); }
|
|
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
|
|
.center { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
|
|
.card {
|
|
background: var(--panel); border: 1px solid var(--border);
|
|
border-radius: 10px; padding: 24px; margin-bottom: 20px;
|
|
}
|
|
h1 { font-size: 22px; margin: 0 0 18px; }
|
|
h2 { font-size: 17px; margin: 0 0 14px; }
|
|
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
|
|
input[type=text], input[type=password], input[type=number] {
|
|
width: 100%; padding: 10px 12px; border-radius: 8px;
|
|
border: 1px solid var(--border); background: #0c0f13; color: var(--text); font-size: 14px;
|
|
}
|
|
/* No native spinner: it is drawn light and breaks the dark field. */
|
|
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
|
|
input[type=number]::-webkit-inner-spin-button,
|
|
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
|
/* Sized and shaped like .btn.ghost so it lines up with the buttons next to it. */
|
|
select {
|
|
-webkit-appearance: none; appearance: none; cursor: pointer;
|
|
min-width: 180px; padding: 10px 38px 10px 14px; border-radius: 8px;
|
|
border: 1px solid var(--border); color: var(--text);
|
|
font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5;
|
|
background: #0c0f13 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
|
|
}
|
|
select:hover, select:focus { border-color: var(--accent); outline: none; }
|
|
select:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
|
|
button, .btn {
|
|
display: inline-block; cursor: pointer; border: 0; border-radius: 8px;
|
|
padding: 10px 16px; font-size: 14px; font-weight: 500;
|
|
background: var(--accent); color: #fff;
|
|
}
|
|
button:hover, .btn:hover { background: var(--accent-hover); text-decoration: none; }
|
|
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
|
|
.btn.danger { background: var(--danger); }
|
|
/* Close buttons: red text and border on the ghost button. */
|
|
.btn.close, .btn.ghost.close { background: transparent; border: 1px solid rgba(255, 92, 92, .6); color: var(--danger); }
|
|
.btn.close:hover, .btn.ghost.close:hover { background: #3a1d1d; border-color: var(--danger); }
|
|
.btn.small { padding: 6px 10px; font-size: 13px; }
|
|
.btn.icon { width: 30px; height: 30px; padding: 0; display: inline-flex;
|
|
align-items: center; justify-content: center; font-size: 14px; line-height: 1; text-decoration: none; }
|
|
/* Name of an icon button, shown at once on hover or keyboard focus. */
|
|
[data-tip] { position: relative; }
|
|
[data-tip]::after {
|
|
content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%;
|
|
transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; white-space: nowrap;
|
|
background: #0c0f13; border: 1px solid var(--border); color: var(--text);
|
|
font-size: 12px; font-weight: 400; line-height: 1.4;
|
|
opacity: 0; visibility: hidden; pointer-events: none; z-index: 10;
|
|
}
|
|
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
|
|
.err { background: #3a1d1d; border: 1px solid #6b2b2b; color: #ffb3b3; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
|
|
th { color: var(--muted); font-weight: 500; }
|
|
.nowrap { white-space: nowrap; }
|
|
/* Row buttons stay on one line; the column is only as wide as they need. */
|
|
td.actions { width: 1%; white-space: nowrap; }
|
|
td.actions .row { flex-wrap: nowrap; justify-content: flex-end; }
|
|
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
|
|
.dot.on { background: var(--ok); }
|
|
.dot.off { background: #555d6a; }
|
|
.muted { color: var(--muted); }
|
|
code, pre {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
background: #0c0f13; border: 1px solid var(--border); border-radius: 8px;
|
|
}
|
|
code { padding: 2px 6px; font-size: 13px; }
|
|
pre { padding: 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
|
|
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
|
.spacer { flex: 1; }
|
|
#terminal { width: 100%; height: calc(100vh - 150px); }
|
|
/* Phones. A table marked .stack turns each row into a block of
|
|
"label: value" lines, the labels coming from data-l on the cells; a cell
|
|
marked .lead goes first, as the row's title. */
|
|
@media (max-width: 640px) {
|
|
header.topbar { flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; }
|
|
header.topbar .brand { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
|
|
header.topbar nav { display: flex; align-items: center; gap: 16px; max-width: 100%;
|
|
overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
|
|
header.topbar nav::-webkit-scrollbar { display: none; }
|
|
header.topbar nav > * { margin-left: 0 !important; flex: none; }
|
|
.wrap { padding: 16px 12px; }
|
|
.card { padding: 16px; border-radius: 8px; }
|
|
h1 { font-size: 20px; }
|
|
code { word-break: break-all; }
|
|
/* 16px and up, or iOS zooms the page into a field on focus. */
|
|
input[type=text], input[type=password], input[type=number], select, textarea { font-size: 16px; }
|
|
table.stack thead { display: none; }
|
|
table.stack, table.stack tbody { display: block; }
|
|
table.stack tr { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
|
|
table.stack tr:first-child { padding-top: 0; }
|
|
table.stack tr:last-child { border-bottom: 0; padding-bottom: 0; }
|
|
table.stack td { display: flex; justify-content: flex-start; align-items: center; gap: 0;
|
|
width: auto; padding: 2px 0; border: 0; text-align: right !important; overflow-wrap: anywhere; }
|
|
table.stack td[data-l]::before { content: attr(data-l); flex: none; margin-right: auto; padding-right: 12px; color: var(--muted); font-size: 13px; text-align: left; }
|
|
table.stack td.lead { order: -1; justify-content: flex-start; text-align: left !important; font-size: 16px; font-weight: 600; }
|
|
table.stack td.actions { width: auto; padding-top: 8px; justify-content: flex-start; }
|
|
table.stack td:empty { display: none; }
|
|
}
|