// The page language. Everything lives in one left-aligned column that starts at the path bar's left // edge, and what you read and what you act on sit together. No panes, cards or sidebars: topics are // separated by a hairline, actions are text links under what they act on. Imported last. // // main[data-width] col 620px (settings, forms), read 900px (lists, threads), wide (code, CI) // .tabs one row of text tabs // .sec one topic: h2, .state, .hint, .acts // .acts .act text-link actions; .act.danger, .act.quiet // .reveal .opened an action that opens in place (views::parts) // .line one list row: .name then .val right after it, never pushed to the far end // .plain-search search as one underlined line // .sub the second level: small text links // .field label above, control, hint under :root { --edge: 187px; --col: 620px; --read: 900px; } @media (max-width: 899px) { :root { --edge: 16px; } } // Shell .topbar { gap: 0; } // The logo and Explore. Both take the width of their own text, so neither runs under the other. .top-start { display: flex; flex: none; align-items: center; gap: 4px; } .top-explore { display: inline-flex; align-items: center; flex: none; gap: 6px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; text-decoration: none; &:hover { background: var(--surface-2); color: var(--text); text-decoration: none; } .ico { width: 16px; height: 16px; } } @media (min-width: 900px) { .topbar { height: 52px; padding: 0 24px; border-bottom: 1px solid var(--border); } // The logo and Explore hold the room up to the edge, so the path bar stands on it. .top-start { box-sizing: border-box; width: calc(var(--edge) - 24px); min-width: max-content; padding-right: 6px; } .pathbar, .pathbar:has(.pathbar-edit) { flex: 0 1 var(--col); width: var(--col); max-width: var(--col); height: 34px; box-sizing: border-box; padding: 0 6px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); } .pathbar-segs { font-family: var(--font); font-size: 14px; } .pathbar-edit { justify-content: space-between; } .live-strip { margin-left: 16px; } .shell-body > main { box-sizing: border-box; width: 100%; padding: 24px 40px 72px var(--edge); } main[data-width="col"] { max-width: calc(var(--edge) + var(--col) + 40px); } main[data-width="read"] { max-width: calc(var(--edge) + var(--read) + 40px); } } @media (max-width: 899px) { .top-explore { padding: 6px; span { display: none; } } } // Tabs .tabs { display: flex; gap: 20px; overflow-x: auto; margin-bottom: 8px; border-bottom: 1px solid var(--border); scrollbar-width: none; > a { flex: none; padding: 8px 0; color: var(--muted); font-size: 14px; text-decoration: none; &:hover { color: var(--text); text-decoration: none; } &[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); } } } // A topic .sec { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--border); &:last-child { border-bottom: 0; } > h2 { margin: 0; font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; text-transform: none; color: var(--text); } } .state { margin: 0; color: var(--text-2); } .hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; } // Actions .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; } .sec > .acts { margin-top: 4px; } a.act, button.act, summary.act { display: inline; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--accent-ink); cursor: pointer; font: inherit; font-weight: 500; text-decoration: none; &:hover { border: 0; background: none; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; } &.danger, &.danger:hover { color: var(--bad); } &.quiet, &.quiet:hover { color: var(--text-2); } } summary.act { list-style: none; &::-webkit-details-marker { display: none; } } .act-form { display: inline; margin: 0; } .head-actions { display: contents; } // An action that opens in place. Its panel takes a line of its own under the links beside it. .reveal { display: contents; } .reveal > summary.act { order: 0; } .opened { display: flex; flex: 0 0 100%; flex-direction: column; order: 1; gap: 12px; box-sizing: border-box; width: 100%; margin: 4px 0 6px; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent); } // List rows .line { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; &:hover { text-decoration: none; } &:last-child { border-bottom: 0; } .name { font-weight: 500; } .val { min-width: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } } a.line:hover .name { color: var(--accent-ink); } div.line { min-height: 36px; } // A row that opens in place: its details and its actions under it. .row-open { > summary.line { list-style: none; cursor: pointer; &::-webkit-details-marker { display: none; } &:hover .name { color: var(--accent-ink); } } &:last-child > summary.line { border-bottom: 0; } &[open] > summary.line { border-bottom: 0; } > .opened { margin: 0 0 10px; } } // Search and the second level .plain-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 12px 0 4px; padding: 0 2px; border-bottom: 1px solid var(--border-strong); color: var(--muted); .ico { width: 16px; height: 16px; } input { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; color: var(--text); font: inherit; } &:focus-within { border-bottom-color: var(--accent); } } .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0 2px; color: var(--muted); font-size: 13px; a { color: var(--muted); text-decoration: none; &:hover { color: var(--text); text-decoration: none; } &[aria-current="page"] { color: var(--text); } } a.act { color: var(--accent-ink); } + .line { margin-top: 8px; } } // Forms: label above, control, hint under, one action under them .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; > label { margin: 0; font-size: 14px; font-weight: 500; } input:not([type="checkbox"], [type="radio"], [type="color"], [type="file"]), select, textarea { width: 100%; max-width: none; box-sizing: border-box; } } .fields { display: flex; flex-direction: column; gap: 14px; margin: 0; > button.primary, > button[type="submit"] { align-self: flex-start; } } // A switch sits right before its own label. .switch { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; cursor: pointer; input[type="checkbox"] { flex: none; margin: 1px 0 0; } } // A detail page's own name .h1 { margin: 0; font-family: var(--display, var(--font)); font-size: 24px; font-weight: 700; line-height: 1.2; } .h1 + .hint { margin-top: 6px; margin-bottom: 10px; } // A tick or a radio always sits right before its own text, wherever the label is. main label:not(.colour-choice, .find-opt, .choice > label):has(> input[type="checkbox"]), main label:not(.colour-choice, .find-opt, .choice > label):has(> input[type="radio"]) { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; > input { flex: none; width: auto; margin: 1px 0 0; } } // A select in a row of small links is as wide as its text. .sub select { width: auto; max-width: 100%; height: 28px; font-size: 13px; } // Nothing here is a box: topics sit straight on the page. main[data-width="read"] .explore, main[data-width="read"] .heat { border: 0; border-radius: 0; background: none; box-shadow: none; padding-left: 0; padding-right: 0; } main .explore { margin-top: 0; } .sub + .hint { margin-top: 10px; }