221 lines
15 KiB
CSS
221 lines
15 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. Every heading is a title bar that spans
|
|
its whole row, so all the bars on one page are the same width. 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; }
|
|
|
|
/* The page is a column that fills the window, so the footer sits at the bottom
|
|
even when the content is short. `dvh` follows a mobile browser's own height
|
|
where it is supported, and `vh` is the fallback. */
|
|
body { margin: 0; min-width: 320px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
|
|
/* The page body takes the room that is left between the top bar and the
|
|
footer. */
|
|
main { flex: 1 1 auto; }
|
|
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; }
|
|
/* The brand mark is the app icon, so it is a small image on a raised face, not
|
|
a letter. `image-rendering: pixelated` keeps the flat retro drawing crisp
|
|
when it is scaled down (section 32.1). */
|
|
.brand-mark { width: 18px; height: 18px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); image-rendering: pixelated; }
|
|
.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; }
|
|
/* The top-bar menu of section 32.7 point 1: a raised button with a drop-down
|
|
panel under it. The panel is a raised face with the same 3D edge as the rest
|
|
of the theme, it is hidden until the button is pressed, and it is laid out
|
|
over the page instead of pushing it down. */
|
|
.menu { position: relative; }
|
|
.menu-button { min-width: 68px; }
|
|
.menu-panel { position: absolute; right: 0; z-index: 10; min-width: 190px; margin-top: 2px; padding: 2px; display: grid; gap: 2px; border: 2px solid; border-color: #ffffff #000000 #000000 #ffffff; background: var(--face); }
|
|
.menu-panel[hidden] { display: none; }
|
|
.menu-item { width: 100%; padding: 3px 8px; display: block; border: 0; color: #000000; background: var(--face); font: inherit; font-size: 13px; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; }
|
|
.menu-item:hover, .menu-item:focus { color: var(--title-text); background: var(--title); outline: 1px dotted #000000; outline-offset: -4px; }
|
|
.menu-separator { height: 2px; margin: 2px 0; border-top: 1px solid var(--line); border-bottom: 1px solid #ffffff; }
|
|
.page-shell { width: min(100% - 24px, 1120px); margin: 0 auto; padding: 16px 0 24px; }
|
|
/* The heading row stacks: the bar takes the whole row, and the action, the
|
|
counter or the note that belongs to the heading goes on the next line. That
|
|
is what keeps every bar on a page the same width (section 32.2). */
|
|
.page-heading, .section-heading { display: block; }
|
|
.page-heading { margin-bottom: 4px; }
|
|
.section-heading { margin-bottom: 10px; }
|
|
.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; }
|
|
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
|
|
/* The key cards stand under the dashboard heading, with no section of their own,
|
|
so the grid keeps its distance from the line above it
|
|
(section 32.7 point 2). */
|
|
.page-heading .key-grid { margin-top: 12px; }
|
|
.key-card, .info-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) { 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; }
|
|
/* The Attention card is the only summary card left, so the grid is one column
|
|
wide and the card spans the whole content width at every width
|
|
(section 32.7 point 3). */
|
|
.overview-grid { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
|
|
.info-card { min-height: 92px; padding: 8px; }
|
|
/* The value in an overview card is a read-out, not a section title, so it is
|
|
not a title bar: it sits in a sunken well, the way a status read-out did. */
|
|
.info-card h2 { margin-bottom: 6px; padding: 4px 6px; border: 2px solid; border-color: #808080 #ffffff #ffffff #808080; color: #000000; background: var(--field); font-size: 15px; font-weight: 700; }
|
|
.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; }
|
|
.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; }
|
|
.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); }
|
|
/* A section is a flat block: the title bar is what separates it from the one
|
|
above. The bar is pulled out over the section's own side padding, so it spans
|
|
the whole page and matches every other bar on the page (section 32.2). */
|
|
.form-section { margin-top: 12px; padding: 0 8px 10px; }
|
|
.form-section-heading { margin-bottom: 8px; }
|
|
.form-section-heading h2 { margin-left: -8px; margin-right: -8px; font-size: 14px; }
|
|
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
|
.form-stack { display: grid; gap: 8px; }
|
|
/* A fieldset is the classic etched group box: a thin two-tone frame with the
|
|
legend inside it, on the grey face. The legend is a block, so it no longer
|
|
cuts a notch out of the frame (section 32.2). */
|
|
.check-card { min-width: 0; margin: 0; padding: 6px 8px 8px; border: 1px solid var(--line); outline: 1px solid #ffffff; outline-offset: -1px; background: var(--face); }
|
|
.check-card legend { display: block; width: 100%; padding: 0 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; }
|
|
.key-grid, .field-grid { grid-template-columns: 1fr; }
|
|
.key-card { min-height: 0; }
|
|
.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; }
|
|
}
|