diff --git a/style/_account_admin.scss b/style/_account_admin.scss index d80915b..21c8895 100644 --- a/style/_account_admin.scss +++ b/style/_account_admin.scss @@ -29,33 +29,6 @@ color: var(--text); } } -.kv-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); - gap: 12px 20px; - margin: 0; - - div { - min-width: 0; - } - - dt { - color: var(--muted); - font-size: 0.8125rem; - margin-bottom: 2px; - } - - dd { - margin: 0; - font-weight: 600; - overflow-wrap: anywhere; - } -} - -@media (max-width: 600px) { - -} - .reset-link { display: block; padding: 8px 10px; @@ -97,4 +70,3 @@ color: var(--text); margin-top: 4px; overflow-wrap: anywhere; } - diff --git a/style/_admin_rows.scss b/style/_admin_rows.scss index e05bef5..6c6211d 100644 --- a/style/_admin_rows.scss +++ b/style/_admin_rows.scss @@ -8,11 +8,6 @@ background: var(--warn); } -// Phone: the status word goes under the name, indented to line up with it. -@media (max-width: 600px) { - -} - // A small-range number on the server settings page steps like the runner's Max: the pill keeps its // own width instead of stretching across the column, at the height of the fields beside it. .srv-field .runner-pill { @@ -62,13 +57,6 @@ padding: 0; } -// Copy all sits above the log, at its right edge. -.runner-log-bar { - display: flex; - justify-content: flex-end; - margin-bottom: 6px; -} - // The runner's metrics sit under its stats: three graphs side by side on a wide page (one column // below 900px), each in a panel with its caption and facts above it. Every graph is its own SVG with // one y axis; colours come from tokens only. A line is the secondary text colour, and a sent line is dashed so it is told apart without diff --git a/style/_appearance.scss b/style/_appearance.scss index ce94f84..8b13789 100644 --- a/style/_appearance.scss +++ b/style/_appearance.scss @@ -1,11 +1 @@ -// Appearance page layout. Below 1100px the parts stack: general controls, then the sound card, then -// the colours. From 1100px: general controls and the sound card on the left, colours on the right, -// so the page fits one screen. The form is `display: contents` so its two blocks join this grid. -// The sound card sits outside the form: its Play buttons must not be inside it. -@media (min-width: 1100px) { -} - -@media (prefers-reduced-motion: reduce) { - -} diff --git a/style/_authoring.scss b/style/_authoring.scss index 7cdc4ce..0929dad 100644 --- a/style/_authoring.scss +++ b/style/_authoring.scss @@ -109,10 +109,3 @@ textarea.md-drop { margin: 0 0.4em; } } - -.review-request-list li { - display: flex; - flex-wrap: wrap; - align-items: baseline; - gap: 0.2rem 0.75rem; -} diff --git a/style/_browse.scss b/style/_browse.scss index 016b12d..9162fd6 100644 --- a/style/_browse.scss +++ b/style/_browse.scss @@ -137,12 +137,6 @@ color: var(--muted); } -.file-actions .link-button { - font-size: inherit; - color: var(--text); - cursor: pointer; -} - // Blame. .blame-table { .blame-meta { @@ -346,7 +340,3 @@ dialog.finder { } } - -@media (max-width: 720px) { - -} diff --git a/style/_commit_line.scss b/style/_commit_line.scss index 3a54ac3..beec3c5 100644 --- a/style/_commit_line.scss +++ b/style/_commit_line.scss @@ -15,12 +15,3 @@ text-overflow: ellipsis; white-space: nowrap; } - -.ci-run-message { - margin: 4px 0 8px; - - p { - margin: 4px 0 0; - overflow-wrap: anywhere; - } -} diff --git a/style/_dashboard.scss b/style/_dashboard.scss index 39a070a..cd1db5f 100644 --- a/style/_dashboard.scss +++ b/style/_dashboard.scss @@ -1,60 +1,5 @@ -// Repo listing toolbar: the search takes the free width, and the New repository button sits beside it. -.repo-tools { - display: flex; - flex-wrap: wrap; - gap: 8px; - align-items: center; - - .button { - flex: none; - } -} - -// Sort chips and the count on one line under the toolbar; the chips' own gap spaces "Sort by". -.repo-subbar { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 8px 16px; - - p { - margin: 0; - } -} - -// A repo listing (profile tabs): search, sort chips, count, rows and pager as one tight block, so -// the profile's section gap does not open between the count line and the list. -.repo-listing { - display: flex; - flex-direction: column; - gap: 10px; - - > p { - margin: 0; - } -} - -.repo-item-head { - display: flex; - align-items: center; - gap: 8px; - min-width: 0; - - .repo-name { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - - .badge { - flex: 0 0 auto; - } -} - .repo-item .repo-desc { overflow: hidden; text-overflow: ellipsis; @@ -104,10 +49,6 @@ height: 96px; } -@media (min-width: 900px) { - -} - .profile-org { display: flex; flex-direction: column; diff --git a/style/_fail_first.scss b/style/_fail_first.scss index 53283b4..57e9b89 100644 --- a/style/_fail_first.scss +++ b/style/_fail_first.scss @@ -1,71 +1,4 @@ -// The failure block at the top of a failed run's page (pages/ci_fail.rs). Failure red is fixed; the -// block uses the page's own tokens and stays neutral apart from the first error line. -.fail-first { - display: flex; - flex-direction: column; - gap: 6px; - margin: 12px 0; - padding: 12px 14px; - border-radius: var(--radius-md); - background: var(--surface); - border-left: 3px solid var(--bad); -} - -.fail-first-head { - margin: 0; - font-weight: 600; -} - -.fail-first-tag { - color: var(--bad); - margin-right: 4px; -} - -.fail-first-msg { - margin: 0; - font-family: var(--mono); - font-size: 0.85rem; - color: var(--bad); - white-space: pre-wrap; - word-break: break-word; -} - -.fail-first-log { - max-height: 22rem; - overflow: auto; - margin-top: 4px; - border-radius: var(--radius-md); - background: var(--bg); - font-family: var(--mono); - font-size: 0.8rem; - line-height: 1.5; -} - -.fail-first-ln { - display: grid; - grid-template-columns: 4.5em 1fr; - white-space: pre; - overflow-x: auto; - - > i { - font-style: normal; - text-align: right; - padding-right: 1em; - opacity: 0.6; - user-select: none; - } -} - -.fail-first-hit { - background: color-mix(in srgb, var(--bad) 16%, transparent); -} - -@media (prefers-reduced-motion: no-preference) { - .fail-first { - animation: fail-first-in 180ms ease-out both; - } -} @keyframes fail-first-in { from { diff --git a/style/_hooks.scss b/style/_hooks.scss index 58f5b50..55880df 100644 --- a/style/_hooks.scss +++ b/style/_hooks.scss @@ -10,8 +10,3 @@ .hook-problem { color: var(--danger); } - -// Phone: the sync button goes under the name, the rows stack. -@media (max-width: 600px) { - -} diff --git a/style/_link.scss b/style/_link.scss index 3a55b2f..bcc2167 100644 --- a/style/_link.scss +++ b/style/_link.scss @@ -20,18 +20,3 @@ background: var(--surface-2); overflow-wrap: anywhere; } - -.link-offline { - box-sizing: border-box; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - gap: 8px; - padding: 24px 16px; - text-align: center; - color: var(--text); - background: var(--bg); -} - diff --git a/style/_look.scss b/style/_look.scss index 2ff4aab..bd653c0 100644 --- a/style/_look.scss +++ b/style/_look.scss @@ -16,13 +16,6 @@ h1 { font-size: 1.5rem; } -.repo-title, -.issue-heading { - font-family: var(--display); - font-weight: 700; - font-stretch: 110%; -} - // Mono section labels: table headers, pane headers, card headings that are labels, and the small // muted captions that head a card's table or list. Only static UI text takes this; prose and user // content (commit messages, names, descriptions) keep their case. @@ -38,8 +31,6 @@ h1 { th, .table th, -.ci-side-title, -.ci-art-title, .ci-warnings-title, .row-title, .mx-caption, @@ -50,8 +41,6 @@ th, // Depth by tone. Cards and panes sit on the surface tone with an inset 1px hairline instead of a // drop shadow or a heavy border. The border keeps its width (transparent), so nothing moves. .card, -.issue-list, -.review-box, .pin-card, .ci-side, .ci-main, diff --git a/style/_members.scss b/style/_members.scss index 920663b..8b13789 100644 --- a/style/_members.scss +++ b/style/_members.scss @@ -1,7 +1 @@ - -// Phone: each member row stacks. The name takes the first line; the role select and the menu share -// the second. The header row is hidden, as the cells carry no labels there. -@media (max-width: 600px) { - -} diff --git a/style/_min.scss b/style/_min.scss index d52ac38..23924fe 100644 --- a/style/_min.scss +++ b/style/_min.scss @@ -88,14 +88,6 @@ border-radius: var(--radius-sm); } - .pathbar-ico { - display: block; - width: 15px; - height: 15px; - margin-right: 8px; - color: var(--muted); - } - .pathbar-segs { font-family: var(--font); font-size: 14px; @@ -458,18 +450,6 @@ div.line { } } -.field-pair { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 16px; -} - -@media (max-width: 599px) { - .field-pair { - grid-template-columns: minmax(0, 1fr); - } -} - // A switch sits right before its own label. .switch { @@ -501,11 +481,6 @@ div.line { margin-bottom: 10px; } -.back-act { - display: inline-block; - margin: 12px 0 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"]) { @@ -532,8 +507,7 @@ main label:not(.colour-choice, .find-opt, .choice > label):has(> input[type="rad // Nothing here is a box: topics sit straight on the page. main[data-width="read"] .explore, -main[data-width="read"] .heat, -main .lang-list { +main[data-width="read"] .heat { border: 0; border-radius: 0; background: none; @@ -546,16 +520,6 @@ main .explore { margin-top: 0; } -.pull-topics { - display: flex; - flex-direction: column; -} - -.profile-head .profile-avatar { - width: 64px !important; - height: 64px !important; -} - .sub + .hint { margin-top: 10px; } diff --git a/style/_min_admin.scss b/style/_min_admin.scss index 6283460..4a4fa3c 100644 --- a/style/_min_admin.scss +++ b/style/_min_admin.scss @@ -6,26 +6,6 @@ overflow-wrap: anywhere; } -// The runner's concurrency field: label, stepper and its save all start at the left edge. -form.runner-load { - justify-content: flex-start; - align-items: flex-start; -} - -.field > .runner-stepper input[type="number"] { - flex: 0 0 4.5em; - width: 4.5em; - max-width: none; - text-align: center; -} - -// The runner's state line under its name: the dot, then the words. -.runner-state { - display: flex; - align-items: center; - gap: 6px; -} - // Tones for a value or a hint: a failing or lagging copy. .hint.bad, .val.bad, @@ -55,36 +35,3 @@ form.runner-load { .field .runner-pill input[type="number"] { width: 34px; } - -// Health: one column. An icon sits on its label's line; a detail stays with its row. -main .health-page { - display: block; -} - -.health-page .line .name { - display: inline-flex; - align-items: center; - gap: 8px; -} - -.health-page .row-icon { - flex: none; - width: 16px; - height: 16px; -} - -.health-page .val { - display: inline-flex; - align-items: center; - gap: 6px; -} - -.health-page .line:has(+ .health-path) { - border-bottom: 0; -} - -.health-page .health-path { - margin: 0; - padding-bottom: 8px; - border-bottom: 1px solid var(--border); -} diff --git a/style/_min_ci.scss b/style/_min_ci.scss index fd59cfe..2ccbe20 100644 --- a/style/_min_ci.scss +++ b/style/_min_ci.scss @@ -1,11 +1,4 @@ -// The ci pages: only what style/_min.scss does not already give them. -// Actions and tools sit beside what they act on, never at the far end of the bar. -.ci-tl-head, -.ci-tl-artline, -.ci-side-head { - justify-content: flex-start; -} .ci-tl-tools, .ci-logfold { @@ -24,17 +17,6 @@ } } -// The runs pane has a border: its head keeps the same inset as the rows under it. -.ci-split > .ci-side .ci-side-head { - padding: 8px 14px; - margin-bottom: 0; -} - -// An action that opens in place takes the title line's full width when it needs it. -.ci-tl-line { - flex-wrap: wrap; -} - // The log's tabs take the shared tab look. .tabs.ci-tl-tabs { margin-bottom: 0; @@ -48,11 +30,3 @@ letter-spacing: 0; text-transform: none; } - -// On a phone the page scrolls, so the jobs and the log take their own height. The list's run pane -// has no fixed height to share out, and a pane sized from it would be nothing. -@media (max-width: 899px) { - .ci-split.fit-pane > .ci-detail > .ci-tl-main { - flex: none; - } -} diff --git a/style/_min_code.scss b/style/_min_code.scss index 71f4126..2078265 100644 --- a/style/_min_code.scss +++ b/style/_min_code.scss @@ -13,51 +13,11 @@ white-space: nowrap; } -.commits-chev { - display: inline-flex; - flex: none; - color: var(--muted); - - svg { - width: 14px; - height: 14px; - } -} - -details.commits-d[open] .commits-chev svg { - transform: rotate(180deg); -} - -.pull-file.current .name { - color: var(--text); - font-weight: 600; -} - -// Far-right alignment left by the older code pages: the file finder sits after the path bar, a -// tree row's age follows its name, and the strip's chips follow its facts. -main .repo-grid.repo-home .browse-bar .finder-open { - margin-left: 12px; -} - -// The two panes' head lines keep the panes' inner edge. -.repo-grid.repo-home .browse-bar { - padding-left: 12px; - padding-right: 12px; -} - .repo-readme > .acts { margin: 0; padding: 8px 12px; } -.repo-grid.repo-home .tree-entry-age { - margin-left: 0; -} - -.repo-strip .strip-chips { - margin-left: 0; -} - // Browse files keeps the row's spacing: its padding is for the hover shape, not extra room, so a // wrapped one starts on the row's text edge like the facts above it. .commits-r > a.act { diff --git a/style/_min_lists.scss b/style/_min_lists.scss index 260c821..5ae94a5 100644 --- a/style/_min_lists.scss +++ b/style/_min_lists.scss @@ -11,52 +11,4 @@ background: none; } - .issue-main { - display: flex; - flex: 1 1 auto; - flex-direction: column; - gap: 4px; - min-width: 0; - } - - .issue-title-line, - .issue-meta { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 4px 8px; - } - - .issue-meta img { - vertical-align: middle; - } -} - -// Notifications: a row's mark-as-read sits under it, shown on hover or focus. Touch screens always show it. -.notif-rows > .notif-row { - display: block; - padding: 0; - border-bottom: 1px solid var(--border); - - &:last-child { - border-bottom: 0; - } - - > .line { - border-bottom: 0; - } - - > .acts { - padding: 0 0 8px 23px; - } - - &.unread > .line .name { - font-weight: 600; - } -} - -@media (hover: hover) { - .notif-rows > .notif-row:not(:hover):not(:focus-within) > .acts { - visibility: hidden; - } } diff --git a/style/_min_menus.scss b/style/_min_menus.scss index 45862f6..6eb6fcd 100644 --- a/style/_min_menus.scss +++ b/style/_min_menus.scss @@ -1,53 +1,4 @@ -// The menus pages: only what style/_min.scss does not already give them. -// Tab families read like `.tabs` in _min.scss: one row of text tabs, the current one underlined in -// accent. Their older rules sit earlier in the cascade, so these win at equal weight. Each family's -// children are its links, labels or buttons. -.issue-tabs { - display: flex; - flex-wrap: nowrap; - gap: 20px; - overflow-x: auto; - margin: 0 0 8px; - padding: 0; - border: 0; - border-bottom: 1px solid var(--border); - border-radius: 0; - background: none; - box-shadow: none; - scrollbar-width: none; -} - -.issue-tabs > * { - flex: none; - display: inline-flex; - align-items: center; - height: auto; - min-height: 0; - margin: 0; - padding: 8px 0; - border: 0; - border-radius: 0; - background: none; - box-shadow: none; - color: var(--muted); - font-size: 14px; - font-weight: 400; - text-decoration: none; - cursor: pointer; - - &:hover { - color: var(--text); - text-decoration: none; - } - - &[aria-current="page"], - &.active, - &:has(:checked) { - color: var(--text); - box-shadow: inset 0 -2px 0 var(--accent); - } -} // Popovers: one panel, instant (no transition or animation), kept inside the window on a phone. .menu-list, @@ -88,7 +39,6 @@ .repo-readme .clone > .menu-list, .repo-readme .clone > .pop-panel, details > .status-list, - .dock-expand > .dock-message, details.menu > .menu-list { position: fixed !important; top: auto; @@ -105,22 +55,6 @@ white-space: normal; } - .ci-tl-line details[open] { - flex: 1 1 100%; - min-width: 0; - } - - .ci-tl-actions:has(details[open]) { - flex: 1 1 100%; - flex-wrap: wrap; - min-width: 0; - } - - .ci-tl-line details .opened, - .ci-tl-line details .hint { - white-space: normal; - } - .reveal, .reveal > .opened { min-width: 0; diff --git a/style/_min_org.scss b/style/_min_org.scss index 522bfd7..cd8812f 100644 --- a/style/_min_org.scss +++ b/style/_min_org.scss @@ -8,52 +8,10 @@ min-width: 0; } -// The profile, home and signed-in lists: the page language only. - -// A topic head with a text action beside its title (the pins menu). -.topic-head { - display: flex; - flex-wrap: wrap; - align-items: baseline; - gap: 4px 16px; - - > h2 { - margin: 0; - font-size: 15px; - font-weight: 600; - line-height: 1.3; - color: var(--text); - } -} - -.profile-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 16px; -} - -.profile-id { - display: flex; - flex-direction: column; - gap: 4px; - min-width: 0; - - .acts { - margin-top: 6px; - } -} - .profile-about { flex: 1 0 100%; } -.repo-listing { - display: flex; - flex-direction: column; - gap: 8px; -} - .repo-list { margin: 0; padding: 0; @@ -65,7 +23,6 @@ color: var(--text); } -.plain-rows, .repo-list { > .line { padding: 0; @@ -112,23 +69,6 @@ list-style: none; } -// The profile is one column on the read width: the old left pane (a boxed head at 300px) is gone. -@media (min-width: 900px) { - .profile-page { - min-height: 0; - padding-left: 0; - - > .profile-head { - position: static; - width: auto; - padding: 0; - background: none; - border: 0; - border-radius: 0; - } - } -} - // Repo rows keep their name, badge and description on the left: the stars and the age follow // the description, not the far end of the row. .repo-list > .repo-item { @@ -140,21 +80,3 @@ margin-left: 0; } } - -// The profile head: a compact avatar, and the about text with no box of its own. -.profile-head .profile-avatar { - width: 96px; - height: 96px; -} - -.profile-head .profile-about { - padding: 0; - background: none; - border: 0; -} - -// The pins menu opens from its link beside the title, to the right of it. -.topic-head .pins-menu > .pop-panel { - right: auto; - left: 0; -} diff --git a/style/_min_repo_admin.scss b/style/_min_repo_admin.scss index 5f5ccc6..82345f8 100644 --- a/style/_min_repo_admin.scss +++ b/style/_min_repo_admin.scss @@ -1,11 +1,4 @@ -// The repo admin pages: only what style/_min.scss does not already give them. -// A label for a group of controls (the webhook events), read like a field's label. -.field-title { - margin: 0; - font-size: 14px; - font-weight: 500; -} // A part of an opened delivery: request, response, and their bodies. .part-title { @@ -24,22 +17,3 @@ .rule-pills .warn { color: var(--warn); } - -// A rule form's groups: a legend reads as a label, the fields stack. -.rule-group { - display: flex; - flex-direction: column; - gap: 12px; - min-width: 0; - margin: 0; - padding: 0; - border: 0; - - > legend { - margin: 0 0 2px; - padding: 0; - color: var(--text); - font-size: 14px; - font-weight: 500; - } -} diff --git a/style/_min_threads.scss b/style/_min_threads.scss index 483a155..4c8f1b7 100644 --- a/style/_min_threads.scss +++ b/style/_min_threads.scss @@ -1,18 +1,4 @@ -// The threads pages: only what style/_min.scss does not already give them. -// Pull request: the sidebar boxes sit in one compact row above the conversation. -.pull-topics { - display: flex; - flex-wrap: wrap; - gap: 0 32px; - padding-bottom: 8px; - border-bottom: 1px solid var(--border); - - > * { - flex: 1 1 100%; - min-width: 0; - } -} // The merge style choices stack as switches, under their legend. .merge-styles { diff --git a/style/_needs.scss b/style/_needs.scss index 2ecc983..8b13789 100644 --- a/style/_needs.scss +++ b/style/_needs.scss @@ -1,5 +1 @@ - -@media (min-width: 900px) { - -} diff --git a/style/_one.scss b/style/_one.scss index ed34588..843ec12 100644 --- a/style/_one.scss +++ b/style/_one.scss @@ -64,9 +64,7 @@ body { } h1, -.h1, -.repo-title, -.issue-heading { +.h1 { font-family: var(--font); font-size: 26px; font-stretch: normal; @@ -547,14 +545,6 @@ input[type="radio"] { } } -.field-pair { - gap: 14px 24px; -} - -.field-pair > .field { - --label-w: 110px; -} - .fields > button[type="submit"], .fields > .button, .fields > .switch, @@ -640,7 +630,6 @@ input[type="radio"] { // Sections and second-level links share one row of soft tabs. .tabs, -.issue-tabs, .repo-tabs, .sub { display: flex; @@ -659,7 +648,6 @@ input[type="radio"] { .tabs > a, .tabs .tab, -.issue-tabs > *, .repo-tabs > a, .repo-tabs .tab, .sub > a:not(.act) { @@ -710,10 +698,6 @@ input[type="radio"] { font-weight: 400; } -.tab-icon { - display: none; -} - // The top bar: profile, then the place you are in, which is also search. .topbar { @@ -1391,8 +1375,7 @@ main > .tabs { .sheet > .sec, .sheet > form > .sec, -.sheet > .fields, -.sheet > .sheet-pad { +.sheet > .fields { padding: 14px 18px; } @@ -1554,8 +1537,6 @@ a.line:hover .name, .pop-panel, .head-title > details.reveal:not(:has(.field)) > .opened, .row-menu-panel, -.ci-tl-more > p, -.dock-expand > .dock-message, details > .status-list, .palette-box { border: 0 !important; @@ -1627,12 +1608,9 @@ button.corner-link.link-button, .card, .fit-pane, -.rows-pane, .table-wrap, .readme, -.repo-readme, -.review-box, -.issue-list { +.repo-readme { border: 0; border-radius: var(--radius-sheet); background: var(--surface); @@ -1641,10 +1619,8 @@ button.corner-link.link-button, .sheet .card, .sheet .fit-pane, -.sheet .rows-pane, .sheet .table-wrap, -.sheet .readme, -.sheet .issue-list { +.sheet .readme { border-radius: 0; box-shadow: none; } @@ -3133,13 +3109,6 @@ details:not([open])::details-content { width: 170px; } - .hex-note { - flex-basis: 100%; - } - - .hex-note:empty { - display: none; - } } @media (max-width: 700px) { @@ -3149,18 +3118,6 @@ details:not([open])::details-content { } } -// A box with its note: the note beside the box's words, on one line while there is room. -.checks > .check-row { - display: flex; - flex-wrap: wrap; - align-items: baseline; - column-gap: 10px; - - > .hint { - margin: 0; - } -} - .head-title { min-height: 38px; } @@ -3773,13 +3730,6 @@ details.log-group { } } -// A fixed value in a field's control column (an existing branch rule's pattern) stands on its label's line. -.field > .field-value { - padding-top: 8px; - font-size: 15px; - line-height: 22px; -} - // A topic's own action, standing alone under its heading (Rename repository, Transfer repository, // Regenerate codes), is a small soft pill like Star, not a word: it is the thing the topic is for. // Tools on a line of facts stay words. A dangerous one keeps its red word on the pill. diff --git a/style/_one_admin.scss b/style/_one_admin.scss index 9ee156b..b58c3ef 100644 --- a/style/_one_admin.scss +++ b/style/_one_admin.scss @@ -23,7 +23,6 @@ $repo: 'main:has(> section.repo-head .tab.active[href$="/settings"])'; border-radius: 6px; } - // Settings forms: the topics are one column, each topic with a hairline above it. #{$settings} .sheet > form:not(.appearance) > .sec + .sec { border-top: 1px solid var(--border); @@ -84,7 +83,6 @@ $repo: 'main:has(> section.repo-head .tab.active[href$="/settings"])'; color: var(--muted); } - // Server settings: one setting a line. Its name, then its control on one fixed width, then its notes, // so every control and every note starts on the same edge. A page is short enough to need no scroll. #{$admin} .sheet:has(.srv-row) { @@ -233,15 +231,6 @@ $repo: 'main:has(> section.repo-head .tab.active[href$="/settings"])'; white-space: normal; } -// A group's label in a topic sits on the topic's own edge, like the topic heading. -#{$repo} .sheet .field-title { - margin: 0; - padding: 0; - color: var(--muted); - font-size: 13px; - font-weight: 600; -} - // Repo settings: the form takes the sheet's width, and its topics keep the form's inset. #{$repo} .sheet form.fields { max-width: none; diff --git a/style/_one_code.scss b/style/_one_code.scss index dd81cab..a9b1140 100644 --- a/style/_one_code.scss +++ b/style/_one_code.scss @@ -97,7 +97,6 @@ main code { border-radius: 6px; } - // A release's downloads wrap onto more lines instead of running past the sheet. .opened > .sub { flex-wrap: wrap; diff --git a/style/_one_shell.scss b/style/_one_shell.scss index 755ef8c..81777f1 100644 --- a/style/_one_shell.scss +++ b/style/_one_shell.scss @@ -131,16 +131,6 @@ a > .ref-chip, border: 0; } -// Watch options are menu rows: the name only. The longer description stays for screen readers. -.watch-list .watch-option-desc { - position: absolute; - width: 1px; - height: 1px; - overflow: hidden; - clip-path: inset(50%); - white-space: nowrap; -} - // The watch menu's button is a soft shape like every other action beside a title (the // `.head-title` pill rule below). Its options are menu rows: 34px, the check before the name. .watch-menu > summary { diff --git a/style/_pull.scss b/style/_pull.scss index 8d8a0b9..cc6b573 100644 --- a/style/_pull.scss +++ b/style/_pull.scss @@ -21,42 +21,6 @@ --merged-soft: #2b2440; } -// Pull request header and byline - -.issue-heading { - margin: 0.25rem 0 0; - font-size: 1.5rem; - font-weight: 600; - line-height: 1.3; - letter-spacing: -0.01em; -} - -.issue-number { - font-family: var(--mono); - font-size: 0.9em; - font-weight: 500; -} - -.issue-byline { - gap: 8px 12px; - margin: 12px 0 0; - font-size: 14px; - - strong { - color: var(--text); - font-weight: 600; - } - - code { - padding: 1px 6px; - border-radius: var(--radius-sm); - background: var(--surface-2); - color: var(--text); - font-family: var(--mono); - font-size: 12.5px; - } -} - // State badges: open is --ok, closed is --bad, merged is the soft purple. .issue-badge { @@ -99,15 +63,6 @@ } } -// Lists: rows with hairline borders, hover tint. - -.issue-list { - border-color: var(--border); - border-radius: var(--radius-lg); - background: var(--surface); - box-shadow: none; -} - .issue-row { padding: 14px 16px; border-top-color: var(--border); @@ -122,71 +77,6 @@ font-weight: 600; } -.issue-meta { - font-size: 13.5px; -} - -.issue-state { - width: 14px; - height: 14px; - margin-top: 0.2rem; - border-width: 2px; -} - -.issue-state-open { - border-color: var(--ok); - background: var(--surface); -} - -.issue-state-closed { - border-color: var(--merged); - background: var(--merged); -} - -.issue-state.pull-state-closed { - border-color: var(--bad); - background: var(--bad); -} - -.issue-state.pull-state-merged { - border-color: var(--merged); - background: var(--merged); -} - -// Layout: the side panel sits in a 260px column from 1000px wide. - -.issue-layout { - align-items: start; -} - -@media (min-width: 1000px) { - .issue-layout { - grid-template-columns: minmax(0, 1fr) 260px; - gap: 40px; - } -} - -// Breathing room between the header meta line (or the PR tabs) and the discussion. -.issue-head + .issue-layout { - margin-top: 16px; -} - -.issue-sidebar { - gap: 0; - align-content: start; - min-width: 0; - font-size: 14px; - - h2 { - margin: 0 0 8px; - color: var(--muted); - font-size: 12px; - font-weight: 600; - letter-spacing: 0.04em; - text-transform: uppercase; - } -} - // Side sections: 16px rhythm with a hairline between them. Controls are compact (32px), // Save buttons are small outline buttons. A control and its Save button share a row; the // help text sits directly under the control. @@ -245,7 +135,6 @@ // Timeline items and reviews as cards: a surface-2 head strip over the body. -.issue-item, .review-item { border: 1px solid var(--border); border-radius: var(--radius-lg); @@ -253,13 +142,6 @@ overflow: hidden; } -.issue-item-head { - padding: 10px 14px; - border-bottom: 1px solid var(--border); - background: var(--surface-2); - font-size: 13.5px; -} - .issue-item-body { padding: 14px 16px; line-height: 1.6; @@ -427,13 +309,6 @@ color: var(--text); } -.diff-file-meta { - display: inline-flex; - align-items: center; - flex-shrink: 0; - gap: 12px; -} - .diff-file-body { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); @@ -570,68 +445,6 @@ } } -// New issue: label checkboxes sit in a wrapping row, box beside name. - -.label-picker { - flex-direction: row; - flex-wrap: wrap; - gap: 8px 18px; - - label { - flex-direction: row; - align-items: center; - gap: 8px; - font-weight: 400; - } - - input[type="checkbox"] { - width: auto; - margin: 0; - } -} - -// Review bar: radios as a row of options, actions as a row with Submit primary and Discard quiet. - -.review-bar { - .review-choices { - flex-direction: row; - flex-wrap: wrap; - align-items: center; - justify-content: flex-start; - gap: 8px 22px; - - label { - flex-direction: row; - align-items: center; - gap: 8px; - font-weight: 400; - } - - input[type="radio"] { - width: auto; - margin: 0; - } - } - - .review-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px 18px; - margin-top: 14px; - - .review-inline .link-button { - color: var(--muted); - text-decoration: underline; - text-underline-offset: 3px; - - &:hover { - color: var(--text); - } - } - } -} - // Narrow screens: the diff scrolls inside its own box, never the page. @media (max-width: 600px) { @@ -645,32 +458,6 @@ } } -// Issue sidebar label checklist: box and chip on one left-aligned row. -.issue-side-section .issue-check { - flex-direction: row; - align-items: center; - justify-content: flex-start; - gap: 8px; - margin: 0 0 8px; - font-weight: 400; - - input[type="checkbox"] { - width: auto; - margin: 0; - flex: none; - } -} - -// New issue label picker: the inline-form rule would otherwise flatten the row. -.label-picker label { - display: flex; -} - -// Labels page: Edit disclosure and Delete share a centre line; the colour well is a small swatch. -.label-actions { - align-items: center; -} - input[type="color"] { width: 56px; height: var(--control-h, 36px); @@ -681,8 +468,3 @@ input[type="color"] { background: var(--surface); cursor: pointer; } - -// Edit and new forms share one card width. -.issue-edit { - max-width: 60rem; -} diff --git a/style/_repo.scss b/style/_repo.scss index c038769..d4b2486 100644 --- a/style/_repo.scss +++ b/style/_repo.scss @@ -1,38 +1,5 @@ -// Title and visibility pill share one row, the pill vertically centred after the name. -.repo-title-row { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 10px; - - .badge { - padding: 0 9px; - font-size: 12px; - font-weight: 500; - line-height: 20px; - white-space: nowrap; - color: var(--muted); - background: transparent; - border: 1px solid var(--border-strong); - border-radius: var(--radius-full); - } -} - -.repo-title { - margin: 0; - font-size: 22px; - font-weight: 600; - line-height: 1.3; - color: var(--text); - - // The owner is a link in the heading: navigation, so it reads as the heading text. - a { - color: var(--text); - } -} - // Visually hidden but still read by screen readers (labels for the watch select, icon labels). .sr-only { position: absolute; @@ -54,16 +21,6 @@ color: var(--text-2); } -.repo-search { - margin: 0 0 16px; - - input { - height: var(--control-h); - max-width: 360px; - font-size: 14px; - } -} - // Browse bar: branch, archive links and the Clone popover, framed by hairlines. .browse-bar { margin: 20px 0 0; @@ -183,15 +140,6 @@ } } -// The repo home: the browse bar and the tree in a left column, the README beside it. Below 900px -// the columns stack in normal flow. -.repo-grid { - display: grid; - grid-template-columns: minmax(0, 1fr); - gap: 32px; - margin-top: 16px; -} - .repo-main { min-width: 0; } @@ -277,47 +225,6 @@ } } - // The drag handle between the tree and the README (nav.js drives it): a 1px rule centred in the - // 8px track, full height of the grid. Hidden below 900px, where the columns stack. - .repo-split { - display: none; - position: relative; - align-self: stretch; - cursor: col-resize; - touch-action: none; - outline: none; - - &::before { - content: ''; - position: absolute; - top: 0; - bottom: 0; - left: 50%; - width: 1px; - transform: translateX(-50%); - background: transparent; - } - - &:hover::before, - &:focus-visible::before { - background: var(--accent); - } - - &:focus-visible::before { - width: 2px; - } - } -} - -// While a drag runs, the whole page keeps the resize cursor and the text stays unselected. -html.tree-resizing, -html.tree-resizing * { - cursor: col-resize !important; - user-select: none; -} - -html.tree-resizing .repo-split::before { - background: var(--accent); } // From 900px: the tree and README side by side, filling the viewport. @@ -326,10 +233,6 @@ html.tree-resizing .repo-split::before { grid-template-columns: var(--tree-w, 380px) 12px minmax(0, 1fr); gap: 32px 8px; - .repo-split { - display: block; - } - .repo-main, .repo-readme { height: var(--repo-home-h); @@ -338,142 +241,6 @@ html.tree-resizing .repo-split::before { } } -// The facts line under the repo header: license and size, a bar of the languages with its legend, -// then the latest release as a chip at the right end. -.repo-strip { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px 20px; - margin: 4px 0 16px; - font-size: 13px; - color: var(--text-2); - - .i { - width: 14px; - height: 14px; - fill: none; - stroke: currentColor; - stroke-width: 1.8; - stroke-linecap: round; - stroke-linejoin: round; - } -} - -.strip-fact { - display: inline-flex; - align-items: center; - gap: 6px; - white-space: nowrap; -} - -.strip-langs { - display: flex; - flex: 0 1 auto; - align-items: center; - gap: 12px; - min-width: 0; -} - -.lang-bar { - flex: none; - width: 160px; - height: 6px; - overflow: hidden; - border-radius: var(--radius-full); - background: var(--surface-2); -} - -.lang-legend { - display: flex; - flex-wrap: wrap; - gap: 4px 14px; - margin: 0; - padding: 0; - list-style: none; - - li { - display: inline-flex; - align-items: center; - gap: 6px; - white-space: nowrap; - } -} - -// The languages' shades: the biggest takes the text colour, the next ones fainter mixes of it, the -// folded remainder the muted colour. Classes, not inline styles, since the CSP allows none. -.lang-0 { --lang: var(--text-2); } -.lang-1 { --lang: color-mix(in srgb, var(--text-2) 65%, var(--surface)); } -.lang-2 { --lang: color-mix(in srgb, var(--text-2) 40%, var(--surface)); } -.lang-3 { --lang: color-mix(in srgb, var(--text-2) 22%, var(--surface)); } -.lang-4 { --lang: var(--muted); } - -.lang-bar rect { - fill: var(--lang); -} - -.lang-dot { - width: 8px; - height: 8px; - border-radius: 50%; - background: var(--lang); -} - -.strip-chips { - display: flex; - flex-wrap: wrap; - gap: 8px; - margin-left: auto; - - &:empty { - display: none; - } -} - -.strip-chip { - display: inline-flex; - align-items: center; - gap: 6px; - height: 26px; - padding: 0 10px; - color: var(--text); - white-space: nowrap; - border: 1px solid var(--border); - border-radius: var(--radius-full); - - &:hover { - text-decoration: none; - background: var(--surface-2); - } -} - -// The newest CI run over the tree: its dot, number and words, and All runs at the right. -.repo-ci { - display: flex; - align-items: center; - gap: 12px; - padding: 8px 0; - font-size: 13px; - border-bottom: 1px solid var(--border); - - .side-run-link { - flex: 1 1 auto; - min-width: 0; - padding: 0; - } -} - -// Tab icons in the repo sidebar nav (`.tab-icon` is spaced by the shell styles). -.repo-tabs .tab-icon svg { - width: 16px; - height: 16px; - fill: none; - stroke: currentColor; - stroke-width: 1.8; - stroke-linecap: round; - stroke-linejoin: round; -} - // README card: a header strip with the file name, then padded body. .readme { margin-top: 24px; @@ -491,13 +258,6 @@ html.tree-resizing .repo-split::before { } } -// File viewer: the header strip matches the README strip. -.file-head { - padding: 10px 16px; - font-size: 14px; - background: var(--surface-2); -} - .commit-summary { font-size: 15px; font-weight: 600; @@ -519,40 +279,6 @@ html.tree-resizing .repo-split::before { } } -.role-list { - display: grid; - gap: 4px 0; - margin: 0; - - dt { - font-weight: 600; - color: var(--text); - } - - dd { - margin: 0 0 8px; - color: var(--muted); - } - - @media (min-width: 640px) { - grid-template-columns: max-content 1fr; - gap: 8px 24px; - align-items: baseline; - - dd { - margin: 0; - } - } -} - -@media (max-width: 560px) { - -} - -@media (max-width: 480px) { - -} - // Audit fixes: repo tab icons sit on the text baseline, listing tables end flush with their // container, and release cards keep their markdown headings in proportion. .repo-tabs .tab { @@ -560,12 +286,6 @@ html.tree-resizing .repo-split::before { align-items: center; gap: 8px; - .tab-icon { - display: inline-flex; - flex: none; - align-items: center; - margin: 0; - } } // Form stacks: help text sits right under its field (the stack gap already spaces blocks), and @@ -608,13 +328,6 @@ html.tree-resizing .repo-split::before { } } -@media (max-width: 600px) { - -} - -@media (max-width: 600px) { -} - // A CI badge on forge's own pages (syncBadges in nav.js): the two halves of the SVG, in theme colours. // The image stays hidden while its data is fetched, so it does not flash its own colours. img.badge-wait { diff --git a/style/_repo_side.scss b/style/_repo_side.scss index 9c222bc..d073516 100644 --- a/style/_repo_side.scss +++ b/style/_repo_side.scss @@ -10,23 +10,6 @@ border-bottom: 1px solid var(--border-strong); } -// The run is one link: an ember dot that glows while the run goes, the number, -// a slim heat bar of the jobs done (while it goes), and one muted line on the right: the current -// job and its clock, or the result and the total time. -.side-run-link { - display: flex; - align-items: center; - gap: 8px; - min-width: 0; - padding: 11px 0; - color: inherit; - text-decoration: none; - - &:hover .side-run-name { - text-decoration: underline; - } -} - .health-dot.ember { background: var(--heat-3); box-shadow: 0 0 6px var(--heat-glow); @@ -42,50 +25,3 @@ box-shadow: 0 0 10px var(--heat-glow); } } - -.side-run-name { - flex: none; - color: var(--text); - font-size: 14px; - font-weight: 600; - font-variant-numeric: tabular-nums; -} - -progress.side-run-bar { - -webkit-appearance: none; - appearance: none; - flex: 1 1 auto; - box-sizing: border-box; - min-width: 24px; - height: 4px; - margin: 0; - border: 0; - border-radius: 2px; - overflow: hidden; - background: var(--border); - color: var(--heat-3); - - &::-webkit-progress-bar { - background: var(--border); - } - - &::-webkit-progress-value { - border-radius: 2px; - background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); - } - - &::-moz-progress-bar { - border-radius: 2px; - background: linear-gradient(90deg, var(--heat-2), var(--heat-3), var(--heat-4)); - } -} - -.side-run-text { - min-width: 0; - margin-left: auto; - overflow: hidden; - font-size: 12px; - font-variant-numeric: tabular-nums; - text-overflow: ellipsis; - white-space: nowrap; -} diff --git a/style/_review_flow.scss b/style/_review_flow.scss index 3a66c76..b368303 100644 --- a/style/_review_flow.scss +++ b/style/_review_flow.scss @@ -1,13 +1,5 @@ -.viewed-note { - flex: none; - font-size: 12px; - font-weight: 600; - color: var(--text); - white-space: nowrap; -} - // A viewed file keeps its heading and drops its diff until the reader opens it again by // unmarking it. nav.js sets is-viewed on the section once the page has loaded. .diff-file.is-viewed { @@ -20,7 +12,3 @@ opacity: 0.6; } } - -@media (prefers-reduced-motion: reduce) { - -} diff --git a/style/_shell.scss b/style/_shell.scss index 14490ab..7340603 100644 --- a/style/_shell.scss +++ b/style/_shell.scss @@ -47,12 +47,6 @@ } } -.wordmark-mark { - width: 20px; - height: 20px; - color: var(--text); -} - .topbar .crumbs { display: flex; align-items: center; @@ -78,48 +72,6 @@ } } -.top-search { - position: relative; - flex: 0 1 340px; - min-width: 0; - margin: 0 0 0 auto; - - input { - box-sizing: border-box; - width: 100%; - height: 36px; - min-width: 0; - margin: 0; - padding: 0 12px 0 36px; - border: 1px solid var(--border); - border-radius: var(--radius-md); - background: var(--surface); - color: var(--text); - font: inherit; - font-size: 14px; - - &::placeholder { - color: var(--muted); - } - - &:focus { - outline: none; - border-color: var(--accent); - box-shadow: 0 0 0 3px var(--accent-soft); - } - } -} - -.top-search-icon { - position: absolute; - top: 10px; - left: 11px; - width: 16px; - height: 16px; - color: var(--muted); - pointer-events: none; -} - .topbar .icon-btn { position: relative; display: grid; @@ -190,14 +142,6 @@ } } -.pathbar-ico { - flex: none; - width: 15px; - height: 15px; - margin-right: 6px; - color: var(--muted); -} - .pathbar-segs { display: flex; align-items: center; @@ -571,15 +515,6 @@ color: var(--muted); } -// Profile corner: the signed-in user's floating panel at the bottom left of the window (see -// `.corner-float`). Its menu opens upward from the panel. -.corner-wrap { - position: relative; - display: flex; - align-items: center; - gap: 4px; -} - .corner { position: relative; } @@ -608,21 +543,6 @@ } } -// The name wraps onto at most two lines, breaking at spaces. A single word too long for the line -// breaks inside it. -.corner-name { - min-width: 0; - overflow: hidden; - font-size: 13.5px; - font-weight: 600; - line-height: 1.2; - white-space: normal; - overflow-wrap: break-word; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; -} - // The avatar beside the name. Running CI shows in the live strip, not around the avatar. .corner-avatar { display: grid; @@ -711,11 +631,6 @@ a.chip { .corner-float { } -.corner-float.corner-away { - opacity: 0; - pointer-events: none; -} - // Placed in the top half of the window: the menu opens below the panel. In the right half it anchors // to the panel's right edge instead of the left one. The default corner keeps the upward menu. .corner-float[data-open="down"] .corner-menu { @@ -737,20 +652,6 @@ a.chip { right: 8px; } -// The viewer's full name, never truncated. On a phone it wraps instead of running off the screen. -.corner-float .corner-name { - display: block; - padding-right: 4px; - white-space: nowrap; - overflow: visible; -} - -@media (max-width: 479px) { - .corner-float .corner-name { - white-space: normal; - } -} - .corner-float .corner-btn { padding: 2px 4px; } @@ -835,10 +736,6 @@ body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer { display: none; } - .top-search { - flex: 1 1 0; - } - // Phones: the path bar shows only the last segment, and the live strip goes (its counts are in the menu). .pathbar-segs li:not(:last-child) { display: none; @@ -860,13 +757,6 @@ body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer { } } -@media (max-width: 639px) { - .top-search { - display: none; - } - -} - @media (min-width: 700px) { .shell-body > main { padding: 20px 28px 24px; @@ -882,20 +772,6 @@ body[data-signed-in] .shell:not(:has(> .shell-sidebar)) .site-footer { display: none; } - .shell:has(> .shell-sidebar) { - grid-template-columns: var(--sidebar-w) minmax(0, 1fr); - } - -} - -// Sidebar on the right (the user's preference, set on as data-sidebar). The section sidebar -// takes the second column and its border moves to its inner edge. Below -// 900px the sidebar is hidden either way, so the phone layout and the nav toggle are unchanged. -@media (min-width: 900px) { - html[data-sidebar="right"] .shell:has(> .shell-sidebar) { - grid-template-columns: minmax(0, 1fr) var(--sidebar-w); - } - } // Soft navigation: a thin progress line along the top while a page is being fetched in place diff --git a/style/_timeline.scss b/style/_timeline.scss index 574b3d8..78f3de6 100644 --- a/style/_timeline.scss +++ b/style/_timeline.scss @@ -6,57 +6,6 @@ padding-bottom: 12px; } -// The Code tab's head: no title row. The tabs sit at the left, and the visibility, the counts and -// the watch and star controls sit at the right end of the same row. Fork and mirror lines wrap -// under the row. -.repo-head-code { - justify-content: flex-start; - - > div:first-child:empty { - display: none; - } - - > div:first-child { - order: 2; - flex: 1 0 100%; - } - - .repo-tabs { - margin-right: auto; - } - -} - -// One rule under the whole row, so the actions read as part of the tab bar. The tab icons go to -// make the room. Under 1280px the two no longer fit, and the actions take a row of their own. -@media (min-width: 900px) { - .repo-head-code { - align-items: center; - border-bottom: 1px solid var(--border); - - .repo-tabs { - margin-bottom: 0; - border-bottom: 0; - } - - .repo-tabs .tab-icon { - display: none; - } - } -} - -@media (min-width: 1280px) { - .repo-head-code { - flex-wrap: nowrap; - - .repo-tabs { - flex: 0 1 auto; - min-width: 0; - } - - } -} - // The page is exactly one window: the footer is left off this page, and the panes and the dock // fill the height. (The footer would sit under the floating profile panel.) body:has(.repo-home) .site-footer { diff --git a/style/_timeline_ci.scss b/style/_timeline_ci.scss index 2ae9ca5..136de24 100644 --- a/style/_timeline_ci.scss +++ b/style/_timeline_ci.scss @@ -26,188 +26,6 @@ box-shadow: none; } -// Head: `Run #N` in mono, the title in Archivo at 24 px at most, the full message on demand; the meta -// line below it; one or two actions at the right. -.ci-tl-head { - position: relative; - flex: none; - height: 64px; - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; - min-width: 0; - margin: 0; -} - -.ci-tl-headmain { - flex: 1 1 auto; - min-width: 0; - display: flex; - flex-direction: column; - gap: 4px; -} - -.ci-tl-line { - display: flex; - align-items: baseline; - gap: 12px; - min-width: 0; -} - -.ci-tl-no { - flex: none; - font-family: var(--mono); - font-size: 11px; - font-weight: 500; - letter-spacing: 0.12em; - text-transform: uppercase; - color: var(--muted); - white-space: nowrap; - - a { - color: inherit; - } -} - -.ci-tl-title { - flex: 0 1 auto; - min-width: 0; - margin: 0; - font-family: var(--display, var(--font)); - font-size: 24px; - font-weight: 700; - line-height: 1.2; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.ci-tl-more { - flex: none; - font-size: 13px; - color: var(--text-2); - - summary { - cursor: pointer; - text-decoration: underline; - text-underline-offset: 3px; - } - - p { - position: absolute; - z-index: 5; - margin-top: 6px; - max-width: 560px; - padding: 10px 12px; - background: var(--surface-2); - border: 1px solid var(--border); - border-radius: 8px; - } -} - -.ci-tl-meta { - display: flex; - align-items: center; - gap: 12px; - min-width: 0; - font-size: 13px; - white-space: nowrap; - overflow: hidden; - - .ci-state { - color: var(--text-2); - } - - // The state is accent only while the run is live. - .ci-state.ci-running, - .ci-state.ci-queued, - .ci-state.ci-waiting_approval { - color: var(--accent-ink); - font-weight: 600; - } - - .ci-tl-dur { - font-family: var(--mono); - font-size: 12px; - color: var(--text-2); - } -} - -.ci-tl-actions { - flex: none; - display: flex; - align-items: center; - gap: 8px; - margin: 0; -} - -// The progress of a running run: a hairline at the foot of the head. -.ci-tl-head .ci-est-run { - position: absolute; - left: 0; - right: 0; - bottom: 0; - width: 100%; - height: 2px; -} - -// Main: the jobs (300 px) and the log, both the height the page leaves them. -.ci-tl-main { - flex: 1 1 0; - min-height: 0; - display: grid; - grid-template-columns: 300px minmax(0, 1fr); - gap: 12px; -} - -.ci-tl-label { - display: block; - flex: none; - margin: 0; - font-family: var(--mono); - font-size: 11px; - font-weight: 500; - letter-spacing: 0.12em; - text-transform: uppercase; - color: var(--muted); -} - -.ci-tl-pad { - padding: 0 14px; -} - -// Jobs pane: a 36 px title row, then one 36 px row per job. -.ci-tl-jobs { - overflow-y: auto; - overscroll-behavior: contain; - - > .ci-tl-label { - height: 36px; - line-height: 36px; - padding: 0 14px; - box-shadow: inset 0 -1px var(--border); - } - - .ci-tl-facts { - padding-top: 12px; - padding-bottom: 8px; - font-size: 13px; - - p { - margin: 0 0 4px; - } - } - - .ci-art-list, - .ci-artifacts { - margin: 0; - padding: 0 14px 12px; - list-style: none; - font-size: 13px; - } -} - .ci-tl-list { flex: none; margin: 0; @@ -254,63 +72,6 @@ } } -.ci-tl-sub .ci-tl-job { - padding-left: 28px; -} - -// The job's bar: a 3 px band along the bottom of its row, one segment per step. It sits over the row's -// hairline and takes no room, so the row keeps its height. -.ci-tl-stepbar { - position: absolute; - left: 0; - bottom: 0; - display: block; - width: 100%; - height: 3px; - pointer-events: none; - - .ci-sbar-pass { - fill: var(--border-strong); - } - - .ci-sbar-fail { - fill: var(--bad); - } - - .ci-sbar-off, - .ci-sbar-track { - fill: var(--border); - } - - .ci-sbar-run { - fill: var(--accent); - } -} - -// A job's steps: a dropdown under its row. The row keeps room for the toggle at its right end, and while -// the dropdown is open the row's bar gives way to the step lines (the bar is the summary when shut). -.ci-tl-hassteps { - position: relative; - - > .ci-tl-job { - padding-right: 40px; - } - - &:has(> details[open]) .ci-tl-stepbar { - display: none; - } -} - -.ci-tl-steps { - margin: 0; -} - -.ci-tl-steplist { - margin: 0; - padding: 0; - list-style: none; -} - // The toggle sits over the job row's right end, a 28 px target (36 px on a phone). Its chevron turns // when the dropdown is open; the browser's marker is gone. .ci-tl-steptoggle { @@ -343,84 +104,6 @@ } } -.ci-tl-steps[open] > .ci-tl-steptoggle .ci-chev { - transform: rotate(45deg); -} - -// A step under its job: a 30 px line with a 6 px mark, its name and its duration at the right. -// Indented past the job's dot, one level more for a matrix combination. The selected step has an -// accent edge on the left, and a failed step's name reads in --text. Its progress bar is along the foot. -.ci-tl-step { - position: relative; - display: flex; - align-items: center; - gap: 8px; - height: 30px; - min-width: 0; - padding: 0 14px 0 34px; - box-shadow: inset 0 -1px var(--border); - color: var(--text-2); - text-decoration: none; - font-size: 12px; - - &.ci-tl-step-sub { - padding-left: 48px; - } - - &:hover { - background: var(--surface-2); - text-decoration: none; - } - - &[aria-current="true"] { - color: var(--text); - background: var(--surface-2); - box-shadow: inset 2px 0 var(--accent), inset 0 -1px var(--border); - } - - .ci-tl-dur { - margin-left: auto; - flex: none; - font-family: var(--mono); - font-size: 11px; - color: var(--text-2); - } -} - -.ci-tl-stepmark { - flex: none; - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--muted); - - &.ci-st-run { - background: var(--accent); - } - - &.ci-st-fail { - background: var(--bad); - } - - &.ci-st-off { - background: transparent; - border: 1px solid var(--muted); - box-sizing: border-box; - } -} - -.ci-tl-stepname { - flex: 1 1 auto; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.ci-st-fail ~ .ci-tl-stepname { - color: var(--text); -} - .ci-tl-stepexp { flex: none; font-family: var(--mono); @@ -428,36 +111,6 @@ color: var(--muted); } -.ci-tl-name { - flex: 1 1 auto; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -// The image, as a mono tag. -.ci-tl-tag { - flex: none; - font-family: var(--mono); - font-size: 11px; - padding: 1px 7px; - border-radius: 5px; - background: var(--surface-2); - color: var(--text-2); -} - -.ci-tl-artline { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px; - height: 36px; - padding: 0 14px; - margin-top: 8px; - box-shadow: inset 0 -1px var(--border); -} - // Log pane: the 48 px bar (the tabs, then the log's tools), the code area, and the timeline tab. .ci-tl-log { position: relative; @@ -624,15 +277,6 @@ padding: 12px 14px; } -.ci-dock-note { - position: absolute; - top: 12px; - right: 14px; - margin: 0; - font-size: 12px; - color: var(--muted); -} - .ci-dock .dock-history { flex: 1 1 0; min-height: 0; @@ -687,16 +331,6 @@ overflow: visible; } - .ci-tl-main { - grid-template-columns: minmax(0, 1fr); - } - - .ci-tl-head { - height: auto; - flex-wrap: wrap; - } - - .ci-tl-jobs, .ci-tl-log, .ci-tl-panel-timeline { overflow: visible; @@ -707,10 +341,6 @@ width: 36px; } - .ci-tl-hassteps > .ci-tl-job { - padding-right: 46px; - } - // These panels share out a fixed height on a wide window; here there is none to share. .ci-tl-panel { flex: none; @@ -726,10 +356,3 @@ min-height: 140px; } } - -// The commits page: the list scrolls inside a pane that fills the window under the tabs, and the pager -// stays under it. Below 900px the list grows with its rows, as the page stacks. -@media (min-width: 900px) { - -} - diff --git a/style/main.scss b/style/main.scss index 79c0e80..36019b9 100644 --- a/style/main.scss +++ b/style/main.scss @@ -356,10 +356,6 @@ main { border-top: 1px solid var(--border); } -.repo-title { - word-break: break-all; -} - .actions { display: flex; gap: 12px; @@ -886,14 +882,6 @@ code { } } -@media (max-width: 600px) { - -} - -@media (max-width: 600px) { - -} - // Small screens @media (max-width: 600px) { @@ -906,17 +894,6 @@ code { } } -// Code search - -.repo-search { - margin: 0 0 12px; - - input { - width: 100%; - max-width: 360px; - } -} - .search-form { margin: 0 0 16px; } @@ -925,15 +902,6 @@ code { margin: 0 0 16px; } -.search-file-name { - font-size: 1rem; - margin: 0 0 4px; - - a { - color: var(--text); - } -} - .search-hits { list-style: none; margin: 0; @@ -952,12 +920,6 @@ code { min-width: 0; } -.search-results mark { - background: var(--row-target); - color: inherit; - border-radius: 2px; -} - // Repo tabs .repo-tabs { @@ -1563,27 +1525,6 @@ code { min-width: 0; } -.file-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px 16px; - flex-wrap: wrap; - padding: 8px 12px; - background: var(--surface); - border: 1px solid var(--border); - border-bottom: 0; - border-radius: var(--radius-lg) var(--radius-lg) 0 0; -} - -.file-actions { - display: flex; - gap: 14px; - flex-wrap: wrap; - font-size: 0.875rem; - margin-left: auto; -} - .file-view, .diff-file-body { max-width: 100%; @@ -1683,12 +1624,6 @@ code { flex-direction: column; gap: 12px; - .check-field { - display: flex; - flex-direction: column; - gap: 2px; - } - small, .notice { font-size: 0.8125rem; @@ -1829,10 +1764,6 @@ code { @media (max-width: 600px) { - .file-actions { - margin-left: 0; - } - // The branch switcher opens as a full-width sheet from the bottom, with larger tap targets. .ref-menu { position: fixed; @@ -1863,31 +1794,6 @@ code { } } -// profile page - -.profile-page { - display: flex; - flex-direction: column; - gap: 24px; - padding-top: 8px; -} - -.profile-head { - display: flex; - align-items: center; - gap: 24px; - flex-wrap: wrap; - - h1 { - margin: 0 0 4px; - overflow-wrap: anywhere; - } - - p { - margin: 0; - } -} - .profile-avatar { width: 160px; height: 160px; @@ -1914,19 +1820,6 @@ code { } } -@media (min-width: 900px) { - -} - -@media (max-width: 899px) { - -} - -// Phones: the tabs fit the screen width with tighter padding. -@media (max-width: 480px) { - -} - // Pagers: Previous, "Page X of Y", Next in one row. .pager { display: flex; @@ -2083,19 +1976,6 @@ code { --c-span: calc(0.16 * 12 / 11); } -.hue-row { - display: grid; - grid-template-columns: 4.5rem minmax(0, 1fr); - align-items: start; - gap: 8px 12px; - min-width: 0; - - // The Custom choice takes the width of one preset, so the sliders line up beside the presets. - > .colour-choice { - width: 4.5rem; - } -} - // The sliders stack: the hue slider full width, then the vividness slider and the hex box on one line, // then a note that shows only when a typed hex was lightened to keep text readable. .tune { @@ -2197,16 +2077,6 @@ code { } } -// The lightness note is empty, and so hidden, unless a typed colour was lightened. -.hex-note { - font-size: 0.75rem; - color: var(--muted); - - &:empty { - display: none; - } -} - // The Custom swatch shows the colour its row's sliders stand for. .hue-swatch { background: oklch(var(--track-l) var(--track-c) var(--hue)); @@ -2314,86 +2184,6 @@ code { outline-offset: 1px; } -// branch protection -// Settings page: one bordered list of rules. Each rule is a row: a one-line summary (pattern, pills, -// Edit and a chevron) that opens its form below it. The default-branch row, when no rule covers it, -// is a plain muted row, and New rule is the last row. -.rule-list { - display: flex; - flex-direction: column; - margin-bottom: 10px; - overflow: hidden; - border: 1px solid var(--border); - border-radius: var(--radius-md); - background: var(--surface); - - > * + * { - border-top: 1px solid var(--border); - } -} - -// A rule row: the summary is one 44px line, and the form under it sits on the page background. -.rule-row { - > summary { - display: grid; - grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; - align-items: center; - gap: 12px; - height: 44px; - padding: 0 14px; - cursor: pointer; - list-style: none; - - &::-webkit-details-marker { - display: none; - } - - &:hover { - background: var(--surface-2); - } - } - - > .rule-form { - border-top: 1px solid var(--border); - background: var(--bg); - } - - // The summary's Edit text and chevron. The chevron points down when closed and up when open. - > summary .rule-end { - display: flex; - align-items: center; - gap: 8px; - color: var(--muted); - font-size: 12px; - } - - > summary .rule-chevron { - flex: none; - width: 7px; - height: 7px; - border-right: 2px solid var(--muted); - border-bottom: 2px solid var(--muted); - transform: rotate(45deg); - } - - &[open] > summary .rule-chevron { - transform: rotate(-135deg); - } -} - -.rule-pattern { - min-width: 0; - padding: 0; - background: none; - font-family: var(--mono); - font-size: 15px; - font-weight: 600; - color: var(--text); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - // The pills share the middle column. When they run out of room, the last ones are cut off. .rule-pills { display: flex; @@ -2404,51 +2194,6 @@ code { text-overflow: ellipsis; } -.rule-pill { - display: inline-flex; - flex: none; - align-items: center; - padding: 1px 8px; - border: 1px solid var(--border); - border-radius: var(--radius-full); - background: var(--surface-2); - color: var(--text-2); - font-size: 12px; - line-height: 18px; - white-space: nowrap; - - &.warn { - border-color: var(--warn); - background: color-mix(in srgb, var(--warn) 14%, transparent); - color: var(--warn); - } - - &.check { - font-family: var(--mono); - } - - &.muted { - border-style: dashed; - background: none; - color: var(--muted); - } -} - -// The built-in default-branch row: muted, one line, not clickable. -.rule-builtin { - display: grid; - grid-template-columns: minmax(0, auto) minmax(0, 1fr); - align-items: center; - gap: 12px; - height: 44px; - padding: 0 14px; - color: var(--muted); - - .rule-pattern { - color: var(--muted); - } -} - // New rule: the last row, its one line in the accent colour. .rule-new { > summary { @@ -2463,38 +2208,6 @@ code { } } -// The rule form: four sections, each with a small uppercase legend. Pushes and Merging sit side by -// side on wide screens. -.rule-form { - display: flex; - flex-direction: column; - gap: 20px; - min-width: 0; - padding: 16px; - - input[type="text"] { - max-width: 28rem; - } - - input[name="pattern"] { - max-width: 320px; - } - -} - -.rule-pair { - display: grid; - grid-template-columns: minmax(0, 1fr); - gap: 20px; -} - -@media (min-width: 900px) { - .rule-pair { - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 24px; - } -} - .rule-section { display: flex; flex-direction: column; @@ -2592,15 +2305,6 @@ code { } } -// labels & milestones -// Label list and create/edit forms on the labels page. Chips get their colors from labels.css. -.label-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px; -} - .label-chip { display: inline-block; padding: 2px 10px; @@ -2611,34 +2315,12 @@ code { text-decoration: none; } -.label-actions { - display: flex; - flex-wrap: wrap; - align-items: flex-start; - gap: 12px; - margin-top: 8px; - - details { - flex: 1 1 20rem; - } - - summary { - cursor: pointer; - color: var(--text); - } - -} - .badge.overdue { background: var(--danger-bg); color: var(--danger); margin-left: 0; } -@media (max-width: 600px) { - -} - .tab-count { display: inline-block; min-width: 1.6em; @@ -2650,132 +2332,29 @@ code { text-align: center; } -.issue-toolbar { +.issue-row { display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; + align-items: flex-start; gap: 0.75rem; - margin: 1rem 0 0.75rem; + padding: 0.75rem 1rem; + border-top: 1px solid var(--border); + background: var(--surface); + + &:first-child { + border-top: 0; + } } -.issue-tabs { - display: flex; - gap: 0.25rem; - - a { - padding: 0.35rem 0.75rem; - border-radius: var(--radius-md); - color: var(--muted); - text-decoration: none; - - &:hover { - color: var(--text); - } - - &.current { - border: 1px solid var(--border); - background: var(--surface); - color: var(--text); - font-weight: 600; - } - } -} - -.issue-search { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.5rem; - margin-bottom: 0.5rem; - - input[type="search"] { - flex: 1 1 14rem; - max-width: 32rem; - } - - select { - width: auto; - } -} - -.issue-list { - list-style: none; - margin: 0; - padding: 0; - border: 1px solid var(--border); - border-radius: var(--radius-lg); - overflow: hidden; -} - -.issue-row { - display: flex; - align-items: flex-start; - gap: 0.75rem; - padding: 0.75rem 1rem; - border-top: 1px solid var(--border); - background: var(--surface); - - &:first-child { - border-top: 0; - } -} - -.issue-state { - flex: none; - width: 0.9rem; - height: 0.9rem; - margin-top: 0.3rem; - border: 2px solid; - border-radius: 50%; -} - -.issue-state-open { - border-color: var(--public-text); - background: var(--public-bg); -} - -.issue-state-closed { - border-color: var(--important); - background: var(--private-bg); -} - -.issue-main { - flex: 1 1 auto; - min-width: 0; -} - -.issue-title-line { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.4rem; -} - -.issue-title { - color: var(--text); - font-weight: 600; - text-decoration: none; +.issue-title { + color: var(--text); + font-weight: 600; + text-decoration: none; &:hover { text-decoration: underline; } } -.issue-meta { - margin-top: 0.2rem; - display: flex; - flex-wrap: wrap; - gap: 0.3rem; -} - -.issue-aside { - flex: none; - display: flex; - align-items: center; - gap: 0.35rem; -} - .label-chip { display: inline-block; padding: 0 0.6rem; @@ -2786,40 +2365,6 @@ code { text-decoration: none; } -.issue-new { - max-width: 60rem; - - textarea { - min-height: 14rem; - font-family: var(--mono); - } -} - -// issue view -// Issue page: header, a two-column layout (timeline and sidebar), timeline items with a header -// strip, event lines, and the comment and edit forms. Label chips come from `.label-chip` above. -.issue-heading { - margin: 0.25rem 0; - font-size: 1.5rem; - line-height: 1.3; - overflow-wrap: anywhere; -} - -.issue-number { - color: var(--muted); - font-weight: 400; -} - -.issue-byline { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.35rem; - margin: 0.25rem 0 1rem; - color: var(--muted); - font-size: 0.9rem; -} - .issue-badge { display: inline-block; padding: 2px 10px; @@ -2843,26 +2388,6 @@ code { } } -.issue-layout { - display: grid; - grid-template-columns: minmax(0, 1fr) 15rem; - gap: 1.5rem; - align-items: start; -} - -.issue-column { - display: flex; - flex-direction: column; - gap: 1rem; - min-width: 0; -} - -@media (max-width: 700px) { - .issue-layout { - grid-template-columns: minmax(0, 1fr); - } -} - .issue-timeline { display: flex; flex-direction: column; @@ -2870,36 +2395,6 @@ code { min-width: 0; } -.issue-item { - min-width: 0; - border: 1px solid var(--border); - border-radius: var(--radius-lg); - background: var(--surface); - overflow: hidden; -} - -.issue-item-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.5rem; - padding: 0.5rem 0.75rem; - border-bottom: 1px solid var(--border); - background: var(--code-bg); - font-size: 0.9rem; -} - -.issue-item-actions { - display: inline-flex; - align-items: center; - gap: 0.6rem; - margin-left: auto; - - form { - margin: 0; - } -} - .issue-item-body { padding: 0.75rem 1rem; overflow-wrap: anywhere; @@ -2981,45 +2476,12 @@ span.reaction { font-size: 0.85rem; } -.issue-event { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.35rem; - padding: 0 0.75rem; - color: var(--muted); - font-size: 0.9rem; -} - -.issue-comment, -.issue-edit { +.issue-comment { h2 { margin-top: 0; } } -.issue-comment-form textarea, -.issue-edit textarea { - width: 100%; - min-height: 8rem; - box-sizing: border-box; - font: inherit; -} - -.issue-actions { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.5rem; -} - -.issue-sidebar { - display: flex; - flex-direction: column; - gap: 0.75rem; - font-size: 0.9rem; -} - .issue-side-section { padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); @@ -3040,37 +2502,6 @@ span.reaction { } } -.issue-check { - display: flex; - align-items: center; - gap: 0.4rem; - margin: 0.2rem 0; -} - -.issue-chips { - display: flex; - flex-wrap: wrap; - gap: 0.3rem; -} - -.issue-names { - margin: 0; - padding: 0; - list-style: none; -} - -.issue-tools { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.5rem; - - nav { - display: flex; - gap: 0.5rem; - } -} - // Pull request list .issue-badge.issue-badge-closed { @@ -3084,16 +2515,6 @@ span.reaction { color: var(--accent-text); } -.issue-state.pull-state-closed { - border-color: var(--danger); - background: var(--danger-bg); -} - -.issue-state.pull-state-merged { - border-color: var(--important); - background: var(--important); -} - // pull request view // Merge box on the Conversation tab: a status headline, the conflicting files and the merge // form. The merged notice uses the same box. Badges come from `.issue-badge` above. @@ -3228,18 +2649,6 @@ span.reaction { } } -.review-thread-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px; - padding: 8px 12px; - border-bottom: 1px solid var(--border); - background: var(--code-bg); - font-size: 0.875rem; - word-break: break-all; -} - .review-hunk { margin: 0; padding: 8px 12px; @@ -3250,39 +2659,6 @@ span.reaction { overflow-x: auto; } -.review-comment { - padding: 10px 12px; - border-bottom: 1px solid var(--border); - - &:last-child { - border-bottom: 0; - } -} - -.review-comment-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px; - font-size: 0.875rem; - color: var(--muted); - - strong { - color: var(--text); - } -} - -.review-comment-actions { - margin-left: auto; - display: inline-flex; - align-items: center; - gap: 8px; -} - -.review-comment-body { - margin-top: 6px; -} - // A suggested change: the commented line (removed) and the lines that replace it (added), in the // same colours as the diff's del and add rows. .review-suggestion { @@ -3291,125 +2667,39 @@ span.reaction { border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; - font-size: 0.875rem; -} - -.review-suggestion-caption { - padding: 6px 10px; - border-bottom: 1px solid var(--border); - color: var(--muted); -} - -.review-suggestion-line { - display: flex; - gap: 8px; - padding: 2px 10px; - font-family: var(--mono); - font-size: 0.8125rem; - white-space: pre; - overflow-x: auto; - - code { - font-family: inherit; - white-space: pre; - } - - &.add { - background: var(--add-bg); - color: var(--add-text); - } - - &.del { - background: var(--del-bg); - color: var(--del-text); - } -} - -.review-suggestion-sign { - flex: 0 0 auto; - width: 1ch; -} - -.review-suggestion-apply { - padding: 8px 10px; - border-top: 1px solid var(--border); -} - -.review-suggestion-outdated { - margin: 0; - padding: 8px 10px; - border-top: 1px solid var(--border); - color: var(--muted); -} - -.review-thread-actions { - display: flex; - gap: 12px; - padding: 6px 12px; - border-top: 1px solid var(--border); - font-size: 0.875rem; -} - -.review-reply { - padding: 10px 12px; - border-top: 1px solid var(--border); -} - -.review-inline { - display: inline; - margin: 0; -} - -.review-badge { - display: inline-block; - padding: 0 8px; - border-radius: var(--radius-full); - font-size: 0.75rem; - font-weight: 600; - line-height: 20px; -} - -.review-badge-outdated { - background: var(--private-bg); - color: var(--private-text); -} - -.review-badge-pending { - background: var(--hunk-bg); - color: var(--hunk-text); -} - -.review-bar { - margin: 0 0 16px; - - h2 { - margin: 0 0 4px; - font-size: 1rem; - } + font-size: 0.875rem; } -.review-choices { +.review-suggestion-line { display: flex; - flex-wrap: wrap; - gap: 12px; - margin: 0; - padding: 0; - border: 0; + gap: 8px; + padding: 2px 10px; + font-family: var(--mono); + font-size: 0.8125rem; + white-space: pre; + overflow-x: auto; - legend { - padding: 0; - margin-bottom: 4px; - font-size: 0.875rem; - color: var(--muted); + code { + font-family: inherit; + white-space: pre; } - label { - display: inline-flex; - align-items: center; - gap: 4px; + &.add { + background: var(--add-bg); + color: var(--add-text); + } + + &.del { + background: var(--del-bg); + color: var(--del-text); } } +.review-suggestion-sign { + flex: 0 0 auto; + width: 1ch; +} + .review-inline-form { padding: 10px 12px; border: 1px solid var(--border-strong); @@ -3442,20 +2732,6 @@ span.reaction { color: var(--muted); } -.review-box { - display: grid; - gap: 8px; - padding: 12px 16px; - border: 1px solid var(--border); - border-radius: var(--radius-lg); - background: var(--surface); -} - -.review-summary { - margin: 0; - font-size: 0.9rem; -} - .review-dismiss { display: flex; flex-wrap: wrap; @@ -3491,13 +2767,6 @@ span.reaction { white-space: nowrap; } -// Mirrors: the "Mirror of" line under the repo header, the new-repo mirror fields, and the -// Mirrors settings page (the list, the add and edit forms, and the error details). -.mirror-line { - margin: 4px 0 0; - overflow-wrap: anywhere; -} - .mirrors { td code { overflow-wrap: anywhere; @@ -3869,15 +3138,6 @@ span.reaction { font-weight: 500; } -.watch-option-desc { - grid-column: 2; - grid-row: 2; - font-size: 12px; - line-height: 1.4; - color: var(--muted); - white-space: normal; -} - @media (max-width: 40rem) { .notif-row { flex-direction: column; @@ -4047,51 +3307,6 @@ button.ci-mini { color: var(--warning); } -// The run's artifacts: a heading with "download all", then one row per file. -.ci-art-head { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 8px 12px; - margin: 20px 0 8px; -} - -.ci-art-title { - margin: 0; - font-size: 0.75rem; - font-weight: 600; - letter-spacing: 0.06em; - text-transform: uppercase; - color: var(--muted); -} - -.ci-art-list { - margin: 0; - padding: 0; - list-style: none; - border-top: 1px solid var(--border); - - li { - display: grid; - grid-template-columns: minmax(0, 1fr) auto auto; - gap: 12px; - align-items: center; - padding: 8px 6px; - border-bottom: 1px solid var(--border); - font-size: 0.875rem; - } -} - -.ci-art-name { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-family: var(--mono); - font-size: 0.8125rem; -} - // A job row: the link takes the width, the re-run button sits at its right. .ci-job-item { display: flex; @@ -4368,58 +3583,6 @@ $ansi-colours: ( } } -// Phone: each row of a queue-table (the merge queue and the admin tables) is a card, every cell a -// label and value row (the runners' layout). Cells without data-label sit as they are. -@media (max-width: 720px) { - .queue-table { - display: block; - - thead { - display: none; - } - - tbody, - tr { - display: block; - } - - tr { - padding: 12px 0; - border-bottom: 1px solid var(--border); - } - - th, - td { - display: block; - width: auto; - padding: 0; - border: 0; - } - - td[data-label] { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - min-height: 36px; - min-width: 0; - overflow-wrap: anywhere; - - &::before { - content: attr(data-label); - flex: none; - color: var(--muted); - font-size: 0.78125rem; - } - } - } -} - -.runner-load, -.runner-version { - min-width: 0; -} - // The status dot: green online, muted offline, warning colour when disabled. .runner-dot { flex: none; @@ -4437,45 +3600,10 @@ $ansi-colours: ( } } -.runner-off { - flex: none; - color: var(--warn); - font-size: 0.75rem; -} - .runner-labels { font-family: var(--mono); } -// The load cell: the running status on the left, the concurrency stepper on the right. -.runner-load { - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; - min-width: 0; - margin: 0; -} - -.runner-running { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 6px; - min-width: 0; -} - -.runner-count { - font-size: 0.875rem; - white-space: nowrap; -} - -.runner-n { - color: var(--text); - font-weight: 600; - font-variant-numeric: tabular-nums; -} - // One pip per concurrency slot: accent when a job runs in it, a surface pip with an inset edge when free. .runner-pips { display: inline-flex; @@ -4508,158 +3636,62 @@ progress.runner-meter { margin: 0; border: 0; border-radius: 2px; - overflow: hidden; - background: var(--surface-2); - color: var(--text-2); - - &::-webkit-progress-bar { - background: var(--surface-2); - } - - &::-webkit-progress-value { - background: var(--text-2); - } - - &::-moz-progress-bar { - background: var(--text-2); - } -} - -// The concurrency: a small label, then one joined pill (− value +), then Save and the reset. -.runner-stepper { - display: flex; - flex: none; - align-items: center; - gap: 8px; -} - -.runner-pill { - box-sizing: border-box; - display: inline-flex; - align-items: stretch; - height: 28px; - border: 1px solid var(--border-strong); - border-radius: var(--radius-md); - overflow: hidden; - background: var(--surface); - - input[type="number"] { - box-sizing: border-box; - width: 34px; - height: 100%; - margin: 0; - padding: 0; - border: 0; - border-left: 1px solid var(--border); - border-right: 1px solid var(--border); - border-radius: 0; - background: transparent; - color: var(--text); - font-weight: 600; - font-variant-numeric: tabular-nums; - text-align: center; - -moz-appearance: textfield; - appearance: textfield; - - &:focus-visible { - outline-offset: -2px; - } - - &::-webkit-inner-spin-button, - &::-webkit-outer-spin-button { - -webkit-appearance: none; - margin: 0; - } - } - - .runner-step { - box-sizing: border-box; - display: inline-flex; - align-items: center; - justify-content: center; - flex: none; - width: 28px; - min-width: 28px; - height: 100%; - padding: 0; - border: 0; - border-radius: 0; - background: none; - color: var(--muted); - font-size: 1rem; - line-height: 1; - - &:hover { - background: var(--surface-2); - color: var(--text); - } - - &:focus-visible { - outline-offset: -2px; - border-radius: 0; - } - } -} - -.runner-save { - box-sizing: border-box; - height: 28px; - padding: 0 10px; - font-size: 0.8125rem; -} - -html.js form.runner-load[data-dirty-form] .runner-save { - display: none; -} - -html.js form.runner-load[data-dirty-form][data-dirty] .runner-save { - display: inline-block; -} - -.runner-version { - display: flex; - flex-wrap: nowrap; - align-items: center; - gap: 8px; - justify-self: start; - white-space: nowrap; -} - -.runner-hash { - padding: 0; - background: none; - font-family: var(--mono); - font-size: 0.8125rem; -} + overflow: hidden; + background: var(--surface-2); + color: var(--text-2); -// Version status: muted text with a tick when up to date, the warning colour when outdated. -.runner-status { - color: var(--muted); - font-size: 0.8125rem; - white-space: nowrap; + &::-webkit-progress-bar { + background: var(--surface-2); + } - &.warn { - color: var(--warn); + &::-webkit-progress-value { + background: var(--text-2); } -} -.runner-tick { - color: var(--ok); + &::-moz-progress-bar { + background: var(--text-2); + } } -// Phone: identity first, with the version and the menu on its right. The load cell takes the second line. -@media (max-width: 760px) { +.runner-pill { + box-sizing: border-box; + display: inline-flex; + align-items: stretch; + height: 28px; + border: 1px solid var(--border-strong); + border-radius: var(--radius-md); + overflow: hidden; + background: var(--surface); - .runner-version { - grid-column: 2; - grid-row: 1; - justify-self: end; - } + input[type="number"] { + box-sizing: border-box; + width: 34px; + height: 100%; + margin: 0; + padding: 0; + border: 0; + border-left: 1px solid var(--border); + border-right: 1px solid var(--border); + border-radius: 0; + background: transparent; + color: var(--text); + font-weight: 600; + font-variant-numeric: tabular-nums; + text-align: center; + -moz-appearance: textfield; + appearance: textfield; + + &:focus-visible { + outline-offset: -2px; + } - .runner-load { - grid-column: 1 / -1; - grid-row: 2; + &::-webkit-inner-spin-button, + &::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; + } } + } .ci-state.runner-disabled { @@ -4695,27 +3727,6 @@ html.js form.runner-load[data-dirty-form][data-dirty] .runner-save { margin: 0; } -.ci-side-head { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 8px 12px; - margin-bottom: 10px; -} - -.ci-side-title { - display: flex; - align-items: center; - gap: 8px; - margin: 0; - font-size: 0.75rem; - font-weight: 600; - letter-spacing: 0.06em; - text-transform: uppercase; - color: var(--muted); -} - .ci-count { padding: 1px 8px; border-radius: var(--radius-full); @@ -4782,7 +3793,6 @@ html.js form.runner-load[data-dirty-form][data-dirty] .runner-save { max-height: max(320px, calc(100dvh - var(--pane-top, 288px) - var(--pane-foot, 78px))); } - .ci-side-head, .ci-scale, .ci-next, .ci-side .pager { @@ -4827,27 +3837,6 @@ html.js form.runner-load[data-dirty-form][data-dirty] .runner-save { } } -.ci-row-title { - min-width: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-size: 0.875rem; - font-weight: 500; - color: var(--text); -} - -.ci-row[aria-current="true"] .ci-row-title { - font-weight: 600; -} - -.ci-row-line { - display: flex; - align-items: center; - gap: 10px; - min-width: 0; -} - .ci-bar { display: block; flex: 1 1 0; @@ -5254,16 +4243,6 @@ button.ci-stopping { } } -// The run's header: its number, its title, its state and meta line. -.ci-main-head { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 8px 12px; - margin-bottom: 8px; -} - .ci-eyebrow { margin: 0; font-size: 0.75rem; @@ -5273,16 +4252,6 @@ button.ci-stopping { color: var(--muted); } -.ci-run-top { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 8px 12px; - margin: 0 0 16px; - font-size: 0.8125rem; - color: var(--muted); -} - .ci-cap { margin: 14px 0 0; font-size: 0.8125rem; @@ -5408,42 +4377,6 @@ button.ci-job-last { } } -/* Theme and language preferences (T1). The palettes live at the top of this file: the dark - variables apply under :root:not([data-theme="light"]) and under :root[data-theme="dark"]. */ -.theme-picker { - display: inline-flex; - flex-direction: row; - align-items: center; - gap: 8px; - margin: 0 0 0 auto; -} - -.theme-picker label { - display: inline-flex; - flex-direction: row; - align-items: center; - gap: 8px; - margin: 0; - - select { - width: auto; - height: var(--control-h); - margin: 0; - } -} - -.theme-picker .link-button { - align-self: center; - margin: 0; - line-height: var(--control-h); - height: var(--control-h); - padding-block: 0; -} - -.theme-picker label span { - color: var(--muted); -} - // Sage redesign partials. Loaded last so they override the older rules above. @import "shell"; @import "heatmap"; @@ -5514,10 +4447,6 @@ button.ci-job-last { opacity: 0; } -@media (max-width: 48rem) { - -} - .row-line { position: relative; display: flex; @@ -5530,17 +4459,6 @@ button.ci-job-last { } -.row-icon { - flex: none; - width: 20px; - height: 20px; - fill: none; - stroke: var(--muted); - stroke-width: 1.8; - stroke-linecap: round; - stroke-linejoin: round; -} - .row-title { display: flex; flex-direction: row; @@ -5611,24 +4529,6 @@ button.ci-job-last { } - // A picture or icon before the label keeps the controls on the same edge as every other row. - .row-line.row-field:not(.event-choices, .colour-line):has(> .row-icon, > .avatar) { - grid-template-columns: var(--field-mark) calc(var(--field-label) - var(--field-mark) - 12px) minmax(0, 1fr); - --field-mark: 20px; - column-gap: 12px; - - > .row-icon, - > .avatar { - grid-column: 1; - grid-row: 1 / span 5; - } - - .row-title { - grid-column: 2; - } - - } - .row-line.row-field:not(.event-choices, .colour-line):has(> .avatar) { --field-mark: 40px; } @@ -5659,10 +4559,6 @@ button.ci-job-last { } - .row-line.row-field:not(.event-choices, .colour-line):has(> .row-icon, > .avatar) { - grid-template-columns: var(--field-mark) calc(var(--field-label) - var(--field-mark) - 12px) minmax(0, 440px) minmax(0, 1fr); - - } } .row-title .srv-label { @@ -5677,12 +4573,6 @@ button.ci-job-last { gap: 10px 16px; } -// A colour picker holds a whole row of swatches, so it takes the row. -.colour-line > .colour-picker { - flex: 1 1 100%; - min-width: 0; -} - // Background and accent side by side, so the colours do not push the rest of the page off the screen. @media (min-width: 1400px) { .colour-panel { @@ -5691,25 +4581,6 @@ button.ci-job-last { gap: 0 32px; } - .colour-panel > .colour-line { - padding-inline: 0; - } -} - -@media (max-width: 600px) { - -} - -// Passkeys: the add form sits under the list, aligned with the row text. Both the add form and the -// login button stay hidden until nav.js sees that the browser supports passkeys. -.passkey-add { - max-width: 776px; - margin: 0; - padding: 4px 20px 18px 56px; - - &[hidden] { - display: none; - } } .passkey-error { @@ -5758,22 +4629,6 @@ button.ci-job-last { padding: 14px 16px; } - // The icon sits on the title's first line (20px box, 1.4 line of 15px) instead of mid-row. - .row-line > .row-icon { - margin-top: 0.5px; - } - - .passkey-add { - padding: 4px 16px 16px 16px; - } - -} - -// Server settings page (/admin/server): a grid of field cells that fits a tab in the viewport. -.srv-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); - gap: 16px 24px; } .srv-field { @@ -5794,17 +4649,6 @@ button.ci-job-last { } } -.srv-head { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 4px; - - .badge { - margin-left: 0; - } -} - .srv-label { font-weight: 500; font-size: 0.875rem; @@ -5813,23 +4657,7 @@ button.ci-job-last { } .badge { - &.srv-live { - background: var(--public-bg); - color: var(--public-text); - } - - &.srv-restart, - &.srv-ro, - &.srv-source { - background: var(--private-bg); - color: var(--private-text); - border-color: var(--border-strong); - } - &.srv-pending { - color: var(--warn); - border-color: var(--warn); - } } .srv-field .srv-fixed { @@ -5857,86 +4685,6 @@ button.ci-job-last { gap: 8px; } -.srv-page { - display: flex; - flex-direction: column; - gap: 16px; -} - -// The detail head says what the list's dot says: online, offline or disabled, in the dot's words. -.runner-state { - display: inline-flex; - align-items: center; - gap: 6px; - color: var(--muted); - font-size: 0.9rem; -} - -.srv-grid.srv-stats { - grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); - - strong { - font-size: 1.0625rem; - font-weight: 600; - overflow-wrap: anywhere; - } -} - -// Draft pull requests: a neutral grey badge, distinct from open (green) and merged (purple). -.issue-badge.issue-badge-draft { - background: var(--code-bg); - color: var(--muted); - border: 1px solid var(--border); -} - -// Required checks and flow controls inside the merge box. -.required-checks { - display: flex; - flex-direction: column; - gap: 0.35rem; - - p { - margin: 0; - } -} - -.required-check-list { - display: flex; - flex-direction: column; - gap: 0.25rem; - margin: 0; - padding: 0; - list-style: none; - - li { - display: flex; - flex-wrap: wrap; - align-items: center; - justify-content: space-between; - gap: 0.5rem; - padding: 0.3rem 0.6rem; - border: 1px solid var(--border); - border-radius: var(--radius-md, var(--radius-lg)); - background: var(--surface); - font-size: 0.9rem; - overflow-wrap: anywhere; - } - - .check-ok span { - color: var(--add-text); - font-weight: 600; - } - - .check-pending span { - color: var(--muted); - } - - .check-bad span { - color: var(--danger); - font-weight: 600; - } -} - .merge-flow { display: flex; flex-wrap: wrap; @@ -6030,10 +4778,6 @@ button.ci-job-last { } } -// On a phone the digest and date columns give way, so the tag and its delete control stay in view. -@media (max-width: 600px) { - -} @import "repo_side"; @import "ci_estimate"; @import "timeline";