Files
vardkey/static/styles.css
T

188 lines
13 KiB
CSS

/* The retro theme of section 32.2: the look of a Windows application from the
mid-1990s. The page is the grey desktop, every panel is a raised face, and
every field is a sunken well. The depth comes from two-tone bevels alone:
no rounded corner, no box shadow and no gradient anywhere, and the only
border-radius in the sheet is an explicit reset to 0, so a browser's own
rounded control never shows through. The layout, the responsive rules and
every selector the scripts and the tests rely on are unchanged. */
:root {
color-scheme: light;
font-family: "MS Sans Serif", Tahoma, Verdana, Geneva, sans-serif;
font-size: 13px;
line-height: 1.35;
color: #000000;
background: #c0c0c0;
font-synthesis: none;
--face: #c0c0c0;
--field: #ffffff;
--muted: #404040;
--line: #808080;
--title: #000080;
--title-text: #ffffff;
--danger: #800000;
--info: #808000;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--title); }
/* The window chrome: a navy title bar, the way the desktop showed one. */
.topbar {
min-height: 32px;
padding: 4px max(8px, calc((100% - 1120px) / 2));
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
color: var(--title-text);
background: var(--title);
}
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--title-text); font-size: 13px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; color: #000000; background: var(--face); font-size: 11px; font-weight: 700; }
.topbar .back-link { color: var(--title-text); font-weight: 400; }
.topbar .back-link:hover { text-decoration: underline; }
.muted-label { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-shell { width: min(100% - 24px, 1120px); margin: 0 auto; padding: 16px 0 24px; }
.page-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--title); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
/* Every heading is a title bar: navy, with white text. */
h1, h2 { margin-bottom: 6px; padding: 3px 8px; color: var(--title-text); background: var(--title); font-weight: 700; }
h1 { font-size: 16px; }
h2 { font-size: 14px; }
h3 { margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.intro { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* A raised face and a sunken well are the only two depths in the theme. */
.primary-button, .secondary-button { min-height: 24px; padding: 2px 10px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; border-radius: 0; color: #000000; background: var(--face); font: inherit; font-size: 13px; font-weight: 400; text-decoration: none; cursor: pointer; }
.active-button { font-weight: 700; }
.primary-button:active, .secondary-button:active { border-color: #000000 #ffffff #ffffff #000000; }
.primary-button:disabled, .secondary-button:disabled, .active-button:disabled { color: var(--line); cursor: not-allowed; }
.section-block { margin-top: 20px; }
.section-heading { margin-bottom: 10px; align-items: center; }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key-card, .info-card, .alerts-card, .history-card { border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); }
.key-card { min-height: 110px; padding: 8px; }
.key-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.key-number { color: var(--muted); font-size: 11px; font-weight: 700; }
.status { padding: 1px 5px; border: 1px solid var(--line); background: var(--field); font-size: 11px; font-weight: 700; }
.status-neutral { color: #000000; background: var(--face); }
.status-ok { color: #005000; background: var(--field); }
.status-overdue { color: var(--danger); background: var(--field); }
.status-alert { color: var(--danger); background: var(--field); }
.key-card h3 { margin: 8px 0 4px; font-size: 13px; }
.key-card p, .info-card p:not(.eyebrow), .history-card > p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* The path stands on its own line, so it is set apart by its slant alone
(section 32.2 point 7). */
.key-path { font-style: italic; }
.key-dates { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12px; }
.key-dates dt { color: var(--muted); font-weight: 700; }
.key-dates dd { margin: 0; }
.key-alert-note { margin: 8px 0 0; padding: 6px 8px; border: 1px solid #000000; border-left: 4px solid var(--danger); background: var(--field); }
.key-alert-note p { margin: 0 0 4px; color: #000000; font-size: 12px; line-height: 1.4; }
.key-alert-note .key-alert-message { color: var(--danger); font-weight: 700; }
.key-alert-note .key-alert-detail { color: var(--muted); }
.key-alert-note .back-link { font-size: 12px; }
.overview-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info-card { min-height: 92px; padding: 8px; }
.info-card h2 { margin-bottom: 6px; font-size: 14px; }
.alerts-card { padding: 8px; }
.alert-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.alert-item { padding: 6px 8px; border: 1px solid #000000; border-left: 4px solid var(--line); background: var(--field); }
.alert-item strong { display: block; margin-bottom: 2px; font-size: 12px; }
.alert-item p { margin: 0; color: #000000; font-size: 12px; line-height: 1.4; }
.alert-item .alert-origin { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.alert-critical { border-left-color: var(--danger); }
.alert-info { border-left-color: var(--info); }
.alert-actions { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.alert-close { display: flex; flex-direction: column; gap: 6px; }
.alert-close .form-actions { margin-top: 0; }
.alert-close .field { margin: 0; }
.empty-state { margin: 0; padding: 6px 8px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; color: var(--muted); background: var(--field); font-size: 12px; line-height: 1.4; }
.history-card { margin-top: 12px; padding: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-card h2 { font-size: 14px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.workflow-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer { min-height: 34px; padding: 8px max(8px, calc((100% - 1120px) / 2)); display: flex; justify-content: space-between; gap: 12px; border-top: 2px solid var(--line); color: var(--muted); background: var(--face); font-size: 12px; }
.form-shell { max-width: 900px; }
.form-heading { align-items: flex-start; }
.back-link { color: var(--title); font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.privacy-notice { margin: 12px 0; padding: 6px 8px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; color: #000000; background: var(--field); font-size: 12px; line-height: 1.4; }
.warning-note { margin: 10px 0 0; padding: 6px 8px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; color: #000000; background: var(--field); font-size: 12px; line-height: 1.4; }
.warning-note p { margin: 0 0 6px; }
.warning-note p:last-child { margin-bottom: 0; }
.warning-note .field-help { color: var(--muted); }
.form-section { margin-top: 12px; padding: 10px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); }
.form-section-heading { margin-bottom: 8px; }
.form-section-heading h2 { font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-stack { display: grid; gap: 8px; }
.check-card { min-width: 0; padding: 8px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; background: var(--field); }
.check-card legend { padding: 0 4px; font-size: 13px; font-weight: 700; }
.field { display: grid; gap: 4px; margin: 8px 0; color: #000000; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 24px; padding: 2px 4px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; border-radius: 0; color: #000000; background: var(--field); font: inherit; font-weight: 400; }
.field textarea { min-height: 68px; resize: vertical; }
/* The focus ring is the classic dotted frame, not a modern glow. */
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px dotted #000000; outline-offset: -4px; }
.field input:disabled, .field select:disabled, .field textarea:disabled { color: var(--line); background: var(--face); }
.checkbox-field { display: flex; align-items: flex-start; gap: 6px; }
.checkbox-field input { width: auto; min-height: 0; margin: 2px 0 0; padding: 0; }
.checkbox-field span { font-weight: 400; line-height: 1.4; }
.optional { color: var(--muted); font-weight: 400; }
.field-help { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* The help line and the block it belongs to are given a little more air, so
they do not run together (section 32.2 point 1). */
.field-help + .field-grid,
.field-help + .form-stack { margin-top: 12px; }
/* The one reminder that sits with the key setup, where every free-text field of
a key is typed (sections 2, 12 and 15). */
.secret-warning { display: block; margin: 4px 0 0; padding: 4px 6px; border: 1px solid var(--danger); border-left: 4px solid var(--danger); color: var(--danger); background: var(--field); font-size: 12px; font-weight: 400; line-height: 1.4; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.software-row { display: flex; align-items: flex-end; gap: 8px; }
.software-row .field { flex: 1; margin: 0; }
.review-panel[hidden] { display: none; }
.form-stack[hidden], .field-grid[hidden], .field[hidden], .form-section[hidden] { display: none; }
.review-panel h3 { margin: 10px 0 4px; font-size: 13px; }
.review-panel ul { margin: 0; padding-left: 18px; color: #000000; font-size: 12px; line-height: 1.5; }
/* The rotation note and the rotation list must not run together (section 26.6). */
.rotation-list { margin-top: 22px; }
.history-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.history-item { padding: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); }
.history-item h3 { margin: 0 0 2px; font-size: 13px; }
.history-item p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-card { margin-top: 12px; padding: 10px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); }
.detail-card h3 { margin: 0 0 8px; font-size: 13px; }
.detail-list { margin: 0; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 4px 12px; font-size: 12px; }
.detail-list dt { color: var(--muted); font-weight: 700; }
.detail-list dd { margin: 0; }
/* A table is a grid of cells with 1px rules, and a fixed layout keeps a long
value inside its column instead of pushing the table out of the page
(section 32.2 point 15). */
.detail-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; color: #000000; background: var(--field); border: 1px solid var(--line); }
.detail-table th, .detail-table td { padding: 3px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.detail-table th { color: #000000; background: var(--face); font-weight: 700; }
@media (max-width: 700px) {
.page-shell { width: min(100% - 16px, 1120px); padding-top: 12px; }
.page-heading { align-items: flex-start; flex-direction: column; }
.key-grid, .overview-grid, .field-grid { grid-template-columns: 1fr; }
.key-card { min-height: 0; }
.history-card { align-items: flex-start; flex-direction: column; }
.card-actions { width: 100%; }
.form-section { padding: 8px; }
.detail-list { grid-template-columns: 1fr; }
.history-item { align-items: flex-start; flex-direction: column; }
.software-row { align-items: stretch; flex-direction: column; }
.footer { padding-inline: 8px; }
.detail-table { font-size: 11px; }
.detail-table th, .detail-table td { padding: 2px 4px; }
}