Commit fa8a9b4260
Verified · cmc
Layout: unified · split
internal/httpd/palette_test.go +3 −3
| @@ -53,13 +53,13 @@ func TestSyntaxPaletteContrast(t *testing.T) { | |||
| 53 | }{ | 53 | }{ |
| 54 | {lightStyle, map[string]chroma.Colour{ | 54 | {lightStyle, map[string]chroma.Colour{ |
| 55 | "page": chroma.NewColour(0xff, 0xff, 0xff), | 55 | "page": chroma.NewColour(0xff, 0xff, 0xff), |
| 56 | "code": chroma.NewColour(0xf5, 0xf5, 0xf5), | 56 | "code": chroma.NewColour(0xff, 0xff, 0xff), |
| 57 | "add": chroma.NewColour(0xe4, 0xf6, 0xea), | 57 | "add": chroma.NewColour(0xe4, 0xf6, 0xea), |
| 58 | "del": chroma.NewColour(0xfd, 0xea, 0xea), | 58 | "del": chroma.NewColour(0xfd, 0xea, 0xea), |
| 59 | }, map[chroma.TokenType]bool{chroma.NameAttribute: true}}, | 59 | }, map[chroma.TokenType]bool{chroma.NameAttribute: true}}, |
| 60 | {darkStyle, map[string]chroma.Colour{ | 60 | {darkStyle, map[string]chroma.Colour{ |
| 61 | "page": chroma.NewColour(0x0a, 0x0a, 0x0a), | 61 | "page": chroma.NewColour(0x10, 0x11, 0x14), |
| 62 | "code": chroma.NewColour(0x05, 0x05, 0x05), | 62 | "code": chroma.NewColour(0x0b, 0x0c, 0x0e), |
| 63 | "add": chroma.NewColour(0x0d, 0x2a, 0x18), | 63 | "add": chroma.NewColour(0x0d, 0x2a, 0x18), |
| 64 | "del": chroma.NewColour(0x2c, 0x11, 0x13), | 64 | "del": chroma.NewColour(0x2c, 0x11, 0x13), |
| 65 | }, map[chroma.TokenType]bool{ | 65 | }, map[chroma.TokenType]bool{ |
internal/web/static/style.css +1085 −1179
| @@ -1,10 +1,11 @@ | |||
| 1 | /* gitbay stylesheet — Harbor: black and white ground, two accents with | 1 | /* gitbay stylesheet. Tokens first, on :root and again in the dark media |
| 2 | separate jobs. Blue is what you can do (links, buttons, focus); orange | 2 | query; components use tokens only. Two accents with separate jobs: |
| 3 | is where you are and what wants you (active nav, counts, pending state, | 3 | blue is what you can do (links, primary buttons, focus, pressed |
| 4 | unverified signatures). Orange is never a button, so the two never | 4 | toggles), orange is where you are and what wants you (current tab, |
| 5 | compete. One file, light and dark via prefers-color-scheme. Tokens | 5 | rail counts, pending state, unverified signatures). Orange is never a |
| 6 | first; components use tokens only. No external requests: Atkinson | 6 | button ground. internal/web/tokens_test.go measures every token; |
| 7 | Hyperlegible is served from this origin. */ | 7 | internal/web/classes_test.go checks every template class has a rule. |
| 8 | No external requests: fonts are served from this origin. */ | ||
| 8 | 9 | ||
| 9 | @font-face { | 10 | @font-face { |
| 10 | font-family: "Atkinson Hyperlegible Next"; | 11 | font-family: "Atkinson Hyperlegible Next"; |
| @@ -33,35 +34,40 @@ | |||
| 33 | scrollbars per scheme, and opt out of browser auto-darkening */ | 34 | scrollbars per scheme, and opt out of browser auto-darkening */ |
| 34 | color-scheme: light dark; | 35 | color-scheme: light dark; |
| 35 | 36 | ||
| 36 | /* ground and ink */ | 37 | /* grounds: canvas, surface and inset are three steps, not one */ |
| 37 | --bg: #ffffff; | 38 | --canvas: #ffffff; |
| 38 | --fg: #0d0d0d; | 39 | --surface: #ebedf1; |
| 39 | --muted: #595959; /* 7.00:1 on white */ | 40 | --inset: #ffffff; |
| 40 | --faint: #eaeaea; /* hairlines, row separators */ | 41 | --hover: #e1e4ea; |
| 41 | --line: #d4d4d4; /* control borders, table edges */ | 42 | --line: #8d939c; /* 3.09:1 on canvas — a border you can see */ |
| 42 | --surface: #ffffff; | 43 | --faint: #d8dce2; |
| 43 | --hover: #f5f5f5; | 44 | |
| 44 | --code-bg: #f5f5f5; | 45 | /* ink */ |
| 45 | --fill-subtle: #ececec; /* hunk headers, summary hover */ | 46 | --fg: #1c1f24; |
| 46 | --diff-add: #e4f6ea; /* row grounds: tinted enough to scan, light | 47 | --muted: #5a6270; |
| 47 | enough that syntax colors stay legible */ | 48 | --neutral: var(--muted); |
| 48 | --diff-del: #fdeaea; | 49 | |
| 49 | 50 | /* blue: what you can do. --link is text, --fill is a ground; one blue | |
| 50 | /* blue: what you can do */ | 51 | cannot clear 4.5:1 as text and 3:1 as a ground in both schemes. */ |
| 51 | --accent: #0000f0; /* links, focus — 9.30:1 on white */ | 52 | --link: #0033d6; |
| 52 | --accent-fg: #ffffff; | 53 | --fill: #0000f0; |
| 53 | --fill: #0000f0; /* button grounds; white on it is 9.30:1 */ | 54 | --fill-fg: #ffffff; |
| 54 | --fill-edge: transparent; /* light: the fill is its own boundary */ | 55 | --focus: var(--link); |
| 55 | 56 | ||
| 56 | /* orange: where you are, what wants you */ | 57 | /* orange: where you are, what wants you. Two cuts because the floor |
| 57 | --mark: #e4572e; /* bars and underlines — non-text, 3.0 bar */ | 58 | differs by size: --mark for bars, --warn at text size. */ |
| 58 | --warn: #c2410c; /* the same orange at text size — 5.18:1 */ | 59 | --mark: #e4572e; |
| 59 | 60 | --warn: #b8400f; | |
| 60 | /* semantic */ | 61 | |
| 61 | --ok: #0a7d3c; | 62 | /* state */ |
| 63 | --ok: #0a7536; | ||
| 62 | --bad: #c62828; | 64 | --bad: #c62828; |
| 63 | --done: #6b21a8; /* merged */ | 65 | --done: #6b21a8; |
| 64 | --neutral: #595959; | 66 | |
| 67 | /* diff row tints: enough to scan, light enough that the syntax | ||
| 68 | palette stays legible on them (TestSyntaxPaletteContrast) */ | ||
| 69 | --diff-add: #e4f6ea; | ||
| 70 | --diff-del: #fdeaea; | ||
| 65 | 71 | ||
| 66 | /* the rail is black in both schemes: the one brand constant */ | 72 | /* the rail is black in both schemes: the one brand constant */ |
| 67 | --shell-bg: #000000; | 73 | --shell-bg: #000000; |
| @@ -69,98 +75,135 @@ | |||
| 69 | --shell-muted: #8f8f8f; | 75 | --shell-muted: #8f8f8f; |
| 70 | --shell-line: #1c1c1c; | 76 | --shell-line: #1c1c1c; |
| 71 | --shell-hover: #141414; | 77 | --shell-hover: #141414; |
| 72 | --shell-mark: #ff6b3d; /* 7.42:1 on black, both schemes */ | 78 | --shell-mark: #ff6b3d; |
| 79 | |||
| 80 | /* the languages' own colours; the same in both schemes */ | ||
| 81 | --lang-go: #00add8; | ||
| 82 | --lang-rust: #dea584; | ||
| 83 | --lang-c: #555555; | ||
| 84 | --lang-python: #3572a5; | ||
| 85 | --lang-javascript: #f1e05a; | ||
| 86 | --lang-typescript: #3178c6; | ||
| 87 | --lang-shell: #89e051; | ||
| 88 | --lang-ruby: #701516; | ||
| 89 | --lang-java: #b07219; | ||
| 90 | --lang-swift: #f05138; | ||
| 91 | --lang-html: #e34c26; | ||
| 92 | --lang-css: #563d7c; | ||
| 93 | --lang-org: #77aa99; | ||
| 94 | --lang-markdown: #083fa1; | ||
| 95 | --lang-emacs-lisp: #c065db; | ||
| 96 | --lang-nix: #7e7eff; | ||
| 97 | --lang-sql: #e38c00; | ||
| 73 | 98 | ||
| 74 | /* type */ | ||
| 75 | --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, | 99 | --sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, |
| 76 | "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | 100 | "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 77 | --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", | 101 | --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", |
| 78 | SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; | 102 | SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; |
| 79 | --fs-0: 0.78rem; | 103 | |
| 80 | --fs-1: 0.85rem; | 104 | /* 12, 13, 14, 16, 20, 24, 32 */ |
| 81 | --fs-2: 0.92rem; | 105 | --fs-0: 0.75rem; |
| 106 | --fs-1: 0.8125rem; | ||
| 107 | --fs-2: 0.875rem; | ||
| 82 | --fs-3: 1rem; | 108 | --fs-3: 1rem; |
| 83 | --fs-4: 1.2rem; | 109 | --fs-4: 1.25rem; |
| 84 | --fs-5: 1.6rem; | 110 | --fs-5: 1.5rem; |
| 85 | --fs-6: 1.8rem; /* landing headline */ | 111 | --fs-6: 2rem; |
| 86 | --fs-7: 4rem; /* the 404 code */ | 112 | |
| 87 | 113 | /* 4, 8, 12, 16, 24, 32, 48 */ | |
| 88 | /* spacing */ | 114 | --sp-1: 4px; |
| 89 | --sp-1: 0.25rem; | 115 | --sp-2: 8px; |
| 90 | --sp-2: 0.5rem; | 116 | --sp-3: 12px; |
| 91 | --sp-3: 0.75rem; | 117 | --sp-4: 16px; |
| 92 | --sp-4: 1rem; | 118 | --sp-5: 24px; |
| 93 | --sp-5: 1.5rem; | 119 | --sp-6: 32px; |
| 94 | --sp-6: 2.5rem; | 120 | --sp-7: 48px; |
| 95 | 121 | ||
| 96 | --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23595959' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | 122 | --r-ctl: 4px; /* controls and chips */ |
| 97 | 123 | --r-card: 6px; /* cards, lists, code blocks */ | |
| 98 | /* radii: 2px everywhere — chart plates, not pills */ | ||
| 99 | --r-sm: 2px; | ||
| 100 | --r-md: 2px; | ||
| 101 | --r-lg: 2px; | ||
| 102 | --r-pill: 2px; | ||
| 103 | --shadow: 0 4px 16px rgba(0, 0, 0, 0.12); | 124 | --shadow: 0 4px 16px rgba(0, 0, 0, 0.12); |
| 125 | |||
| 126 | /* the native select arrow cannot be restyled, so draw our own; | ||
| 127 | --chev carries the stroke colour per scheme */ | ||
| 128 | --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235a6270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | ||
| 104 | } | 129 | } |
| 105 | @media (prefers-color-scheme: dark) { | 130 | @media (prefers-color-scheme: dark) { |
| 106 | :root { | 131 | :root { |
| 107 | --bg: #0a0a0a; | 132 | --canvas: #101114; |
| 108 | --fg: #f2f2f2; | 133 | --surface: #212429; |
| 109 | --muted: #a1a1a1; /* 7.66:1 on #0a0a0a */ | 134 | --inset: #0b0c0e; |
| 110 | --faint: #1c1c1c; | 135 | --hover: #2b2f36; |
| 111 | --line: #2e2e2e; | 136 | --line: #61666f; |
| 112 | --surface: #0f0f0f; | 137 | --faint: #2f333a; |
| 113 | --hover: #161616; | 138 | |
| 114 | --code-bg: #050505; | 139 | --fg: #e9eaec; |
| 115 | --fill-subtle: #161616; | 140 | --muted: #a3a9b3; |
| 116 | --diff-add: #0d2a18; | 141 | --neutral: var(--muted); |
| 117 | --diff-del: #2c1113; | 142 | |
| 118 | --accent: #6272ff; /* pure #0000f0 is 2.13:1 here. Picked against | 143 | --link: #8b9bff; |
| 119 | the lightest ground it lands on, not the page: | 144 | --fill: #4d61f0; |
| 120 | a link wrapping inline code sits on #161616, | 145 | --fill-fg: #ffffff; |
| 121 | where the old #5b6bff was 4.30:1. Now 4.63:1 | 146 | --focus: var(--link); |
| 122 | there and 5.06:1 on the page. */ | 147 | |
| 123 | --accent-fg: #ffffff; | ||
| 124 | --fill: #0000f0; /* fills stay pure; white on it clears 9:1 */ | ||
| 125 | --fill-edge: #7d8cff; /* a button's boundary: #0000f0 on #0a0a0a is 1.3:1 (#120) */ | ||
| 126 | --shadow: 0 4px 16px rgba(0, 0, 0, 0.5); | ||
| 127 | --mark: #ff6b3d; | 148 | --mark: #ff6b3d; |
| 128 | --warn: #ff6b3d; | 149 | --warn: #ff8a63; |
| 150 | |||
| 129 | --ok: #3fce7a; | 151 | --ok: #3fce7a; |
| 130 | --bad: #ff6b6b; | 152 | --bad: #ff6b6b; |
| 131 | --done: #c084fc; | 153 | --done: #c084fc; |
| 132 | --neutral: #a1a1a1; | 154 | |
| 133 | --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a1a1a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | 155 | --diff-add: #0d2a18; |
| 156 | --diff-del: #2c1113; | ||
| 157 | |||
| 158 | --shell-bg: #000000; | ||
| 159 | --shell-fg: #f2f2f2; | ||
| 160 | --shell-muted: #8f8f8f; | ||
| 161 | --shell-line: #1c1c1c; | ||
| 162 | --shell-hover: #141414; | ||
| 163 | --shell-mark: #ff6b3d; | ||
| 164 | |||
| 165 | --shadow: 0 4px 16px rgba(0, 0, 0, 0.5); | ||
| 166 | --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a3a9b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | ||
| 134 | } | 167 | } |
| 135 | } | 168 | } |
| 136 | 169 | ||
| 170 | /* ---- base ---- */ | ||
| 137 | * { box-sizing: border-box; } | 171 | * { box-sizing: border-box; } |
| 138 | html { font-size: 15px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } | 172 | html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } |
| 139 | body { | 173 | body { |
| 140 | margin: 0; | 174 | margin: 0; |
| 141 | background: var(--bg); | 175 | background: var(--canvas); |
| 142 | color: var(--fg); | 176 | color: var(--fg); |
| 143 | font: var(--fs-3)/1.6 var(--sans); | 177 | font: var(--fs-3)/1.5 var(--sans); |
| 144 | min-height: 100vh; | 178 | min-height: 100vh; |
| 145 | } | 179 | } |
| 146 | 180 | h1, h2, h3 { line-height: 1.25; font-weight: 600; } | |
| 147 | a { color: var(--accent); text-decoration: none; } | 181 | h1 { font-size: var(--fs-5); margin: 0 0 var(--sp-3); text-wrap: balance; } |
| 182 | h2 { font-size: var(--fs-4); margin: var(--sp-6) 0 var(--sp-3); } | ||
| 183 | h3 { font-size: var(--fs-3); margin: var(--sp-5) 0 var(--sp-2); } | ||
| 184 | p { margin: 0 0 var(--sp-3); } | ||
| 185 | a { color: var(--link); text-decoration: none; } | ||
| 148 | a:hover { text-decoration: underline; } | 186 | a:hover { text-decoration: underline; } |
| 187 | a.xref { color: var(--link); text-decoration: none; } | ||
| 188 | |||
| 189 | code, pre, .mono, .code, td.mode, td.size { | ||
| 190 | font-family: var(--mono); | ||
| 191 | font-size: var(--fs-1); | ||
| 192 | } | ||
| 193 | .mono { overflow-wrap: anywhere; } | ||
| 149 | 194 | ||
| 150 | /* one authored focus ring, so keyboard position is never the browser's | 195 | /* ---- focus: one authored ring, so keyboard position is never the |
| 151 | guess. Blue, because focus is an interactive state. */ | 196 | browser's guess ---- */ |
| 152 | :focus-visible { | 197 | :focus-visible { |
| 153 | outline: 2px solid var(--accent); | 198 | outline: 2px solid var(--focus); |
| 154 | outline-offset: 2px; | 199 | outline-offset: 2px; |
| 155 | border-radius: 1px; | 200 | border-radius: 1px; |
| 156 | } | 201 | } |
| 157 | /* the shell is black in both schemes, and --accent is a dark blue in the | 202 | /* the rail is black in both schemes and --focus is a dark blue in the |
| 158 | light one — a ring nobody could see. The shell's own mark clears 7:1 on | 203 | light one — a ring nobody could see there */ |
| 159 | black either way. */ | ||
| 160 | .rail :focus-visible { outline-color: var(--shell-mark); } | 204 | .rail :focus-visible { outline-color: var(--shell-mark); } |
| 161 | 205 | ||
| 162 | /* visually hidden, still read aloud: for headings a sighted reader gets | 206 | /* visually hidden, still read aloud */ |
| 163 | from the layout but a screen reader would otherwise miss */ | ||
| 164 | .vh { | 207 | .vh { |
| 165 | position: absolute; | 208 | position: absolute; |
| 166 | width: 1px; height: 1px; | 209 | width: 1px; height: 1px; |
| @@ -169,36 +212,23 @@ a:hover { text-decoration: underline; } | |||
| 169 | overflow: hidden; | 212 | overflow: hidden; |
| 170 | white-space: nowrap; | 213 | white-space: nowrap; |
| 171 | } | 214 | } |
| 172 | /* the rail runs ahead of the content in source order, so give keyboard | 215 | |
| 173 | and screen-reader users a way past it */ | 216 | /* ---- skip link: the rail runs ahead of the content in source order ---- */ |
| 174 | a.skip { | 217 | a.skip { |
| 175 | position: absolute; | 218 | position: absolute; |
| 176 | left: var(--sp-3); top: -3rem; | 219 | left: var(--sp-3); top: -3rem; |
| 177 | z-index: 50; | 220 | z-index: 50; |
| 178 | background: var(--fill); | 221 | background: var(--fill); |
| 179 | color: #ffffff; | 222 | color: var(--fill-fg); |
| 180 | padding: var(--sp-2) var(--sp-4); | 223 | padding: var(--sp-2) var(--sp-4); |
| 181 | font-weight: 600; | 224 | font-weight: 600; |
| 182 | } | 225 | } |
| 183 | a.skip:focus { top: var(--sp-3); text-decoration: none; } | 226 | a.skip:focus { top: var(--sp-3); text-decoration: none; } |
| 184 | 227 | ||
| 185 | h1 { font-size: var(--fs-5); font-weight: 700; line-height: 1.18; | 228 | /* ---- rail ---- */ |
| 186 | margin: 0 0 var(--sp-3); letter-spacing: -0.025em; text-wrap: balance; } | ||
| 187 | h2 { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; | ||
| 188 | margin: var(--sp-5) 0 var(--sp-3); letter-spacing: -0.015em; } | ||
| 189 | h3 { font-size: var(--fs-3); font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); } | ||
| 190 | |||
| 191 | code, pre, .code, td.mode, td.size { | ||
| 192 | font-family: var(--mono); | ||
| 193 | font-size: var(--fs-1); | ||
| 194 | } | ||
| 195 | |||
| 196 | /* ---- shell: black rail, content pane ---- */ | ||
| 197 | .shell { display: flex; align-items: stretch; min-height: 100vh; } | ||
| 198 | |||
| 199 | .rail { | 229 | .rail { |
| 200 | flex: none; | 230 | flex: none; |
| 201 | width: 13rem; | 231 | width: 14rem; |
| 202 | background: var(--shell-bg); | 232 | background: var(--shell-bg); |
| 203 | color: var(--shell-fg); | 233 | color: var(--shell-fg); |
| 204 | border-right: 1px solid var(--shell-line); | 234 | border-right: 1px solid var(--shell-line); |
| @@ -212,170 +242,173 @@ a.brand { | |||
| 212 | display: flex; | 242 | display: flex; |
| 213 | align-items: center; | 243 | align-items: center; |
| 214 | gap: var(--sp-2); | 244 | gap: var(--sp-2); |
| 215 | padding: var(--sp-3) var(--sp-4); | 245 | padding: var(--sp-4) var(--sp-4) var(--sp-3); |
| 216 | color: var(--shell-fg); | 246 | color: var(--shell-fg); |
| 217 | font-weight: 700; | 247 | font-weight: 600; |
| 218 | font-size: var(--fs-3); | 248 | font-size: var(--fs-3); |
| 219 | letter-spacing: -0.02em; | ||
| 220 | border-bottom: 1px solid var(--shell-line); | ||
| 221 | } | 249 | } |
| 222 | a.brand:hover { text-decoration: none; color: #ffffff; } | 250 | a.brand:hover { text-decoration: none; } |
| 223 | a.brand svg.mark { display: block; flex: none; } | 251 | a.brand svg.mark { display: block; flex: none; } |
| 224 | a.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | 252 | a.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 225 | 253 | ||
| 226 | .railbody { flex: 1; overflow-y: auto; padding: var(--sp-3) 0; } | 254 | .railbody { flex: 1; overflow-y: auto; padding: 0 var(--sp-3); } |
| 227 | /* search is reachable from every page, so it sits above the rail's links | 255 | /* search is reachable from every page, so it sits above the rail's links |
| 228 | rather than on one page of its own */ | 256 | rather than on one page of its own */ |
| 229 | form.railsearch { padding: 0 var(--sp-4) var(--sp-3); } | 257 | form.railsearch { margin-bottom: var(--sp-3); } |
| 230 | form.railsearch input[type="search"] { | 258 | form.railsearch input[type="search"] { |
| 231 | width: 100%; | 259 | width: 100%; |
| 232 | padding: var(--sp-1) var(--sp-2); | ||
| 233 | font-size: var(--fs-1); | ||
| 234 | color: var(--shell-fg); | ||
| 235 | background: var(--shell-hover); | 260 | background: var(--shell-hover); |
| 236 | border: 1px solid var(--shell-line); | 261 | border: 1px solid var(--shell-line); |
| 237 | border-radius: var(--r-sm); | 262 | color: var(--shell-fg); |
| 263 | border-radius: var(--r-ctl); | ||
| 264 | padding: 6px 10px; | ||
| 265 | height: 32px; | ||
| 266 | font: inherit; | ||
| 267 | font-size: var(--fs-2); | ||
| 238 | } | 268 | } |
| 239 | form.railsearch input[type="search"]::placeholder { color: var(--shell-muted); } | 269 | form.railsearch input[type="search"]::placeholder { color: var(--shell-muted); } |
| 240 | ul.raillist { list-style: none; margin: 0; padding: 0; } | 270 | ul.raillist { list-style: none; margin: 0 0 var(--sp-4); padding: 0; } |
| 241 | ul.raillist a { | 271 | ul.raillist a { |
| 242 | display: block; | 272 | display: flex; |
| 243 | padding: var(--sp-1) var(--sp-4); | 273 | align-items: center; |
| 274 | gap: var(--sp-2); | ||
| 275 | padding: 5px var(--sp-2); | ||
| 244 | color: var(--shell-fg); | 276 | color: var(--shell-fg); |
| 245 | font-size: var(--fs-2); | 277 | font-size: var(--fs-2); |
| 246 | border-left: 3px solid transparent; | 278 | border-radius: var(--r-ctl); |
| 247 | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; | 279 | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; |
| 248 | } | 280 | } |
| 249 | ul.raillist a:hover { background: var(--shell-hover); text-decoration: none; } | 281 | ul.raillist a:hover { background: var(--shell-hover); text-decoration: none; } |
| 250 | /* orange marks position — the rail's only accent */ | 282 | /* orange marks position — the rail's only accent */ |
| 251 | ul.raillist a[aria-current] { | 283 | ul.raillist a[aria-current] { |
| 252 | border-left-color: var(--shell-mark); | ||
| 253 | background: var(--shell-hover); | 284 | background: var(--shell-hover); |
| 285 | box-shadow: inset 3px 0 0 var(--shell-mark); | ||
| 254 | font-weight: 600; | 286 | font-weight: 600; |
| 255 | } | 287 | } |
| 256 | ul.raillist .owner { color: var(--shell-muted); } | 288 | ul.raillist .owner { color: var(--shell-muted); } |
| 257 | ul.raillist.wide a { white-space: normal; padding-top: var(--sp-1); padding-bottom: var(--sp-1); } | 289 | ul.raillist.wide a { white-space: normal; display: block; } |
| 258 | ul.raillist.wide b { display: block; font-weight: 500; font-size: var(--fs-1); } | 290 | ul.raillist.wide b { display: block; font-weight: 500; font-size: var(--fs-1); } |
| 259 | ul.raillist.wide .owner { font-size: var(--fs-0); } | 291 | ul.raillist.wide .owner { display: block; font-size: var(--fs-0); } |
| 260 | 292 | ||
| 293 | .railgroup { margin-bottom: var(--sp-4); } | ||
| 261 | .raillabel { | 294 | .raillabel { |
| 262 | display: flex; | 295 | display: flex; |
| 263 | align-items: center; | 296 | align-items: center; |
| 264 | gap: var(--sp-2); | 297 | gap: var(--sp-2); |
| 265 | margin: var(--sp-4) 0 var(--sp-1); | 298 | margin: 0 var(--sp-2) var(--sp-1); |
| 266 | padding: 0 var(--sp-4); | ||
| 267 | font-family: var(--mono); | ||
| 268 | font-size: var(--fs-0); | 299 | font-size: var(--fs-0); |
| 269 | font-weight: 500; | 300 | font-weight: 500; |
| 270 | letter-spacing: 0.1em; | 301 | letter-spacing: 0.08em; |
| 271 | text-transform: uppercase; | 302 | text-transform: uppercase; |
| 272 | color: var(--shell-muted); | 303 | color: var(--shell-muted); |
| 273 | } | 304 | } |
| 274 | .raillabel .count, ul.raillist .count { | 305 | .count { |
| 275 | font-family: var(--sans); | ||
| 276 | font-size: var(--fs-0); | 306 | font-size: var(--fs-0); |
| 277 | font-weight: 700; | 307 | font-weight: 700; |
| 278 | letter-spacing: 0; | 308 | letter-spacing: 0; |
| 279 | background: var(--shell-mark); | 309 | background: var(--shell-mark); |
| 280 | color: #000000; | 310 | color: var(--shell-bg); |
| 281 | padding: 0 0.35rem; | 311 | padding: 0 5px; |
| 282 | border-radius: var(--r-sm); | 312 | border-radius: var(--r-ctl); |
| 313 | margin-left: auto; | ||
| 283 | } | 314 | } |
| 284 | /* pinned above the account cell: always reachable, never scrolled away */ | 315 | /* pinned above the account cell: always reachable, never scrolled away */ |
| 285 | .railpinned { | 316 | .railpinned { |
| 286 | flex: none; | 317 | flex: none; |
| 287 | padding: var(--sp-2) 0; | 318 | padding: var(--sp-2) var(--sp-3); |
| 319 | margin: 0; | ||
| 288 | border-top: 1px solid var(--shell-line); | 320 | border-top: 1px solid var(--shell-line); |
| 289 | } | 321 | } |
| 290 | .railfoot { | 322 | .railfoot { |
| 291 | flex: none; | 323 | flex: none; |
| 292 | border-top: 1px solid var(--shell-line); | 324 | border-top: 1px solid var(--shell-line); |
| 293 | /* same vertical rhythm as the page footer, so the two rules line up | 325 | padding: var(--sp-3) var(--sp-4); |
| 294 | when the page is scrolled to the bottom; horizontal padding stays on | ||
| 295 | the rail's own grid so the avatar aligns with the nav items above */ | ||
| 296 | padding: var(--sp-4) var(--sp-4) var(--sp-5); | ||
| 297 | display: flex; | 326 | display: flex; |
| 298 | align-items: center; | 327 | align-items: center; |
| 328 | justify-content: space-between; | ||
| 299 | gap: var(--sp-3); | 329 | gap: var(--sp-3); |
| 300 | font-size: var(--fs-2); | 330 | font-size: var(--fs-2); |
| 301 | line-height: 1.4; | ||
| 302 | } | 331 | } |
| 303 | .railfoot a { color: var(--shell-fg); } | 332 | .railfoot a { color: var(--shell-fg); } |
| 304 | a.railuser { display: inline-flex; align-items: center; gap: var(--sp-2); } | 333 | a.railuser { display: inline-flex; align-items: center; gap: var(--sp-2); } |
| 305 | /* a descendant cannot cancel an ancestor's underline, so the link carries | 334 | /* a descendant cannot cancel an ancestor's underline, so the link carries |
| 306 | none and the name draws its own — the avatar square stays undecorated */ | 335 | none and the name draws its own */ |
| 307 | a.railuser:hover { text-decoration: none; } | 336 | a.railuser:hover { text-decoration: none; } |
| 308 | a.railuser:hover .uname { text-decoration: underline; } | 337 | a.railuser:hover .uname { text-decoration: underline; } |
| 309 | .railfoot form { margin-left: auto; } | 338 | .railfoot form { margin-left: auto; } |
| 310 | .railfoot .linklike { | 339 | .railfoot button.linklike { color: var(--shell-muted); text-decoration: underline; } |
| 311 | background: none; border: 0; padding: 0; cursor: pointer; | 340 | .railfoot button.linklike:hover { color: var(--shell-fg); } |
| 312 | color: var(--shell-muted); font: inherit; text-decoration: underline; | ||
| 313 | } | ||
| 314 | .railfoot .linklike:hover { color: var(--shell-fg); } | ||
| 315 | .avatar { | 341 | .avatar { |
| 316 | width: 1.4rem; height: 1.4rem; flex: none; | 342 | display: inline-grid; |
| 317 | display: inline-grid; place-items: center; | 343 | place-items: center; |
| 344 | width: 22px; height: 22px; | ||
| 345 | flex: none; | ||
| 346 | border-radius: 50%; | ||
| 318 | background: var(--fill); | 347 | background: var(--fill); |
| 319 | color: #ffffff; | 348 | color: var(--fill-fg); |
| 320 | font-size: var(--fs-0); | 349 | font-size: var(--fs-0); |
| 321 | font-weight: 700; | 350 | font-weight: 600; |
| 322 | border-radius: var(--r-sm); | ||
| 323 | } | 351 | } |
| 324 | 352 | ||
| 353 | /* ---- shell ---- */ | ||
| 354 | .shell { display: flex; align-items: stretch; min-height: 100vh; } | ||
| 325 | .pane { flex: 1; min-width: 0; display: flex; flex-direction: column; } | 355 | .pane { flex: 1; min-width: 0; display: flex; flex-direction: column; } |
| 326 | .content { | 356 | main.content { |
| 327 | flex: 1; | 357 | flex: 1; |
| 328 | padding: var(--sp-5) var(--sp-5) var(--sp-6); | ||
| 329 | width: 100%; | 358 | width: 100%; |
| 359 | padding: var(--sp-5) var(--sp-6) var(--sp-7); | ||
| 360 | } | ||
| 361 | main.wide { max-width: none; } | ||
| 362 | main.reading { max-width: calc(72rem + 2 * var(--sp-6)); } | ||
| 363 | main.bounded { max-width: calc(48rem + 2 * var(--sp-6)); } | ||
| 364 | footer { | ||
| 365 | width: 100%; | ||
| 366 | padding: var(--sp-4) var(--sp-6); | ||
| 367 | border-top: 1px solid var(--faint); | ||
| 368 | color: var(--muted); | ||
| 369 | font-size: var(--fs-1); | ||
| 330 | } | 370 | } |
| 371 | footer p { margin: 0; } | ||
| 372 | footer a { color: var(--muted); text-decoration: underline; } | ||
| 373 | footer a:hover { color: var(--link); } | ||
| 331 | 374 | ||
| 332 | /* ---- repo header: identity and tabs on every page, the rest once ---- */ | 375 | /* ---- repository header ---- */ |
| 333 | .repohead { | 376 | .repohead { |
| 334 | padding: var(--sp-4) var(--sp-5) 0; | 377 | padding: var(--sp-4) var(--sp-6) 0; |
| 335 | border-bottom: 1px solid var(--line); | 378 | border-bottom: 1px solid var(--line); |
| 336 | } | 379 | } |
| 337 | .repohead .identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; } | 380 | .identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; } |
| 338 | .repohead .identity .grow { flex: 1; } | 381 | .grow { flex: 1; } |
| 339 | /* h1 on the repo home, p elsewhere so each page keeps its own h1 — but | 382 | /* h1 on the repo home, p elsewhere so each page keeps its own h1 — but |
| 340 | identical in size, because the tabs sit below this and navigation must | 383 | identical in size, because the tabs sit below and navigation must not |
| 341 | not move when you use it */ | 384 | move when you use it */ |
| 342 | .repotitle { | 385 | .repotitle { |
| 343 | margin: 0; | 386 | margin: 0; |
| 344 | font-size: var(--fs-4); | 387 | font-size: var(--fs-4); |
| 345 | font-weight: 700; | 388 | font-weight: 600; |
| 346 | letter-spacing: -0.02em; | 389 | line-height: 1.25; |
| 347 | line-height: 1.3; | ||
| 348 | } | 390 | } |
| 349 | .repotitle a { color: var(--fg); } | 391 | .repotitle a { color: var(--fg); } |
| 350 | .repotitle a.owner { color: var(--muted); font-weight: 400; } | 392 | .repotitle a.owner { color: var(--muted); font-weight: 400; } |
| 351 | .repotitle a:hover { color: var(--accent); text-decoration: none; } | 393 | .repotitle a:hover { color: var(--link); text-decoration: none; } |
| 352 | .repotitle .sep { color: var(--muted); margin: 0 0.12em; font-weight: 400; } | 394 | .repotitle .sep { color: var(--muted); margin: 0 2px; font-weight: 400; } |
| 353 | .repodesc { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-2); max-width: 62ch; } | 395 | .repodesc { |
| 354 | .repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); } | 396 | margin: var(--sp-2) 0 0; |
| 355 | |||
| 356 | button.btn { | ||
| 357 | font: inherit; | ||
| 358 | font-size: var(--fs-1); | ||
| 359 | font-weight: 600; | ||
| 360 | padding: 0.15rem 0.7rem; | ||
| 361 | border: 1px solid var(--line); | ||
| 362 | border-radius: var(--r-sm); | ||
| 363 | background: var(--bg); | ||
| 364 | color: var(--fg); | 397 | color: var(--fg); |
| 365 | cursor: pointer; | 398 | font-size: var(--fs-2); |
| 399 | display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; | ||
| 366 | } | 400 | } |
| 367 | button.btn:hover { border-color: var(--accent); color: var(--accent); } | 401 | .repohead .topics { margin: var(--sp-2) 0 0; } |
| 368 | button.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); } | 402 | .repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); } |
| 369 | form.inline { display: inline; } | 403 | .toggles { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-1); } |
| 370 | input[name="confirm"] { width: auto; margin-right: var(--sp-2); } | ||
| 371 | 404 | ||
| 372 | nav.tabs { | 405 | nav.tabs { |
| 373 | display: flex; | 406 | display: flex; |
| 374 | gap: var(--sp-1); | 407 | gap: var(--sp-1); |
| 375 | margin-top: var(--sp-4); | 408 | margin-top: var(--sp-3); |
| 376 | overflow-x: auto; | 409 | overflow-x: auto; |
| 377 | /* with overflow-y left visible the browser computes it to auto, which | 410 | /* with overflow-y left visible the browser computes it to auto, which |
| 378 | is a vertical drag on touch; the strip scrolls sideways only. */ | 411 | is a vertical drag on touch; the strip scrolls sideways only */ |
| 379 | overflow-y: hidden; | 412 | overflow-y: hidden; |
| 380 | scrollbar-width: none; | 413 | scrollbar-width: none; |
| 381 | } | 414 | } |
| @@ -383,8 +416,8 @@ nav.tabs::-webkit-scrollbar { display: none; } | |||
| 383 | nav.tabs a { | 416 | nav.tabs a { |
| 384 | display: inline-flex; | 417 | display: inline-flex; |
| 385 | align-items: center; | 418 | align-items: center; |
| 386 | gap: var(--sp-2); | 419 | gap: var(--sp-1); |
| 387 | padding: var(--sp-2) var(--sp-3) 0.6rem; | 420 | padding: var(--sp-2) var(--sp-3) 10px; |
| 388 | color: var(--muted); | 421 | color: var(--muted); |
| 389 | font-size: var(--fs-2); | 422 | font-size: var(--fs-2); |
| 390 | white-space: nowrap; | 423 | white-space: nowrap; |
| @@ -392,448 +425,536 @@ nav.tabs a { | |||
| 392 | margin-bottom: -1px; | 425 | margin-bottom: -1px; |
| 393 | } | 426 | } |
| 394 | nav.tabs a:hover { color: var(--fg); text-decoration: none; } | 427 | nav.tabs a:hover { color: var(--fg); text-decoration: none; } |
| 395 | /* orange marks position here too */ | 428 | nav.tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); } |
| 396 | nav.tabs a[aria-current] { | 429 | /* a count in a tab is plain metadata, not a badge */ |
| 397 | color: var(--fg); | 430 | nav.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; } |
| 398 | font-weight: 700; | ||
| 399 | border-bottom-color: var(--mark); | ||
| 400 | } | ||
| 401 | nav.tabs a i { | ||
| 402 | font-style: normal; | ||
| 403 | font-family: var(--mono); | ||
| 404 | font-size: var(--fs-0); | ||
| 405 | background: var(--hover); | ||
| 406 | border-radius: var(--r-sm); | ||
| 407 | padding: 0 0.35rem; | ||
| 408 | } | ||
| 409 | 431 | ||
| 410 | /* ---- mobile: the rail becomes a single strip, not a wall of links ---- */ | 432 | /* ---- page heads ---- */ |
| 411 | @media (max-width: 52rem) { | 433 | .pagehead, .listhead, .headrow { |
| 412 | .shell { display: block; } | 434 | display: flex; |
| 413 | .rail { | 435 | align-items: center; |
| 414 | width: auto; | 436 | gap: var(--sp-3); |
| 415 | height: auto; | 437 | flex-wrap: wrap; |
| 416 | position: static; | 438 | margin-bottom: var(--sp-5); |
| 417 | flex-direction: row; | ||
| 418 | align-items: center; | ||
| 419 | gap: var(--sp-2); | ||
| 420 | border-right: 0; | ||
| 421 | border-bottom: 1px solid var(--shell-line); | ||
| 422 | overflow-x: auto; | ||
| 423 | } | ||
| 424 | a.brand { border-bottom: 0; padding-right: var(--sp-2); } | ||
| 425 | .railbody { flex: 1; overflow: visible; padding: 0; display: flex; align-items: center; } | ||
| 426 | form.railsearch { padding: 0 var(--sp-2); } | ||
| 427 | form.railsearch input[type="search"] { min-width: 8rem; } | ||
| 428 | /* pinned repos and the review queue both live on the dashboard, so the | ||
| 429 | strip keeps only what has nowhere else to go */ | ||
| 430 | .railgroup { display: none; } | ||
| 431 | ul.raillist { display: flex; } | ||
| 432 | ul.raillist a { border-left: 0; border-bottom: 2px solid transparent; padding: var(--sp-2) var(--sp-3); } | ||
| 433 | ul.raillist a[aria-current] { border-left: 0; border-bottom-color: var(--shell-mark); } | ||
| 434 | /* the rail is a horizontal strip here: keep the account cell compact */ | ||
| 435 | .railfoot { border-top: 0; padding: var(--sp-2); } | ||
| 436 | .railpinned { border-top: 0; padding: 0; } | ||
| 437 | .content { padding: var(--sp-4) var(--sp-4) var(--sp-5); } | ||
| 438 | .repohead { padding: var(--sp-3) var(--sp-4) 0; } | ||
| 439 | /* seven tabs do not fit a phone in one row; a hidden scrollbar made | ||
| 440 | the ones past the edge look absent. Two rows show all of them. */ | ||
| 441 | nav.tabs { flex-wrap: wrap; overflow: visible; } | ||
| 442 | } | 439 | } |
| 440 | .pagehead h1, .listhead h1, .headrow h1, .listhead h2, .headrow h2 { margin: 0; } | ||
| 441 | .pagehead .grow, .listhead .spacer, .headrow .spacer { flex: 1; } | ||
| 442 | .issuetitle { margin: 0 0 var(--sp-2); font-size: var(--fs-5); } | ||
| 443 | .issuenumber { color: var(--muted); font-weight: 400; } | ||
| 444 | .issuemeta { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-4); } | ||
| 445 | .commithead p { margin: var(--sp-1) 0; } | ||
| 446 | .commithead h2 { margin-top: 0; margin-bottom: var(--sp-1); } | ||
| 443 | 447 | ||
| 444 | /* tables */ | 448 | nav.filters { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; } |
| 445 | table { border-collapse: collapse; width: 100%; } | 449 | nav.filters a { |
| 446 | td { | 450 | display: inline-flex; |
| 447 | padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; | 451 | align-items: center; |
| 448 | border-bottom: 1px solid var(--faint); | 452 | height: 32px; |
| 449 | vertical-align: top; | 453 | padding: 0 var(--sp-3); |
| 454 | background: var(--canvas); | ||
| 455 | border: 1px solid var(--line); | ||
| 456 | border-radius: var(--r-ctl); | ||
| 457 | color: var(--fg); | ||
| 450 | font-size: var(--fs-2); | 458 | font-size: var(--fs-2); |
| 459 | font-weight: 500; | ||
| 451 | } | 460 | } |
| 452 | td:last-child { padding-right: 0; } | 461 | nav.filters a:hover { background: var(--hover); text-decoration: none; } |
| 453 | td.size, td.mode { color: var(--muted); white-space: nowrap; } | 462 | nav.filters a.active { background: var(--surface); border-color: var(--link); color: var(--link); } |
| 454 | 463 | ||
| 455 | /* path bar on tree and blob pages */ | 464 | form.searchform, form.logfilter, form.compareform { |
| 456 | .pathbar { | ||
| 457 | display: flex; | 465 | display: flex; |
| 458 | flex-wrap: wrap; | ||
| 459 | align-items: center; | 466 | align-items: center; |
| 460 | gap: var(--sp-2) var(--sp-3); | 467 | gap: var(--sp-2); |
| 461 | margin: var(--sp-3) 0; | 468 | flex-wrap: wrap; |
| 462 | font-size: var(--fs-2); | 469 | margin: 0 0 var(--sp-4); |
| 463 | } | 470 | } |
| 464 | .pathbar .spacer { flex: 1; } | 471 | form.searchform input[type="search"], form.logfilter input { flex: 1; min-width: 12rem; max-width: 32rem; } |
| 465 | .refchip { | 472 | form.searchform.compact { margin: 0; } |
| 473 | form.searchform.compact input[type="search"] { min-width: 18rem; } | ||
| 474 | form.compareform label { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; } | ||
| 475 | |||
| 476 | /* ---- buttons: one family, 32px tall, so a row of them lines up ---- */ | ||
| 477 | button, .button { | ||
| 466 | display: inline-flex; | 478 | display: inline-flex; |
| 467 | align-items: center; | 479 | align-items: center; |
| 468 | gap: 0.3rem; | 480 | justify-content: center; |
| 469 | background: var(--surface); | 481 | gap: 6px; |
| 470 | border: 1px solid var(--faint); | 482 | height: 32px; |
| 471 | border-radius: var(--r-md); | 483 | padding: 0 var(--sp-3); |
| 472 | padding: 0.1rem 0.55rem; | 484 | font: inherit; |
| 473 | font-family: var(--mono); | 485 | font-size: var(--fs-2); |
| 474 | font-size: var(--fs-1); | 486 | font-weight: 500; |
| 487 | border: 1px solid transparent; | ||
| 488 | border-radius: var(--r-ctl); | ||
| 489 | cursor: pointer; | ||
| 490 | text-decoration: none; | ||
| 491 | white-space: nowrap; | ||
| 492 | /* a bare <button> is the primary action of its form group */ | ||
| 493 | background: var(--fill); | ||
| 494 | color: var(--fill-fg); | ||
| 495 | } | ||
| 496 | button.primary, .button.primary { background: var(--fill); color: var(--fill-fg); border-color: transparent; } | ||
| 497 | button:hover, .button.primary:hover { filter: brightness(1.12); text-decoration: none; } | ||
| 498 | button.btn, .button.btn { | ||
| 499 | background: var(--canvas); | ||
| 475 | color: var(--fg); | 500 | color: var(--fg); |
| 501 | border-color: var(--line); | ||
| 502 | filter: none; | ||
| 476 | } | 503 | } |
| 477 | .pathbar .crumbs strong { color: var(--fg); } | 504 | button.btn:hover, .button.btn:hover { background: var(--hover); filter: none; text-decoration: none; } |
| 478 | details.refmenu { position: relative; } | 505 | button.btn[aria-pressed="true"] { background: var(--surface); color: var(--link); border-color: var(--link); } |
| 479 | details.refmenu summary { cursor: pointer; list-style: none; } | 506 | button.linklike { |
| 480 | details.refmenu summary::-webkit-details-marker { display: none; } | 507 | background: none; |
| 481 | details.refmenu summary::after { content: " ▾"; color: var(--muted); } | 508 | border: 0; |
| 482 | details.refmenu .refdrop { | 509 | padding: 0; |
| 483 | position: absolute; | 510 | height: auto; |
| 484 | z-index: 10; | 511 | color: var(--link); |
| 485 | top: calc(100% + 4px); | 512 | font-weight: 400; |
| 486 | left: 0; | 513 | filter: none; |
| 487 | min-width: 12rem; | ||
| 488 | max-height: 20rem; | ||
| 489 | overflow-y: auto; | ||
| 490 | background: var(--bg); | ||
| 491 | border: 1px solid var(--line); | ||
| 492 | border-radius: var(--r-md); | ||
| 493 | box-shadow: var(--shadow); | ||
| 494 | padding: var(--sp-1) 0; | ||
| 495 | } | 514 | } |
| 496 | details.refmenu .refdrop a { | 515 | button.linklike:hover { text-decoration: underline; filter: none; } |
| 497 | display: block; | 516 | button.danger, .button.danger { |
| 498 | padding: var(--sp-1) var(--sp-3); | 517 | background: var(--canvas); |
| 499 | color: var(--fg); | 518 | color: var(--bad); |
| 500 | font-family: var(--mono); | 519 | border-color: var(--bad); |
| 501 | font-size: var(--fs-1); | 520 | filter: none; |
| 502 | } | 521 | } |
| 503 | details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; } | 522 | /* --canvas, not --fill-fg: white on the dark scheme's --bad is 2.3:1 */ |
| 504 | details.refmenu .refdrop a.allrefs { color: var(--accent); font-family: var(--sans); border-top: 1px solid var(--faint); margin-top: var(--sp-1); } | 523 | button.danger:hover, .button.danger:hover { background: var(--bad); color: var(--canvas); filter: none; } |
| 505 | 524 | button:disabled { opacity: 0.55; cursor: default; filter: none; } | |
| 506 | /* file and refs tables: bordered cards, rows inside */ | 525 | .btngroup { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; } |
| 507 | /* wide listings scroll inside their own box; the page never does */ | 526 | form.inline { display: inline; } |
| 508 | .tablewrap { overflow-x: auto; max-width: 100%; } | 527 | .act { text-align: right; } |
| 509 | 528 | ||
| 510 | table.tree, table.refs { | 529 | /* ---- forms ---- */ |
| 511 | background: var(--surface); | 530 | /* not button: it sets its own colour above, and this rule comes later at |
| 531 | the same specificity */ | ||
| 532 | input, textarea, select { font: inherit; color: inherit; } | ||
| 533 | input[type="text"], input[type="search"], input[type="email"], | ||
| 534 | input[type="password"], input[type="number"], input:not([type]), textarea, select { | ||
| 535 | background: var(--inset); | ||
| 536 | color: var(--fg); | ||
| 512 | border: 1px solid var(--line); | 537 | border: 1px solid var(--line); |
| 513 | border-radius: var(--r-lg); | 538 | border-radius: var(--r-ctl); |
| 514 | border-collapse: separate; | 539 | padding: 0 10px; |
| 515 | border-spacing: 0; | 540 | height: 32px; |
| 516 | overflow: hidden; | 541 | font-size: var(--fs-2); |
| 517 | margin-bottom: var(--sp-4); | 542 | line-height: 1.4; |
| 518 | } | ||
| 519 | table.tree td, table.refs td { | ||
| 520 | padding: var(--sp-2) var(--sp-4); | ||
| 521 | border-bottom: 1px solid var(--faint); | ||
| 522 | } | 543 | } |
| 523 | table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: none; } | 544 | textarea { |
| 524 | table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); } | 545 | width: 100%; |
| 525 | tr.cols th { | 546 | height: auto; |
| 526 | text-align: left; | 547 | padding: 8px 10px; |
| 527 | font-weight: 500; | 548 | resize: vertical; |
| 528 | font-size: var(--fs-1); | 549 | line-height: 1.5; |
| 529 | color: var(--muted); | ||
| 530 | padding: var(--sp-1) var(--sp-4); | ||
| 531 | border-bottom: 1px solid var(--line); | ||
| 532 | background: var(--bg); | ||
| 533 | } | 550 | } |
| 534 | tr.cols:hover th { background: var(--bg); } | 551 | textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); } |
| 535 | /* right-aligned columns keep their header with their values; this needs to | 552 | select { |
| 536 | outrank the tr.cols th rule above, which is why it names both */ | 553 | appearance: none; |
| 537 | tr.cols th.age, tr.cols th.size { text-align: right; } | 554 | padding-right: 1.9rem; |
| 538 | table.tree th.size { text-align: right; } | 555 | background-image: var(--chev); |
| 539 | table.tree td.name { width: 100%; } | 556 | background-repeat: no-repeat; |
| 540 | table.tree td.name a { color: var(--fg); } | 557 | background-position: right 0.6rem center; |
| 541 | table.tree td.name a:hover { color: var(--accent); } | 558 | background-size: 0.62rem; |
| 542 | table.tree td.size { text-align: right; } | 559 | cursor: pointer; |
| 543 | table.tree td.empty, table.refs td.empty, li.empty, ul.loglist li.empty { color: var(--muted); } | ||
| 544 | |||
| 545 | /* refs page */ | ||
| 546 | table.refs th, table.assets th { | ||
| 547 | text-align: left; | ||
| 548 | font-size: var(--fs-0); | ||
| 549 | font-weight: 500; | ||
| 550 | color: var(--muted); | ||
| 551 | padding: var(--sp-1) var(--sp-2); | ||
| 552 | border-bottom: 1px solid var(--line); | ||
| 553 | } | 560 | } |
| 554 | table.refs td.name { width: 100%; } | 561 | input:hover, textarea:hover, select:hover { border-color: var(--muted); } |
| 555 | table.refs td.sha { color: var(--muted); } | 562 | input[type="radio"] { accent-color: var(--fill); } |
| 563 | label { display: block; font-weight: 500; font-size: var(--fs-2); margin-bottom: 4px; } | ||
| 564 | label:has(> input[type="radio"]), label:has(> input[type="checkbox"]), | ||
| 565 | label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); } | ||
| 566 | .hint { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 400; margin: 0 0 6px; } | ||
| 567 | .field { margin-bottom: var(--sp-4); } | ||
| 568 | .field input[type="text"], .field input[type="email"], .field select { width: 100%; } | ||
| 569 | .check { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; } | ||
| 570 | ::placeholder { color: var(--muted); opacity: 1; } | ||
| 571 | ::selection { background: var(--fill); color: var(--fill-fg); } | ||
| 572 | /* :user-invalid, not :invalid — a required field is invalid the moment | ||
| 573 | the page loads, and colouring it red before anyone has typed is a | ||
| 574 | scolding, not a hint */ | ||
| 575 | input:user-invalid, textarea:user-invalid { border-color: var(--bad); } | ||
| 576 | input[name="confirm"] { width: auto; margin-right: var(--sp-2); } | ||
| 556 | 577 | ||
| 557 | /* card header (README) */ | 578 | /* A radio keeps the native control: a circle takes one answer, a square |
| 558 | .cardhead { | 579 | takes any number, and that shape survives greyscale and colour |
| 559 | font-family: var(--mono); | 580 | blindness. The checkbox is drawn so it matches the rest of the family. */ |
| 560 | font-size: var(--fs-1); | 581 | input[type="checkbox"] { |
| 561 | color: var(--muted); | 582 | appearance: none; |
| 562 | border-bottom: 1px solid var(--faint); | 583 | flex: none; |
| 563 | margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-5)) var(--sp-4); | 584 | width: 16px; |
| 564 | padding: var(--sp-2) var(--sp-5); | 585 | height: 16px; |
| 565 | background: var(--bg); | 586 | margin: 0; |
| 566 | border-radius: var(--r-lg) var(--r-lg) 0 0; | 587 | /* an empty box has nothing but its border to announce it */ |
| 588 | border: 1px solid var(--muted); | ||
| 589 | border-radius: var(--r-ctl); | ||
| 590 | background: var(--inset); | ||
| 591 | cursor: pointer; | ||
| 592 | } | ||
| 593 | input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); } | ||
| 594 | input[type="checkbox"]:checked { | ||
| 595 | background: var(--fill); | ||
| 596 | border-color: var(--fill); | ||
| 597 | /* the mark sits on the blue ground, so it is white in both schemes */ | ||
| 598 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.4 3.4L11 1.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | ||
| 599 | background-repeat: no-repeat; | ||
| 600 | background-position: center; | ||
| 601 | background-size: 11px; | ||
| 567 | } | 602 | } |
| 568 | 603 | ||
| 569 | /* log */ | 604 | /* a segmented control for a small, mutually exclusive set: real radios |
| 570 | ul.loglist { | 605 | underneath, so arrow keys and screen readers behave as they always did */ |
| 571 | list-style: none; | 606 | fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; } |
| 572 | margin: var(--sp-3) 0; | 607 | fieldset.segmented legend { padding: 0; margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-2); } |
| 573 | padding: 0; | 608 | fieldset.segmented .options { display: inline-flex; } |
| 574 | background: var(--surface); | 609 | fieldset.segmented label { gap: 0; margin: 0; } |
| 610 | fieldset.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } | ||
| 611 | fieldset.segmented span { | ||
| 612 | display: flex; | ||
| 613 | align-items: center; | ||
| 614 | height: 32px; | ||
| 615 | padding: 0 var(--sp-4); | ||
| 575 | border: 1px solid var(--line); | 616 | border: 1px solid var(--line); |
| 576 | border-radius: var(--r-lg); | 617 | font-size: var(--fs-2); |
| 577 | overflow: hidden; | 618 | cursor: pointer; |
| 578 | } | 619 | } |
| 579 | ul.loglist li { | 620 | fieldset.segmented label + label span { border-left: 0; } |
| 580 | display: flex; | 621 | fieldset.segmented label:first-child span { border-radius: var(--r-ctl) 0 0 var(--r-ctl); } |
| 581 | align-items: baseline; | 622 | fieldset.segmented label:last-child span { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; } |
| 582 | gap: var(--sp-3); | 623 | fieldset.segmented span:hover { border-color: var(--muted); } |
| 583 | padding: var(--sp-2) var(--sp-4); | 624 | fieldset.segmented input:checked + span { |
| 584 | border-bottom: 1px solid var(--faint); | 625 | background: var(--fill); |
| 585 | } | 626 | border-color: var(--fill); |
| 586 | ul.loglist li:last-child { border-bottom: none; } | 627 | color: var(--fill-fg); |
| 587 | ul.loglist li:hover { background: var(--hover); } | 628 | font-weight: 600; |
| 588 | ul.loglist .commitmain { flex: 1; min-width: 0; } | ||
| 589 | ul.loglist p { margin: 0; } | ||
| 590 | ul.loglist .subject a { color: var(--fg); font-weight: 550; } | ||
| 591 | ul.loglist .subject a:hover { color: var(--accent); } | ||
| 592 | ul.loglist .commitside { | ||
| 593 | display: flex; | ||
| 594 | align-items: baseline; | ||
| 595 | gap: var(--sp-2); | ||
| 596 | white-space: nowrap; | ||
| 597 | } | 629 | } |
| 598 | p.pager { margin-top: var(--sp-4); } | 630 | fieldset.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; } |
| 599 | 631 | ||
| 600 | /* commit page */ | 632 | p.branchpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); } |
| 601 | .commithead p { margin: var(--sp-1) 0; } | 633 | p.branchpick label { color: var(--muted); font-size: var(--fs-2); margin: 0; } |
| 602 | .commithead h2 { margin-bottom: var(--sp-1); } | 634 | p.branchpick select { flex: 1 1 12rem; } |
| 603 | code.fullsha { color: var(--muted); overflow-wrap: anywhere; } | 635 | |
| 604 | .empty-note { color: var(--muted); } | 636 | form.signupform, form.editform { max-width: 40rem; } |
| 605 | .crumbs { color: var(--muted); font-size: var(--fs-2); } | 637 | form.signupform label, form.editform label { margin-bottom: 4px; } |
| 606 | .desc, td.desc { color: var(--muted); } | 638 | .editform textarea { width: 100%; } |
| 607 | .error { | 639 | .editform input[name="message"] { width: 100%; } |
| 640 | |||
| 641 | form.commentform { margin: var(--sp-4) 0; max-width: 48rem; } | ||
| 642 | form.commentform p:last-child { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 0; } | ||
| 643 | |||
| 644 | details.editbox { margin: var(--sp-2) 0; max-width: 48rem; } | ||
| 645 | details.editbox > summary { | ||
| 646 | display: inline-flex; | ||
| 647 | align-items: center; | ||
| 648 | height: 32px; | ||
| 649 | padding: 0 var(--sp-3); | ||
| 650 | background: var(--canvas); | ||
| 651 | border: 1px solid var(--line); | ||
| 652 | border-radius: var(--r-ctl); | ||
| 608 | color: var(--fg); | 653 | color: var(--fg); |
| 609 | border: 1px solid var(--bad); | 654 | font-size: var(--fs-2); |
| 610 | border-left-width: 3px; | 655 | font-weight: 500; |
| 611 | border-radius: var(--r-sm); | 656 | cursor: pointer; |
| 612 | padding: var(--sp-2) var(--sp-3); | 657 | list-style: none; |
| 613 | margin-bottom: var(--sp-4); | ||
| 614 | } | 658 | } |
| 615 | /* settings: one row per control, label then input then its own button */ | 659 | details.editbox > summary::-webkit-details-marker { display: none; } |
| 660 | details.editbox > summary:hover { background: var(--hover); } | ||
| 661 | details.editbox[open] > summary { margin-bottom: var(--sp-2); } | ||
| 662 | details.editbox input[type="text"] { width: 100%; } | ||
| 663 | |||
| 664 | /* ---- settings: one row per control, label then input then its own | ||
| 665 | button. The name stays setform because the templates carry it. ---- */ | ||
| 616 | form.setform { | 666 | form.setform { |
| 667 | display: grid; | ||
| 668 | grid-template-columns: 14rem minmax(0, 28rem) auto; | ||
| 669 | gap: var(--sp-4); | ||
| 670 | align-items: start; | ||
| 671 | padding: var(--sp-3) 0; | ||
| 672 | border-bottom: 1px solid var(--faint); | ||
| 673 | } | ||
| 674 | form.setform label { margin-top: 6px; } | ||
| 675 | form.setform .hint { margin: 2px 0 0; } | ||
| 676 | form.setform input[type="text"], form.setform input[type="number"], form.setform select { width: 100%; } | ||
| 677 | /* the third column takes the leftover width; the button keeps its own */ | ||
| 678 | form.setform > button, form.setform > .btngroup { justify-self: start; } | ||
| 679 | form.setform.stack { grid-template-columns: 1fr; } | ||
| 680 | form.setform.stack textarea, form.setform.stack select { width: 100%; max-width: 48rem; } | ||
| 681 | nav.sections { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-2); margin-bottom: var(--sp-5); } | ||
| 682 | ul.protlist { list-style: none; margin: var(--sp-2) 0; padding: 0; } | ||
| 683 | ul.protlist li { | ||
| 617 | display: flex; | 684 | display: flex; |
| 618 | flex-wrap: wrap; | ||
| 619 | align-items: center; | 685 | align-items: center; |
| 620 | gap: var(--sp-3); | 686 | gap: var(--sp-3); |
| 621 | padding: var(--sp-2) 0; | 687 | padding: var(--sp-2) 0; |
| 622 | border-bottom: 1px solid var(--faint); | 688 | border-bottom: 1px solid var(--faint); |
| 623 | } | 689 | } |
| 624 | /* the label absorbs the free space, so a row whose control does not | 690 | ul.protlist li:last-child { border-bottom: 0; } |
| 625 | stretch — a checkbox, a number — still finishes at the same right edge | 691 | ul.protlist form { margin-left: auto; } |
| 626 | as the rows whose input fills the line */ | 692 | ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; } |
| 627 | form.setform label { min-width: 12rem; margin-right: auto; color: var(--muted); font-size: var(--fs-2); } | 693 | ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; } |
| 628 | form.setform input[type="text"], form.setform select { flex: 1 1 16rem; } | ||
| 629 | form.setform input[type="number"] { width: 5rem; } | ||
| 630 | ul.protlist { list-style: none; padding: 0; margin: var(--sp-2) 0; } | ||
| 631 | ul.protlist li { padding: var(--sp-1) 0; display: flex; gap: var(--sp-3); align-items: baseline; } | ||
| 632 | |||
| 633 | /* branch picker on the new merge request form */ | ||
| 634 | p.branchpick { | ||
| 635 | display: flex; | ||
| 636 | flex-wrap: wrap; | ||
| 637 | align-items: center; | ||
| 638 | gap: var(--sp-2); | ||
| 639 | } | ||
| 640 | p.branchpick label { color: var(--muted); font-size: var(--fs-2); } | ||
| 641 | p.branchpick select { flex: 1 1 12rem; } | ||
| 642 | 694 | ||
| 643 | /* merge request actions in the aside: stacked controls, full width */ | 695 | /* ---- messages: .error and .notice are one family. The names stay |
| 644 | .aside form.actions { | 696 | because e2e tests match class="error". ---- */ |
| 645 | display: flex; | 697 | .error, .notice { |
| 646 | flex-wrap: wrap; | 698 | border-left: 3px solid var(--bad); |
| 647 | gap: var(--sp-2); | 699 | background: color-mix(in srgb, var(--bad) 6%, transparent); |
| 648 | margin-top: var(--sp-2); | 700 | color: var(--fg); |
| 701 | border-radius: 0 var(--r-ctl) var(--r-ctl) 0; | ||
| 702 | padding: var(--sp-2) var(--sp-3); | ||
| 703 | margin: 0 0 var(--sp-4); | ||
| 704 | font-size: var(--fs-2); | ||
| 649 | } | 705 | } |
| 650 | .aside form.actions button { flex: 1 1 auto; } | 706 | .notice { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); } |
| 651 | .aside form.actions select { width: 100%; } | 707 | .empty-note, .none, .empty, li.empty, td.empty { color: var(--muted); } |
| 652 | form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); } | ||
| 653 | |||
| 654 | .meta { color: var(--muted); font-size: var(--fs-1); } | ||
| 655 | svg.icon { vertical-align: -0.125em; } | ||
| 656 | .lede { font-size: var(--fs-3); margin: var(--sp-2) 0; } | ||
| 657 | 708 | ||
| 658 | /* repo listings (explore, owner pages, dashboard): one row per repo */ | 709 | /* ---- containers: one recipe for cards, lists and tables ---- */ |
| 659 | ul.repolist { | 710 | .card, ul.list, ul.loglist, ul.repolist, ul.issuelist, |
| 660 | list-style: none; | 711 | ul.milestonelist, .readme, .code, article.release, .blame, .teambody { |
| 661 | margin: var(--sp-3) 0 var(--sp-5); | ||
| 662 | padding: 0; | ||
| 663 | background: var(--surface); | 712 | background: var(--surface); |
| 664 | border: 1px solid var(--line); | 713 | border: 1px solid var(--line); |
| 665 | border-radius: var(--r-lg); | 714 | border-radius: var(--r-card); |
| 666 | overflow: hidden; | 715 | overflow: hidden; |
| 667 | } | 716 | } |
| 668 | ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } | 717 | .cardhead { |
| 669 | /* pinned repos: a compact wrap of name pills, no description or meta */ | ||
| 670 | ul.pinlist { | ||
| 671 | list-style: none; | ||
| 672 | margin: var(--sp-3) 0 var(--sp-5); | ||
| 673 | padding: 0; | ||
| 674 | display: flex; | 718 | display: flex; |
| 675 | flex-wrap: wrap; | 719 | align-items: center; |
| 676 | gap: var(--sp-2); | 720 | gap: var(--sp-3); |
| 721 | padding: var(--sp-2) var(--sp-4); | ||
| 722 | border-bottom: 1px solid var(--line); | ||
| 723 | font-size: var(--fs-1); | ||
| 724 | color: var(--muted); | ||
| 677 | } | 725 | } |
| 678 | ul.pinlist li { | 726 | .cardhead b { color: var(--fg); font-weight: 500; } |
| 727 | .cardbody { padding: var(--sp-4) var(--sp-5); } | ||
| 728 | ul.list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; } | ||
| 729 | ul.list li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } | ||
| 730 | ul.list li:last-child { border-bottom: 0; } | ||
| 731 | ul.list li:hover { background: var(--hover); } | ||
| 732 | |||
| 733 | table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); } | ||
| 734 | th { | ||
| 735 | text-align: left; | ||
| 736 | font-weight: 500; | ||
| 737 | font-size: var(--fs-1); | ||
| 738 | color: var(--muted); | ||
| 739 | padding: 6px var(--sp-4); | ||
| 740 | border-bottom: 1px solid var(--line); | ||
| 741 | } | ||
| 742 | td { padding: 7px var(--sp-4); border-bottom: 1px solid var(--faint); vertical-align: top; } | ||
| 743 | tr:last-child td { border-bottom: 0; } | ||
| 744 | tbody tr:hover td { background: var(--hover); } | ||
| 745 | /* every header row a template writes, by the class it or its table | ||
| 746 | carries: TestHeaderRowsAreLeftAligned reads these selectors */ | ||
| 747 | tr.cols th, table.tree th, table.refs th, table.keys th, table.assets th { text-align: left; } | ||
| 748 | tr.cols th { background: var(--canvas); } | ||
| 749 | /* right-aligned columns keep their header with their values */ | ||
| 750 | tr.cols th.age, tr.cols th.size { text-align: right; } | ||
| 751 | /* wide listings scroll inside their own box; the page never does. The | ||
| 752 | wrapper is the scroller only — the table inside carries the card. */ | ||
| 753 | .tablewrap { overflow-x: auto; max-width: 100%; } | ||
| 754 | |||
| 755 | table.tree, table.refs { | ||
| 679 | background: var(--surface); | 756 | background: var(--surface); |
| 680 | border: 1px solid var(--line); | 757 | border: 1px solid var(--line); |
| 681 | border-radius: var(--r-md); | 758 | border-radius: var(--r-card); |
| 682 | padding: var(--sp-1) var(--sp-3); | 759 | /* collapsed borders defeat a radius on the table itself */ |
| 683 | } | 760 | border-collapse: separate; |
| 684 | ul.pinlist li:hover { background: var(--hover); } | 761 | border-spacing: 0; |
| 685 | ul.pinlist li a { color: var(--fg); } | 762 | overflow: hidden; |
| 686 | ul.pinlist li a:hover { color: var(--accent); text-decoration: none; } | ||
| 687 | ul.pinlist .sep { color: var(--muted); margin: 0 0.15em; } | ||
| 688 | ul.repolist li:last-child { border-bottom: none; } | ||
| 689 | ul.repolist li:hover { background: var(--hover); } | ||
| 690 | ul.repolist li.empty { color: var(--muted); } | ||
| 691 | ul.repolist p { margin: 0; } | ||
| 692 | ul.repolist .reponame { font-size: var(--fs-3); } | ||
| 693 | ul.repolist .reponame a { color: var(--fg); } | ||
| 694 | ul.repolist .reponame a strong { color: var(--accent); font-weight: 600; } | ||
| 695 | ul.repolist .reponame .sep { color: var(--muted); margin: 0 0.1em; } | ||
| 696 | ul.repolist .desc { margin-top: 0.1rem; } | ||
| 697 | ul.repolist .topics { margin-top: var(--sp-1); } | ||
| 698 | ul.repolist .meta { margin-top: var(--sp-1); } | ||
| 699 | |||
| 700 | /* owner profile header */ | ||
| 701 | .profilehead { | ||
| 702 | border-bottom: 1px solid var(--faint); | ||
| 703 | padding-bottom: var(--sp-4); | ||
| 704 | margin-bottom: var(--sp-4); | 763 | margin-bottom: var(--sp-4); |
| 705 | } | 764 | } |
| 706 | .profilehead h1 { margin: var(--sp-4) 0 var(--sp-1); } | 765 | table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: 0; } |
| 707 | .profilehead .lede { margin: 0 0 var(--sp-1); } | 766 | table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); } |
| 708 | .profilehead .meta { margin: var(--sp-1) 0 0; } | 767 | td.name a { color: var(--fg); } |
| 709 | h2 .count { color: var(--muted); font-weight: 400; font-size: var(--fs-2); } | 768 | td.name a:hover { color: var(--link); } |
| 769 | table.tree td.name { width: 25%; white-space: nowrap; } | ||
| 770 | table.tree td.name.dir a { color: var(--link); } | ||
| 771 | table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; } | ||
| 772 | table.tree td.lastcommit a { | ||
| 773 | color: var(--muted); | ||
| 774 | display: block; | ||
| 775 | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; | ||
| 776 | } | ||
| 777 | table.tree td.lastcommit a:hover { color: var(--link); } | ||
| 778 | td.age, th.age { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; } | ||
| 779 | td.size, td.mode { color: var(--muted); white-space: nowrap; } | ||
| 780 | table.tree th.size, table.tree td.size { text-align: right; } | ||
| 781 | table.refs td.name { width: 100%; } | ||
| 782 | table.refs td.sha, td.sha { color: var(--muted); } | ||
| 783 | |||
| 784 | /* these tables sit flush with the page text: no outer border, and the | ||
| 785 | header row drops the ground and the left padding */ | ||
| 786 | table.keys, table.assets { background: none; border: 0; border-radius: 0; } | ||
| 787 | table.keys th, table.assets th, table.keys tr.cols th { background: transparent; padding-left: 0; } | ||
| 788 | table.keys td { padding-left: 0; } | ||
| 789 | table.keys td.act, table.assets td.size { text-align: right; } | ||
| 790 | table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); } | ||
| 791 | table.assets { margin-top: var(--sp-2); } | ||
| 710 | 792 | ||
| 711 | /* activity graph: 53 week columns x 7 day rows, accent-tinted levels */ | 793 | /* the tip commit is the first row of the file table */ |
| 712 | .actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); } | 794 | .tipbar { |
| 713 | .actgraph { display: flex; gap: 3px; width: max-content; } | 795 | display: flex; |
| 714 | .actweek { display: flex; flex-direction: column; gap: 3px; } | 796 | align-items: center; |
| 715 | .actday { | 797 | gap: var(--sp-3); |
| 716 | width: 11px; | 798 | padding: var(--sp-2) var(--sp-4); |
| 717 | height: 11px; | 799 | background: var(--surface); |
| 718 | border-radius: 2px; | 800 | border: 1px solid var(--line); |
| 719 | background: var(--faint); | 801 | border-bottom: 0; |
| 802 | border-radius: var(--r-card) var(--r-card) 0 0; | ||
| 803 | font-size: var(--fs-2); | ||
| 720 | } | 804 | } |
| 721 | .actday.pad { background: transparent; } | 805 | .tipbar .who { font-weight: 600; } |
| 722 | .actday.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--bg)); } | 806 | .tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 723 | .actday.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--bg)); } | 807 | .tipbar .subject:hover { color: var(--link); } |
| 724 | .actday.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--bg)); } | 808 | .tipbar .spacer { flex: 1; } |
| 725 | .actday.l4 { background: var(--accent); } | 809 | .tipbar .age { color: var(--muted); white-space: nowrap; } |
| 810 | .tipbar + table.tree, | ||
| 811 | .tipbar + .tablewrap table.tree { border-radius: 0 0 var(--r-card) var(--r-card); } | ||
| 812 | |||
| 813 | .readme { margin-top: var(--sp-5); } | ||
| 814 | .readme .cardbody { max-width: 78ch; } | ||
| 815 | /* until every card wraps its body in .cardbody, the rendered block is | ||
| 816 | the body */ | ||
| 817 | .readme > .rendered { padding: var(--sp-4) var(--sp-5); } | ||
| 818 | .code { background: var(--inset); padding: var(--sp-3) var(--sp-4); overflow-x: auto; } | ||
| 819 | .code pre { margin: 0; background: transparent !important; border: 0; padding: 0; } | ||
| 820 | pre.bigcode, .bigcode { | ||
| 821 | font-family: var(--mono); | ||
| 822 | /* the 404 numeral is a picture of a number, not body type */ | ||
| 823 | font-size: 4rem; | ||
| 824 | color: var(--faint); | ||
| 825 | -webkit-text-stroke: 1px var(--line); | ||
| 826 | margin: 0; | ||
| 827 | line-height: 1; | ||
| 828 | } | ||
| 829 | .notfound { text-align: center; padding: var(--sp-6) 0; } | ||
| 830 | .notfound h1 { margin-top: var(--sp-3); } | ||
| 726 | 831 | ||
| 727 | /* heading row with actions on the right */ | 832 | ul.loglist { list-style: none; margin: var(--sp-3) 0; padding: 0; } |
| 728 | .headrow { | 833 | ul.loglist li { |
| 729 | display: flex; | 834 | display: flex; |
| 730 | align-items: baseline; | 835 | align-items: baseline; |
| 731 | gap: var(--sp-4); | 836 | gap: var(--sp-3); |
| 732 | flex-wrap: wrap; | 837 | padding: var(--sp-3) var(--sp-4); |
| 838 | border-bottom: 1px solid var(--faint); | ||
| 733 | } | 839 | } |
| 734 | .headrow .spacer { flex: 1; } | 840 | ul.loglist li:last-child { border-bottom: 0; } |
| 841 | ul.loglist li:hover { background: var(--hover); } | ||
| 842 | ul.loglist p { margin: 0; } | ||
| 843 | ul.loglist .commitmain { flex: 1; min-width: 0; } | ||
| 844 | ul.loglist .subject a { color: var(--fg); font-weight: 500; } | ||
| 845 | ul.loglist .subject a:hover { color: var(--link); } | ||
| 846 | ul.loglist .commitside { display: flex; align-items: baseline; gap: var(--sp-2); white-space: nowrap; } | ||
| 735 | 847 | ||
| 736 | /* member and org chips on owner pages */ | 848 | ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; } |
| 737 | a.memberchip { | 849 | ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } |
| 738 | display: inline-block; | 850 | ul.repolist li:last-child { border-bottom: 0; } |
| 851 | ul.repolist li:hover { background: var(--hover); } | ||
| 852 | ul.repolist p { margin: 0; } | ||
| 853 | ul.repolist .reponame { font-size: var(--fs-3); } | ||
| 854 | ul.repolist .reponame a { color: var(--fg); } | ||
| 855 | ul.repolist .reponame a strong { color: var(--link); font-weight: 600; } | ||
| 856 | ul.repolist .reponame .sep { color: var(--muted); margin: 0 2px; } | ||
| 857 | ul.repolist .desc { margin-top: 2px; } | ||
| 858 | ul.repolist .topics, ul.repolist .meta { margin-top: var(--sp-1); } | ||
| 859 | |||
| 860 | /* pinned repos: a compact wrap of names, no description or meta */ | ||
| 861 | ul.pinlist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); } | ||
| 862 | ul.pinlist li { | ||
| 863 | background: var(--surface); | ||
| 739 | border: 1px solid var(--line); | 864 | border: 1px solid var(--line); |
| 740 | border-radius: var(--r-pill); | 865 | border-radius: var(--r-ctl); |
| 741 | padding: 0.05rem 0.6rem; | 866 | padding: var(--sp-1) var(--sp-3); |
| 742 | color: var(--fg); | ||
| 743 | font-size: var(--fs-1); | ||
| 744 | margin: 0 0.15rem 0.15rem 0; | ||
| 745 | } | 867 | } |
| 746 | a.memberchip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); } | 868 | ul.pinlist li:hover { background: var(--hover); } |
| 747 | a.memberchip .role { color: var(--muted); } | 869 | ul.pinlist li a { color: var(--fg); } |
| 870 | ul.pinlist li a:hover { color: var(--link); text-decoration: none; } | ||
| 871 | ul.pinlist .sep { color: var(--muted); margin: 0 2px; } | ||
| 748 | 872 | ||
| 749 | /* landing page */ | 873 | ul.issuelist { list-style: none; margin: var(--sp-3) 0; padding: 0; } |
| 750 | .landing { max-width: 44rem; padding: var(--sp-6) 0; } | 874 | ul.issuelist li { |
| 751 | .landing h1 { font-size: var(--fs-6); margin-bottom: var(--sp-3); } | 875 | display: flex; |
| 752 | .landing .lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.7; margin: 0 0 var(--sp-4); } | 876 | align-items: baseline; |
| 753 | pre.quickstart { | 877 | gap: var(--sp-3); |
| 754 | background: var(--code-bg); | ||
| 755 | border: 1px solid var(--line); | ||
| 756 | border-radius: var(--r-md); | ||
| 757 | padding: var(--sp-3) var(--sp-4); | 878 | padding: var(--sp-3) var(--sp-4); |
| 758 | overflow-x: auto; | 879 | border-bottom: 1px solid var(--faint); |
| 759 | margin: 0 0 var(--sp-4); | ||
| 760 | } | 880 | } |
| 761 | .landing .explorelink { font-weight: 550; } | 881 | ul.issuelist li:last-child { border-bottom: 0; } |
| 762 | .landing .facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; } | 882 | ul.issuelist li:hover { background: var(--hover); } |
| 763 | .landing .facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); } | 883 | ul.issuelist li.empty { display: block; } |
| 764 | .landing .facets p { margin: 0; color: var(--muted); font-size: var(--fs-2); line-height: 1.6; } | 884 | ul.issuelist p { margin: 0; } |
| 765 | @media (max-width: 40rem) { .landing .facets { grid-template-columns: 1fr; gap: var(--sp-4); } } | 885 | ul.issuelist .issuemain { flex: 1; min-width: 0; } |
| 886 | ul.issuelist .title a { color: var(--fg); font-weight: 500; } | ||
| 887 | ul.issuelist .title a:hover { color: var(--link); } | ||
| 766 | 888 | ||
| 767 | /* index toolbar */ | 889 | ul.milestonelist { list-style: none; margin: var(--sp-3) 0; padding: 0; } |
| 768 | p.toolbar { color: var(--muted); font-size: var(--fs-2); margin-top: var(--sp-4); } | 890 | ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } |
| 769 | button.linklike { | 891 | ul.milestonelist li:last-child { border-bottom: 0; } |
| 770 | background: none; | 892 | ul.milestonelist li:hover { background: var(--hover); } |
| 771 | border: none; | 893 | ul.milestonelist p { margin: 0; } |
| 772 | color: var(--accent); | 894 | ul.milestonelist .msmain { min-width: 0; } |
| 773 | padding: 0; | 895 | ul.milestonelist .title { font-weight: 500; } |
| 774 | font: inherit; | 896 | .progress { |
| 775 | font-size: var(--fs-2); | 897 | height: 6px; |
| 776 | cursor: pointer; | 898 | max-width: 24rem; |
| 899 | margin-top: var(--sp-2); | ||
| 900 | background: var(--faint); | ||
| 901 | border-radius: var(--r-ctl); | ||
| 902 | overflow: hidden; | ||
| 777 | } | 903 | } |
| 778 | button.linklike:hover { text-decoration: underline; filter: none; } | 904 | .progress .bar { height: 100%; background: var(--ok); } |
| 779 | 905 | ||
| 780 | /* cards: README, comments */ | 906 | article.release { padding: var(--sp-4); margin: var(--sp-4) 0; } |
| 781 | .readme, .code { | 907 | .releasehead { background: none; border: 0; padding: 0; } |
| 782 | background: var(--surface); | 908 | .releasehead h3 { margin: 0 0 var(--sp-1); } |
| 909 | .releasehead .meta { margin: 0 0 var(--sp-2); } | ||
| 910 | |||
| 911 | ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; } | ||
| 912 | ul.matchlist li { margin-bottom: var(--sp-3); } | ||
| 913 | .matchpath { font-family: var(--mono); font-size: var(--fs-1); } | ||
| 914 | pre.matchline { | ||
| 915 | background: var(--inset); | ||
| 783 | border: 1px solid var(--line); | 916 | border: 1px solid var(--line); |
| 784 | border-radius: var(--r-lg); | 917 | border-radius: var(--r-card); |
| 785 | padding: var(--sp-4) var(--sp-5); | 918 | padding: var(--sp-1) var(--sp-3); |
| 786 | margin-top: var(--sp-4); | 919 | margin: var(--sp-1) 0 0; |
| 787 | overflow-x: auto; | 920 | overflow-x: auto; |
| 788 | } | 921 | } |
| 789 | /* Highlighting is class-based with a palette per scheme, so code blocks | 922 | pre.matchline mark { background: color-mix(in srgb, var(--mark) 25%, transparent); color: inherit; border-radius: 2px; } |
| 790 | follow the site's own colors. */ | 923 | p.pager { margin-top: var(--sp-4); } |
| 791 | .code { background: var(--code-bg); color: var(--fg); padding: var(--sp-3) var(--sp-4); border-color: var(--line); } | 924 | .snippetfile { margin-bottom: var(--sp-5); } |
| 792 | .code pre { margin: 0; background: transparent !important; } | 925 | p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); } |
| 793 | /* rendered markdown / org / html */ | 926 | pre.buildlog { max-height: 40rem; overflow: auto; } |
| 794 | .rendered { max-width: 100%; overflow-wrap: anywhere; } | 927 | |
| 795 | /* A linked line: #f2-n17 on a diff, #L17 on a file (#118). */ | 928 | /* ---- rendered prose ---- */ |
| 796 | .difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); } | 929 | pre { |
| 797 | .difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); } | 930 | background: var(--inset); |
| 798 | .thread:target { outline: 2px solid var(--mark); outline-offset: 2px; } | ||
| 799 | /* GFM task lists: the box sits in the line, sized to the prose. */ | ||
| 800 | .rendered li input[type="checkbox"] { width: 0.9em; height: 0.9em; margin: 0 0.35em 0 0; vertical-align: -0.05em; accent-color: var(--accent); } | ||
| 801 | .rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; } | ||
| 802 | /* line length is a reading constraint, so it applies to prose only — | ||
| 803 | tables, code blocks and images keep the full column */ | ||
| 804 | .rendered > p, | ||
| 805 | .rendered > ul, | ||
| 806 | .rendered > ol, | ||
| 807 | .rendered > blockquote { max-width: 78ch; } | ||
| 808 | .rendered pre { | ||
| 809 | background: var(--code-bg); | ||
| 810 | border: 1px solid var(--line); | 931 | border: 1px solid var(--line); |
| 932 | border-radius: var(--r-card); | ||
| 811 | padding: var(--sp-3) var(--sp-4); | 933 | padding: var(--sp-3) var(--sp-4); |
| 812 | border-radius: var(--r-md); | 934 | margin: 0 0 var(--sp-4); |
| 813 | overflow-x: auto; | 935 | overflow-x: auto; |
| 936 | font-size: var(--fs-2); | ||
| 937 | line-height: 1.6; | ||
| 814 | } | 938 | } |
| 815 | .rendered code { | 939 | code { |
| 816 | background: var(--code-bg); | 940 | background: var(--inset); |
| 817 | border: 1px solid var(--line); | 941 | border: 1px solid var(--faint); |
| 818 | padding: 0.05rem 0.3rem; | 942 | border-radius: var(--r-ctl); |
| 819 | border-radius: var(--r-sm); | 943 | padding: 0 0.3em; |
| 820 | } | 944 | } |
| 821 | .rendered pre code { background: transparent; border: none; padding: 0; } | 945 | pre code { background: none; border: 0; padding: 0; font-size: inherit; } |
| 822 | .rendered blockquote { | 946 | code.fullsha { color: var(--muted); overflow-wrap: anywhere; } |
| 823 | border-left: 3px solid var(--line); | 947 | pre.message { |
| 824 | margin-left: 0; | 948 | white-space: pre-wrap; |
| 825 | padding-left: var(--sp-4); | 949 | overflow-wrap: anywhere; |
| 826 | color: var(--muted); | ||
| 827 | } | 950 | } |
| 951 | .rendered { max-width: 100%; overflow-wrap: anywhere; } | ||
| 952 | .rendered a { text-decoration: underline; } | ||
| 953 | .prose, .rendered > p, .rendered > ul, .rendered > ol, .rendered > blockquote { max-width: 78ch; } | ||
| 954 | .rendered blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: var(--sp-4); color: var(--muted); } | ||
| 828 | .rendered img { max-width: 100%; } | 955 | .rendered img { max-width: 100%; } |
| 829 | .rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); } | 956 | .rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); } |
| 830 | .rendered table { | 957 | .rendered table { border-collapse: collapse; margin: var(--sp-3) 0; display: block; max-width: 100%; overflow-x: auto; } |
| 831 | border-collapse: collapse; | ||
| 832 | margin: var(--sp-3) 0; | ||
| 833 | display: block; | ||
| 834 | max-width: 100%; | ||
| 835 | overflow-x: auto; | ||
| 836 | } | ||
| 837 | .rendered th, .rendered td { | 958 | .rendered th, .rendered td { |
| 838 | border: 1px solid var(--line); | 959 | border: 1px solid var(--line); |
| 839 | padding: var(--sp-1) var(--sp-3); | 960 | padding: var(--sp-1) var(--sp-3); |
| @@ -841,129 +962,158 @@ button.linklike:hover { text-decoration: underline; filter: none; } | |||
| 841 | overflow-wrap: normal; /* scroll the table, don't shatter words */ | 962 | overflow-wrap: normal; /* scroll the table, don't shatter words */ |
| 842 | } | 963 | } |
| 843 | .rendered th { background: var(--surface); font-weight: 600; } | 964 | .rendered th { background: var(--surface); font-weight: 600; } |
| 965 | /* GFM task lists: the box sits in the line, sized to the prose */ | ||
| 966 | .rendered li input[type="checkbox"] { width: 0.9em; height: 0.9em; margin: 0 0.35em 0 0; vertical-align: -0.05em; background-size: 0.7em; } | ||
| 967 | .rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; } | ||
| 844 | .blobimage { text-align: center; } | 968 | .blobimage { text-align: center; } |
| 845 | .blobimage img { | 969 | .blobimage img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); } |
| 846 | max-width: 100%; | ||
| 847 | border: 1px solid var(--faint); | ||
| 848 | border-radius: var(--r-md); | ||
| 849 | background: var(--surface); | ||
| 850 | } | ||
| 851 | 970 | ||
| 852 | pre.message { | 971 | /* ---- two-column: conversation and aside ---- */ |
| 853 | background: var(--code-bg); | 972 | .withaside { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--sp-6); align-items: start; } |
| 973 | .withaside .mainside { min-width: 0; } | ||
| 974 | aside.aside { font-size: var(--fs-2); } | ||
| 975 | .aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; } | ||
| 976 | .aside .grp:first-child { border-top: 0; padding-top: 0; } | ||
| 977 | .aside h2 { | ||
| 978 | margin: 0 0 var(--sp-2); | ||
| 979 | font-size: var(--fs-0); | ||
| 980 | font-weight: 500; | ||
| 981 | letter-spacing: 0.08em; | ||
| 982 | text-transform: uppercase; | ||
| 983 | color: var(--muted); | ||
| 984 | } | ||
| 985 | .aside .row { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-1); flex-wrap: wrap; } | ||
| 986 | .aside .row:last-child { margin-bottom: 0; } | ||
| 987 | /* a row's second line: when it happened, under what it happened to */ | ||
| 988 | .aside .row .sub { flex-basis: 100%; padding-left: 14px; color: var(--muted); font-size: var(--fs-1); } | ||
| 989 | .aside .row:has(.sub) { margin-bottom: var(--sp-2); } | ||
| 990 | .aside .none { color: var(--muted); } | ||
| 991 | .dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral); margin-right: 2px; vertical-align: middle; } | ||
| 992 | .dot.ok { background: var(--ok); } | ||
| 993 | .dot.bad { background: var(--bad); } | ||
| 994 | .dot.pend { background: var(--mark); } | ||
| 995 | .ok { color: var(--ok); } | ||
| 996 | .bad { color: var(--bad); } | ||
| 997 | form.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); } | ||
| 998 | form.actions button { flex: 1 1 auto; } | ||
| 999 | form.actions select, form.actions textarea { width: 100%; } | ||
| 1000 | .feedline { margin-bottom: var(--sp-2); } | ||
| 1001 | |||
| 1002 | /* ---- comments and threads ---- */ | ||
| 1003 | article.comment { | ||
| 1004 | max-width: 48rem; | ||
| 854 | border: 1px solid var(--line); | 1005 | border: 1px solid var(--line); |
| 855 | padding: var(--sp-3) var(--sp-4); | 1006 | border-radius: var(--r-card); |
| 856 | border-radius: var(--r-md); | 1007 | margin: var(--sp-4) 0; |
| 857 | white-space: pre-wrap; | 1008 | overflow: hidden; |
| 858 | overflow-wrap: anywhere; | ||
| 859 | } | 1009 | } |
| 860 | 1010 | article.comment .commenthead { | |
| 861 | /* repo facts: the counts a visitor sizes a project up with */ | 1011 | display: flex; |
| 862 | .teambody { padding: var(--sp-3); background: var(--bg); } | 1012 | gap: var(--sp-2); |
| 863 | .teambody .memberchip { margin-right: var(--sp-2); } | 1013 | flex-wrap: wrap; |
| 864 | 1014 | background: var(--surface); | |
| 865 | form.logfilter { | 1015 | border-bottom: 1px solid var(--line); |
| 866 | display: flex; align-items: center; gap: var(--sp-2); | 1016 | padding: var(--sp-2) var(--sp-4); |
| 867 | margin: 0 0 var(--sp-4); flex-wrap: wrap; | 1017 | margin: 0; |
| 1018 | font-size: var(--fs-1); | ||
| 1019 | color: var(--muted); | ||
| 868 | } | 1020 | } |
| 869 | form.logfilter input { flex: 1; min-width: 12rem; max-width: 28rem; } | 1021 | article.comment .commenthead b { color: var(--fg); font-weight: 500; } |
| 1022 | article.comment .commenthead .when { color: var(--muted); } | ||
| 1023 | article.comment .rendered { padding: var(--sp-3) var(--sp-4); } | ||
| 1024 | article.comment .rendered > :first-child { margin-top: 0; } | ||
| 1025 | article.comment .rendered > :last-child { margin-bottom: 0; } | ||
| 1026 | a.authorlink { color: var(--fg); font-weight: 500; } | ||
| 1027 | a.authorlink:hover { color: var(--link); } | ||
| 870 | 1028 | ||
| 871 | /* account settings */ | 1029 | .syscomment { |
| 872 | table.keys td { padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; } | 1030 | max-width: 48rem; |
| 873 | /* these tables sit flush with the page text, so the header row drops the | 1031 | color: var(--muted); |
| 874 | left padding the card-style listings use */ | 1032 | font-size: var(--fs-1); |
| 875 | table.keys tr.cols th { padding-left: 0; background: transparent; } | 1033 | margin: 0 0 var(--sp-4) var(--sp-3); |
| 876 | table.keys td.mono, .mono { font-family: var(--mono); font-size: var(--fs-1); overflow-wrap: anywhere; } | 1034 | padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); |
| 877 | table.keys td.act { text-align: right; } | 1035 | border-left: 2px solid var(--faint); |
| 878 | ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; } | ||
| 879 | ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; } | ||
| 880 | form.setform.stack { display: block; } | ||
| 881 | form.setform.stack textarea, form.setform.stack select { width: 100%; max-width: 48rem; display: block; margin-bottom: var(--sp-2); } | ||
| 882 | p.notice { | ||
| 883 | border-left: 3px solid var(--ok); | ||
| 884 | background: var(--hover); | ||
| 885 | padding: var(--sp-2) var(--sp-3); | ||
| 886 | margin: 0 0 var(--sp-4); | ||
| 887 | } | 1036 | } |
| 1037 | .syscomment p { display: inline; margin: 0; } | ||
| 888 | 1038 | ||
| 889 | .facts { margin: 0 0 var(--sp-4); } | 1039 | .thread { |
| 890 | .facts .counts { | 1040 | border: 1px solid var(--faint); |
| 891 | display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); | 1041 | border-left: 3px solid var(--link); |
| 892 | margin: 0 0 var(--sp-3); font-size: var(--fs-2); | 1042 | border-radius: var(--r-ctl); |
| 1043 | padding: var(--sp-2) var(--sp-4); | ||
| 1044 | margin: var(--sp-2) 0 var(--sp-2) var(--sp-6); | ||
| 893 | } | 1045 | } |
| 894 | .facts .counts a { color: var(--fg); text-decoration: none; } | 1046 | .thread.resolved { border-left-color: var(--ok); opacity: 0.75; } |
| 895 | .facts .counts a:hover { color: var(--accent); text-decoration: underline; } | 1047 | /* an unsubmitted comment is the viewer's own note, not the conversation */ |
| 896 | .facts .counts .fact { color: var(--muted); } | 1048 | .thread.pending { border-left-color: var(--neutral); border-left-style: dashed; } |
| 897 | .facts .counts strong { font-weight: 600; } | 1049 | .thread.stale { border-left-color: var(--warn); } |
| 1050 | .thread.composing { border-left-color: var(--mark); } | ||
| 1051 | .thread:target { outline: 2px solid var(--mark); outline-offset: 2px; } | ||
| 1052 | .thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; } | ||
| 1053 | .thread .when { color: var(--muted); } | ||
| 1054 | .thread .rendered p { margin: var(--sp-1) 0; } | ||
| 1055 | .thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; } | ||
| 1056 | .thread details.threadreply { margin: var(--sp-2) 0 0; } | ||
| 1057 | .thread details.threadreply > summary { color: var(--link); font-size: var(--fs-1); cursor: pointer; } | ||
| 1058 | .thread textarea { width: 100%; } | ||
| 1059 | .thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; } | ||
| 1060 | form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); } | ||
| 898 | 1061 | ||
| 899 | .langbar { | 1062 | nav.subtabs { |
| 900 | display: flex; height: 0.5rem; margin: 0 0 var(--sp-2); | 1063 | display: flex; |
| 901 | border-radius: var(--r-sm); overflow: hidden; background: var(--faint); | 1064 | gap: var(--sp-4); |
| 902 | } | 1065 | border-bottom: 1px solid var(--line); |
| 903 | .langbar .lang { display: block; min-width: 2px; } | 1066 | margin: 0 0 var(--sp-4); |
| 904 | .langs { | ||
| 905 | display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); | ||
| 906 | margin: 0 0 var(--sp-3); font-size: var(--fs-1); | ||
| 907 | } | 1067 | } |
| 908 | .langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); } | 1068 | nav.subtabs a { |
| 909 | .langs .muted { color: var(--muted); } | 1069 | display: inline-flex; |
| 910 | .langs .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; } | 1070 | align-items: center; |
| 911 | /* named where it reads as the language's own color, neutral otherwise */ | 1071 | gap: var(--sp-1); |
| 912 | .lang { background: var(--neutral); } | 1072 | padding: var(--sp-2) 0 10px; |
| 913 | .lang-go { background: #00add8; } | 1073 | color: var(--muted); |
| 914 | .lang-rust { background: #dea584; } | 1074 | font-size: var(--fs-2); |
| 915 | .lang-c, .lang-c- { background: #555555; } | 1075 | border-bottom: 2px solid transparent; |
| 916 | .lang-python { background: #3572a5; } | 1076 | margin-bottom: -1px; |
| 917 | .lang-javascript { background: #f1e05a; } | ||
| 918 | .lang-typescript { background: #3178c6; } | ||
| 919 | .lang-shell { background: #89e051; } | ||
| 920 | .lang-ruby { background: #701516; } | ||
| 921 | .lang-java { background: #b07219; } | ||
| 922 | .lang-swift { background: #f05138; } | ||
| 923 | .lang-html { background: #e34c26; } | ||
| 924 | .lang-css { background: #563d7c; } | ||
| 925 | .lang-org { background: #77aa99; } | ||
| 926 | .lang-markdown { background: #083fa1; } | ||
| 927 | .lang-emacs-lisp { background: #c065db; } | ||
| 928 | .lang-nix { background: #7e7eff; } | ||
| 929 | .lang-sql { background: #e38c00; } | ||
| 930 | |||
| 931 | .contribs { | ||
| 932 | display: flex; flex-wrap: wrap; align-items: baseline; | ||
| 933 | gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); | ||
| 934 | } | 1077 | } |
| 935 | .contribs .label { color: var(--muted); } | 1078 | nav.subtabs a:hover { color: var(--fg); text-decoration: none; } |
| 1079 | nav.subtabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); } | ||
| 1080 | nav.subtabs a i { font-style: normal; color: var(--muted); margin-left: 4px; } | ||
| 1081 | |||
| 1082 | /* ---- diffs and code ---- */ | ||
| 1083 | p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); } | ||
| 1084 | p.diffstat .add { color: var(--ok); } | ||
| 1085 | p.diffstat .del { color: var(--bad); } | ||
| 936 | 1086 | ||
| 937 | /* diffs: one foldable section per file, a table so the line-number | ||
| 938 | gutters stay put while the code scrolls */ | ||
| 939 | details.difffold { | 1087 | details.difffold { |
| 940 | border: 1px solid var(--line); | 1088 | border: 1px solid var(--line); |
| 941 | border-radius: var(--r-md); | 1089 | border-radius: var(--r-card); |
| 942 | margin: 0 0 var(--sp-3); | 1090 | margin: 0 0 var(--sp-3); |
| 943 | background: var(--code-bg); | 1091 | background: var(--inset); |
| 1092 | overflow: hidden; | ||
| 944 | } | 1093 | } |
| 945 | details.difffold summary { | 1094 | details.difffold summary { |
| 946 | cursor: pointer; | ||
| 947 | display: flex; | 1095 | display: flex; |
| 948 | align-items: baseline; | 1096 | align-items: baseline; |
| 949 | gap: var(--sp-3); | 1097 | gap: var(--sp-3); |
| 950 | padding: var(--sp-2) var(--sp-3); | 1098 | padding: var(--sp-2) var(--sp-3); |
| 951 | list-style: none; | 1099 | background: var(--surface); |
| 952 | font-size: var(--fs-2); | 1100 | font-size: var(--fs-2); |
| 1101 | cursor: pointer; | ||
| 1102 | list-style: none; | ||
| 953 | } | 1103 | } |
| 954 | details.difffold[open] summary { border-bottom: 1px solid var(--line); } | 1104 | details.difffold[open] summary { border-bottom: 1px solid var(--line); } |
| 955 | details.difffold summary::-webkit-details-marker { display: none; } | 1105 | details.difffold summary::-webkit-details-marker { display: none; } |
| 956 | /* flex summaries lose the native disclosure marker; draw our own */ | 1106 | /* flex summaries lose the native disclosure marker; draw our own */ |
| 957 | details.difffold summary::before { content: "\25b8"; color: var(--muted); } | 1107 | details.difffold summary::before { content: "\25b8"; color: var(--muted); } |
| 958 | details.difffold[open] summary::before { content: "\25be"; } | 1108 | details.difffold[open] summary::before { content: "\25be"; } |
| 959 | details.difffold summary:hover { background: var(--fill-subtle); } | 1109 | details.difffold summary:hover { background: var(--hover); } |
| 960 | summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; } | 1110 | details.difffold summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; } |
| 961 | summary .fpath .was { color: var(--muted); } | 1111 | details.difffold summary .fpath .was { color: var(--muted); } |
| 962 | summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; } | 1112 | details.difffold summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; } |
| 963 | details.difffold summary .add { color: var(--ok); } | 1113 | details.difffold summary .add { color: var(--ok); } |
| 964 | details.difffold summary .del { color: var(--bad); } | 1114 | details.difffold summary .del { color: var(--bad); } |
| 965 | details.difffold > .none { padding: var(--sp-3); margin: 0; } | 1115 | details.difffold > .none { padding: var(--sp-3); margin: 0; } |
| 966 | details.difffold .tablewrap { border-radius: 0 0 var(--r-md) var(--r-md); } | 1116 | details.difffold .tablewrap { background: none; border: 0; border-radius: 0; } |
| 967 | 1117 | ||
| 968 | table.difftable { | 1118 | table.difftable { |
| 969 | border-collapse: collapse; | 1119 | border-collapse: collapse; |
| @@ -972,12 +1122,8 @@ table.difftable { | |||
| 972 | font-size: var(--fs-1); | 1122 | font-size: var(--fs-1); |
| 973 | line-height: 1.5; | 1123 | line-height: 1.5; |
| 974 | } | 1124 | } |
| 975 | table.difftable td { | 1125 | table.difftable td { border: 0; padding: 0; vertical-align: top; font-size: inherit; } |
| 976 | border: 0; | 1126 | table.difftable tbody tr:hover td { background: none; } |
| 977 | padding: 0; | ||
| 978 | vertical-align: top; | ||
| 979 | font-size: inherit; | ||
| 980 | } | ||
| 981 | table.difftable td.ln { | 1127 | table.difftable td.ln { |
| 982 | width: 1%; | 1128 | width: 1%; |
| 983 | min-width: 2.5rem; | 1129 | min-width: 2.5rem; |
| @@ -988,13 +1134,9 @@ table.difftable td.ln { | |||
| 988 | border-right: 1px solid var(--line); | 1134 | border-right: 1px solid var(--line); |
| 989 | white-space: nowrap; | 1135 | white-space: nowrap; |
| 990 | } | 1136 | } |
| 991 | /* not .code: that class is the blob/code-block style and carries its own | 1137 | /* not .code: that class carries its own ground, which painted over the |
| 992 | background, which painted over every row tint */ | 1138 | row tints */ |
| 993 | table.difftable td.src { | 1139 | table.difftable td.src { padding: 0 var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; } |
| 994 | padding: 0 var(--sp-3); | ||
| 995 | white-space: pre-wrap; | ||
| 996 | overflow-wrap: anywhere; | ||
| 997 | } | ||
| 998 | /* the marker is decoration, so it lives in CSS and stays out of a copied | 1140 | /* the marker is decoration, so it lives in CSS and stays out of a copied |
| 999 | selection */ | 1141 | selection */ |
| 1000 | table.difftable tr.add td.src::before { content: "+"; color: var(--ok); } | 1142 | table.difftable tr.add td.src::before { content: "+"; color: var(--ok); } |
| @@ -1005,569 +1147,333 @@ table.difftable tr.del { background: var(--diff-del); } | |||
| 1005 | table.difftable tr.hunk td, table.difftable tr.dmeta td { | 1147 | table.difftable tr.hunk td, table.difftable tr.dmeta td { |
| 1006 | color: var(--muted); | 1148 | color: var(--muted); |
| 1007 | padding: var(--sp-1) var(--sp-3); | 1149 | padding: var(--sp-1) var(--sp-3); |
| 1008 | background: var(--fill-subtle); | 1150 | background: var(--surface); |
| 1009 | border-top: 1px solid var(--line); | 1151 | border-top: 1px solid var(--line); |
| 1010 | border-bottom: 1px solid var(--line); | 1152 | border-bottom: 1px solid var(--line); |
| 1011 | } | 1153 | } |
| 1012 | table.difftable tr.hunk td.src { color: var(--accent); } | 1154 | table.difftable tr.hunk td.src { color: var(--link); } |
| 1013 | table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--bg); } | 1155 | table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--canvas); } |
| 1014 | /* a line number is the handle for commenting on that line; it stays a | 1156 | /* a line number is the handle for commenting on that line; it stays a |
| 1015 | plain number until pointed at, so the gutter does not read as a wall of | 1157 | plain number until pointed at, so the gutter is not a wall of links */ |
| 1016 | links */ | ||
| 1017 | table.difftable td.ln a.cmt { color: inherit; text-decoration: none; } | 1158 | table.difftable td.ln a.cmt { color: inherit; text-decoration: none; } |
| 1018 | table.difftable td.ln a.cmt:hover, | 1159 | table.difftable td.ln a.cmt:hover, |
| 1019 | table.difftable td.ln a.cmt:focus { color: var(--accent); text-decoration: underline; } | 1160 | table.difftable td.ln a.cmt:focus { color: var(--link); text-decoration: underline; } |
| 1161 | /* A linked line: f2-n17 on a diff, L17 on a file (see issue 118). */ | ||
| 1162 | .difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); } | ||
| 1163 | .difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); } | ||
| 1164 | /* chroma writes the highlighted spans; the container only supplies the | ||
| 1165 | ground and the face */ | ||
| 1166 | .chroma { font-family: var(--mono); background: none; } | ||
| 1167 | |||
| 1168 | .blame { border-radius: var(--r-card); } | ||
| 1169 | .blamehunk { display: flex; gap: var(--sp-3); border-top: 1px solid var(--line); align-items: flex-start; } | ||
| 1170 | .blamehunk:first-child { border-top: 0; } | ||
| 1171 | .blameinfo { flex: none; width: 17rem; min-width: 0; padding: var(--sp-2) var(--sp-3); } | ||
| 1172 | .blameinfo .subject { margin: 0; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | ||
| 1173 | .blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); } | ||
| 1174 | .blamecode { | ||
| 1175 | flex: 1; | ||
| 1176 | margin: 0; | ||
| 1177 | padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; | ||
| 1178 | background: var(--inset); | ||
| 1179 | border: 0; | ||
| 1180 | border-left: 1px solid var(--line); | ||
| 1181 | border-radius: 0; | ||
| 1182 | overflow-x: auto; | ||
| 1183 | align-self: stretch; | ||
| 1184 | } | ||
| 1185 | .lineno { | ||
| 1186 | display: inline-block; | ||
| 1187 | min-width: 3.5em; | ||
| 1188 | padding-right: 1em; | ||
| 1189 | text-align: right; | ||
| 1190 | color: var(--muted); | ||
| 1191 | user-select: none; | ||
| 1192 | } | ||
| 1020 | 1193 | ||
| 1021 | /* badges: signature and check states. Semantic colors stay distinct: | 1194 | /* ---- chips and badges ---- */ |
| 1022 | green verified/success, amber pending/stale, red bad/failure, muted | 1195 | .chip, .badge { |
| 1023 | unsigned. */ | 1196 | --c: var(--neutral); |
| 1024 | .badge, .chip { | ||
| 1025 | --chip: var(--neutral); | ||
| 1026 | display: inline-block; | 1197 | display: inline-block; |
| 1027 | padding: 0.05rem 0.55rem; | 1198 | padding: 1px 8px; |
| 1028 | border-radius: var(--r-pill); | 1199 | border-radius: var(--r-ctl); |
| 1029 | font-size: var(--fs-0); | 1200 | font-size: var(--fs-0); |
| 1030 | font-weight: 500; | 1201 | font-weight: 500; |
| 1031 | line-height: 1.5; | 1202 | line-height: 1.5; |
| 1032 | color: var(--chip); | 1203 | color: var(--c); |
| 1033 | border: 1px solid color-mix(in srgb, var(--chip) 35%, transparent); | 1204 | border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); |
| 1034 | background: color-mix(in srgb, var(--chip) 7%, transparent); | 1205 | background: color-mix(in srgb, var(--c) 10%, transparent); |
| 1035 | white-space: nowrap; | 1206 | white-space: nowrap; |
| 1036 | vertical-align: middle; | 1207 | vertical-align: middle; |
| 1037 | } | 1208 | } |
| 1038 | .chip-open { --chip: var(--ok); } | 1209 | .chip-open { --c: var(--ok); } |
| 1039 | .chip-closed { --chip: var(--bad); } | 1210 | .chip-closed { --c: var(--bad); } |
| 1040 | .chip-merged, .chip-done { --chip: var(--done); } | 1211 | .chip-merged, .chip-done { --c: var(--done); } |
| 1041 | .chip-neutral, .chip-source_gone { --chip: var(--neutral); } | 1212 | .chip-neutral, .chip-source_gone { --c: var(--neutral); } |
| 1042 | .chip-stale { --chip: var(--warn); } | 1213 | .chip-stale { --c: var(--warn); } |
| 1214 | .chip.topic { --c: var(--link); } | ||
| 1215 | .chip.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 18%, transparent); } | ||
| 1216 | /* a label carries its own colour inline, from the label's hex */ | ||
| 1043 | .chip.label { font-weight: 500; } | 1217 | .chip.label { font-weight: 500; } |
| 1044 | .chip.topic { --chip: var(--accent); } | 1218 | .badge-verified { --c: var(--ok); } |
| 1045 | .repohead .topics { margin: 0 0 var(--sp-2); } | 1219 | .badge-unsigned { --c: var(--neutral); } |
| 1046 | .badge-verified { --chip: var(--ok); } | 1220 | .badge-signed_unknown_key, .badge-signed_key_expired { --c: var(--warn); } |
| 1047 | .badge-unsigned { --chip: var(--neutral); } | 1221 | .badge-signed_email_mismatch, .badge-signed_key_revoked, .badge-bad_signature { --c: var(--bad); } |
| 1048 | .badge-signed_unknown_key { --chip: var(--warn); } | 1222 | .badge.check-success, .chip.check-success { --c: var(--ok); } |
| 1049 | .badge-signed_email_mismatch { --chip: var(--bad); } | 1223 | .badge.check-pending, .chip.check-pending, |
| 1050 | .badge-signed_key_expired { --chip: var(--warn); } | 1224 | .badge.check-running, .chip.check-running { --c: var(--warn); } |
| 1051 | .badge-signed_key_revoked { --chip: var(--bad); } | 1225 | .badge.check-failure, .chip.check-failure, |
| 1052 | .badge-bad_signature { --chip: var(--bad); } | 1226 | .badge.check-error, .chip.check-error { --c: var(--bad); } |
| 1053 | .badge.check-success { --chip: var(--ok); } | 1227 | .badge.check-cancelled, .chip.check-cancelled, |
| 1054 | .badge.check-pending { --chip: var(--warn); } | 1228 | .badge.check-skipped, .chip.check-skipped { --c: var(--neutral); } |
| 1055 | .badge.check-failure, .badge.check-error { --chip: var(--bad); } | ||
| 1056 | .badge.check-cancelled, .chip.check-cancelled { --chip: var(--neutral); } | ||
| 1057 | .badge.check-skipped, .chip.check-skipped { --chip: var(--neutral); } | ||
| 1058 | .badge.check-running, .chip.check-running { --chip: var(--warn); } | ||
| 1059 | .chip.check-success { --chip: var(--ok); } | ||
| 1060 | .chip.check-pending { --chip: var(--warn); } | ||
| 1061 | .chip.check-failure { --chip: var(--bad); } | ||
| 1062 | pre.buildlog { max-height: 40rem; overflow: auto; } | ||
| 1063 | span.check-success { color: var(--ok); } | 1229 | span.check-success { color: var(--ok); } |
| 1064 | span.check-pending { color: var(--warn); } | 1230 | span.check-pending, span.check-running { color: var(--warn); } |
| 1065 | span.check-failure, span.check-error { color: var(--bad); } | 1231 | span.check-failure, span.check-error { color: var(--bad); } |
| 1066 | 1232 | ||
| 1067 | /* issue and MR listings */ | 1233 | a.memberchip { |
| 1068 | .listhead { | 1234 | display: inline-block; |
| 1069 | display: flex; | ||
| 1070 | align-items: baseline; | ||
| 1071 | gap: var(--sp-4); | ||
| 1072 | flex-wrap: wrap; | ||
| 1073 | } | ||
| 1074 | .listhead h2 { margin-bottom: var(--sp-2); } | ||
| 1075 | nav.filters { display: flex; gap: var(--sp-1); } | ||
| 1076 | nav.filters a { | ||
| 1077 | color: var(--muted); | ||
| 1078 | font-size: var(--fs-2); | ||
| 1079 | padding: 0.05rem var(--sp-2); | ||
| 1080 | border-radius: var(--r-pill); | ||
| 1081 | } | ||
| 1082 | nav.filters a:hover { color: var(--fg); background: var(--hover); text-decoration: none; } | ||
| 1083 | nav.filters a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); } | ||
| 1084 | |||
| 1085 | ul.issuelist { | ||
| 1086 | list-style: none; | ||
| 1087 | margin: var(--sp-2) 0; | ||
| 1088 | padding: 0; | ||
| 1089 | background: var(--surface); | ||
| 1090 | border: 1px solid var(--line); | ||
| 1091 | border-radius: var(--r-lg); | ||
| 1092 | overflow: hidden; | ||
| 1093 | } | ||
| 1094 | ul.issuelist li { | ||
| 1095 | display: flex; | ||
| 1096 | align-items: baseline; | ||
| 1097 | gap: var(--sp-3); | ||
| 1098 | padding: var(--sp-3) var(--sp-4); | ||
| 1099 | border-bottom: 1px solid var(--faint); | ||
| 1100 | } | ||
| 1101 | ul.issuelist li:last-child { border-bottom: none; } | ||
| 1102 | ul.issuelist li:hover { background: var(--hover); } | ||
| 1103 | ul.issuelist li.empty { display: block; color: var(--muted); } | ||
| 1104 | ul.issuelist .issuemain { flex: 1; min-width: 0; } | ||
| 1105 | ul.issuelist p { margin: 0; } | ||
| 1106 | ul.issuelist .title a { color: var(--fg); font-weight: 550; } | ||
| 1107 | ul.issuelist .title a:hover { color: var(--accent); } | ||
| 1108 | |||
| 1109 | /* releases */ | ||
| 1110 | article.release { | ||
| 1111 | background: var(--surface); | ||
| 1112 | border: 1px solid var(--line); | 1235 | border: 1px solid var(--line); |
| 1113 | border-radius: var(--r-lg); | 1236 | border-radius: var(--r-ctl); |
| 1114 | padding: var(--sp-3) var(--sp-4); | 1237 | padding: 1px 8px; |
| 1115 | margin: var(--sp-4) 0; | 1238 | margin: 0 2px 2px 0; |
| 1239 | color: var(--fg); | ||
| 1240 | font-size: var(--fs-1); | ||
| 1116 | } | 1241 | } |
| 1117 | .releasehead { background: none; border: 0; padding: 0; } | 1242 | a.memberchip:hover { text-decoration: none; border-color: var(--link); color: var(--link); } |
| 1118 | .releasehead h3 { margin: 0 0 var(--sp-1); } | 1243 | a.memberchip .role { color: var(--muted); } |
| 1119 | .releasehead .meta { margin: 0 0 var(--sp-2); } | ||
| 1120 | table.assets { margin-top: var(--sp-2); } | ||
| 1121 | table.assets td.size { color: var(--muted); white-space: nowrap; text-align: right; } | ||
| 1122 | table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); } | ||
| 1123 | 1244 | ||
| 1124 | /* milestones */ | 1245 | .pathbar { display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); flex-wrap: wrap; font-size: var(--fs-2); } |
| 1125 | ul.milestonelist { | 1246 | .pathbar .spacer { flex: 1; } |
| 1126 | list-style: none; | 1247 | .pathbar .actions { display: flex; gap: var(--sp-2); } |
| 1127 | margin: var(--sp-2) 0; | 1248 | .crumbs { color: var(--muted); } |
| 1128 | padding: 0; | 1249 | .crumbs a { color: var(--link); } |
| 1250 | .crumbs strong { color: var(--fg); } | ||
| 1251 | .refchip { | ||
| 1252 | display: inline-flex; | ||
| 1253 | align-items: center; | ||
| 1254 | gap: 6px; | ||
| 1255 | height: 32px; | ||
| 1256 | padding: 0 10px; | ||
| 1257 | background: var(--canvas); | ||
| 1129 | border: 1px solid var(--line); | 1258 | border: 1px solid var(--line); |
| 1130 | border-radius: var(--r-lg); | 1259 | border-radius: var(--r-ctl); |
| 1131 | overflow: hidden; | 1260 | font-family: var(--mono); |
| 1132 | } | ||
| 1133 | ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); } | ||
| 1134 | ul.milestonelist li:last-child { border-bottom: none; } | ||
| 1135 | ul.milestonelist li.empty { color: var(--muted); } | ||
| 1136 | ul.milestonelist p { margin: 0; } | ||
| 1137 | ul.milestonelist .title { font-weight: 550; } | ||
| 1138 | .progress { | ||
| 1139 | height: 6px; | ||
| 1140 | background: var(--faint); | ||
| 1141 | border-radius: var(--r-pill); | ||
| 1142 | margin-top: var(--sp-2); | ||
| 1143 | overflow: hidden; | ||
| 1144 | max-width: 24rem; | ||
| 1145 | } | ||
| 1146 | .progress .bar { height: 100%; background: var(--ok); } | ||
| 1147 | .listhead .spacer { flex: 1; } | ||
| 1148 | |||
| 1149 | /* issue / MR detail */ | ||
| 1150 | h2.issuetitle { margin-bottom: var(--sp-1); font-size: var(--fs-5); } | ||
| 1151 | .issuenumber { color: var(--muted); font-weight: 400; } | ||
| 1152 | .issuemeta { color: var(--muted); font-size: var(--fs-2); margin-top: 0; } | ||
| 1153 | .review { font-size: var(--fs-2); } | ||
| 1154 | |||
| 1155 | /* comment cards; discussion stays at a readable measure */ | ||
| 1156 | article.comment, form.commentform { | ||
| 1157 | max-width: 48rem; | ||
| 1158 | } | ||
| 1159 | article.comment { | ||
| 1160 | border: 1px solid var(--faint); | ||
| 1161 | border-radius: var(--r-lg); | ||
| 1162 | margin: var(--sp-4) 0; | ||
| 1163 | } | ||
| 1164 | article.comment .commenthead { | ||
| 1165 | background: var(--surface); | ||
| 1166 | border-bottom: 1px solid var(--faint); | ||
| 1167 | border-radius: var(--r-lg) var(--r-lg) 0 0; | ||
| 1168 | padding: var(--sp-2) var(--sp-4); | ||
| 1169 | font-size: var(--fs-2); | ||
| 1170 | } | ||
| 1171 | article.comment .commenthead .when { color: var(--muted); } | ||
| 1172 | article.comment .rendered { padding: 0 var(--sp-4); } | ||
| 1173 | article.comment .rendered > :first-child { margin-top: var(--sp-3); } | ||
| 1174 | article.comment .rendered > :last-child { margin-bottom: var(--sp-3); } | ||
| 1175 | form.commentform { margin: var(--sp-4) 0; } | ||
| 1176 | details.editbox { margin: var(--sp-2) 0; max-width: 48rem; } | ||
| 1177 | details.editbox summary { cursor: pointer; color: var(--muted); font-size: var(--fs-2); } | ||
| 1178 | details.editbox summary:hover { color: var(--accent); } | ||
| 1179 | details.editbox input[type="text"] { width: 100%; } | ||
| 1180 | .syscomment { | ||
| 1181 | max-width: 48rem; | ||
| 1182 | color: var(--muted); | ||
| 1183 | font-size: var(--fs-2); | 1261 | font-size: var(--fs-2); |
| 1184 | margin: var(--sp-3) 0; | 1262 | font-weight: 500; |
| 1185 | padding-left: var(--sp-4); | ||
| 1186 | border-left: 3px solid var(--faint); | ||
| 1187 | } | ||
| 1188 | .syscomment p { display: inline; margin: 0; } | ||
| 1189 | |||
| 1190 | /* review threads under diff lines */ | ||
| 1191 | .thread { | ||
| 1192 | border: 1px solid var(--faint); | ||
| 1193 | border-left: 3px solid var(--accent); | ||
| 1194 | border-radius: var(--r-md); | ||
| 1195 | padding: var(--sp-2) var(--sp-4); | ||
| 1196 | margin: var(--sp-2) 0 var(--sp-2) var(--sp-6); | ||
| 1197 | } | ||
| 1198 | .thread.resolved { border-left-color: var(--ok); opacity: 0.75; } | ||
| 1199 | /* an unsubmitted comment is the viewer's own note, not the conversation */ | ||
| 1200 | .thread.pending { border-left-color: var(--neutral); border-left-style: dashed; } | ||
| 1201 | .thread.stale { border-left-color: var(--warn); } | ||
| 1202 | .thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; } | ||
| 1203 | .thread .when { color: var(--muted); } | ||
| 1204 | .thread .rendered p { margin: var(--sp-1) 0; } | ||
| 1205 | .thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; } | ||
| 1206 | .thread.composing { border-left-color: var(--mark); } | ||
| 1207 | .thread details.threadreply { margin: var(--sp-2) 0 0; } | ||
| 1208 | .thread details.threadreply > summary { color: var(--accent); font-size: var(--fs-1); cursor: pointer; } | ||
| 1209 | .thread textarea { width: 100%; } | ||
| 1210 | .thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; } | ||
| 1211 | |||
| 1212 | /* forms: every control shares one shell, so a select reads as a sibling | ||
| 1213 | of the text inputs beside it rather than as an OS control dropped in */ | ||
| 1214 | input, textarea, button, select { font: inherit; color: inherit; } | ||
| 1215 | input[type="text"], input[type="search"], input[type="email"], | ||
| 1216 | input[type="password"], input:not([type]), textarea, select { | ||
| 1217 | background: var(--bg); | ||
| 1218 | color: var(--fg); | 1263 | color: var(--fg); |
| 1219 | border: 1px solid var(--line); | ||
| 1220 | border-radius: var(--r-md); | ||
| 1221 | padding: var(--sp-2) var(--sp-3); | ||
| 1222 | line-height: 1.4; | ||
| 1223 | } | ||
| 1224 | textarea { width: 100%; resize: vertical; } | ||
| 1225 | textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); } | ||
| 1226 | /* the native arrow cannot be restyled, so draw our own and match the | ||
| 1227 | inputs exactly; --chev carries the stroke colour per scheme */ | ||
| 1228 | select { | ||
| 1229 | appearance: none; | ||
| 1230 | padding-right: 1.9rem; | ||
| 1231 | background-image: var(--chev); | ||
| 1232 | background-repeat: no-repeat; | ||
| 1233 | background-position: right 0.6rem center; | ||
| 1234 | background-size: 0.62rem; | ||
| 1235 | cursor: pointer; | ||
| 1236 | } | 1264 | } |
| 1237 | input:hover, textarea:hover, select:hover { border-color: var(--muted); } | 1265 | details.refmenu { position: relative; } |
| 1238 | /* the global :focus-visible ring covers these; only the border moves */ | 1266 | details.refmenu summary { cursor: pointer; list-style: none; } |
| 1239 | input:focus, textarea:focus, select:focus { border-color: var(--accent); } | 1267 | details.refmenu summary::-webkit-details-marker { display: none; } |
| 1240 | input[type="radio"] { accent-color: var(--fill); } | 1268 | details.refmenu summary::after { content: " \25be"; color: var(--muted); } |
| 1241 | label:has(> input[type="radio"]), label:has(> input[type="checkbox"]), | 1269 | details.refmenu .refdrop { |
| 1242 | label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); } | ||
| 1243 | |||
| 1244 | /* A radio keeps the native control: a circle takes one answer, a square | ||
| 1245 | takes any number, and that shape is the cue that survives greyscale, | ||
| 1246 | high contrast and colour blindness. The checkbox is drawn instead, | ||
| 1247 | because at the size the OS renders it it reads as an afterthought | ||
| 1248 | beside the button it shares a row with. The square is kept square — | ||
| 1249 | the size changes, the cue does not. */ | ||
| 1250 | input[type="checkbox"] { | ||
| 1251 | appearance: none; | ||
| 1252 | flex: none; | ||
| 1253 | /* the height of a text input, a select and a button, so a settings row | ||
| 1254 | ends in one column of controls rather than a button and a speck */ | ||
| 1255 | width: 2.5rem; | ||
| 1256 | height: 2.5rem; | ||
| 1257 | /* an empty box has nothing but its border to announce it, so the border | ||
| 1258 | is --muted rather than the --line the sized controls can afford */ | ||
| 1259 | border: 1px solid var(--muted); | ||
| 1260 | border-radius: var(--r-sm); | ||
| 1261 | background: var(--bg); | ||
| 1262 | cursor: pointer; | ||
| 1263 | } | ||
| 1264 | input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); } | ||
| 1265 | input[type="checkbox"]:checked { | ||
| 1266 | background: var(--fill); | ||
| 1267 | border-color: var(--fill); | ||
| 1268 | /* the mark sits on the blue ground, so it is white in both schemes */ | ||
| 1269 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.4 3.4L11 1.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); | ||
| 1270 | background-repeat: no-repeat; | ||
| 1271 | background-position: center; | ||
| 1272 | background-size: 1.2rem; | ||
| 1273 | } | ||
| 1274 | |||
| 1275 | /* a segmented control for a small, mutually exclusive set: real radios | ||
| 1276 | underneath, so arrow keys and screen readers behave as they always did */ | ||
| 1277 | fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; } | ||
| 1278 | fieldset.segmented legend { | ||
| 1279 | padding: 0; | ||
| 1280 | margin-bottom: var(--sp-2); | ||
| 1281 | color: var(--muted); | ||
| 1282 | font-size: var(--fs-2); | ||
| 1283 | } | ||
| 1284 | fieldset.segmented .options { display: inline-flex; } | ||
| 1285 | fieldset.segmented label { gap: 0; } | ||
| 1286 | fieldset.segmented input { | ||
| 1287 | position: absolute; | 1270 | position: absolute; |
| 1288 | width: 1px; | 1271 | z-index: 10; |
| 1289 | height: 1px; | 1272 | top: calc(100% + 4px); |
| 1290 | opacity: 0; | 1273 | left: 0; |
| 1291 | pointer-events: none; | 1274 | min-width: 12rem; |
| 1292 | } | 1275 | max-height: 20rem; |
| 1293 | fieldset.segmented span { | 1276 | overflow-y: auto; |
| 1294 | display: block; | 1277 | background: var(--canvas); |
| 1295 | padding: var(--sp-2) var(--sp-4); | ||
| 1296 | border: 1px solid var(--line); | 1278 | border: 1px solid var(--line); |
| 1297 | font-size: var(--fs-2); | 1279 | border-radius: var(--r-card); |
| 1298 | cursor: pointer; | 1280 | box-shadow: var(--shadow); |
| 1299 | } | 1281 | padding: var(--sp-1) 0; |
| 1300 | fieldset.segmented label + label span { border-left: 0; } | ||
| 1301 | fieldset.segmented label:first-child span { border-radius: var(--r-sm) 0 0 var(--r-sm); } | ||
| 1302 | fieldset.segmented label:last-child span { border-radius: 0 var(--r-sm) var(--r-sm) 0; } | ||
| 1303 | fieldset.segmented span:hover { border-color: var(--muted); } | ||
| 1304 | fieldset.segmented input:checked + span { | ||
| 1305 | background: var(--fill); | ||
| 1306 | border-color: var(--fill); | ||
| 1307 | color: #ffffff; | ||
| 1308 | font-weight: 600; | ||
| 1309 | } | ||
| 1310 | fieldset.segmented input:focus-visible + span { | ||
| 1311 | outline: 2px solid var(--accent); | ||
| 1312 | outline-offset: 2px; | ||
| 1313 | } | ||
| 1314 | |||
| 1315 | /* remaining input states */ | ||
| 1316 | ::placeholder { color: var(--muted); opacity: 1; } | ||
| 1317 | ::selection { background: var(--fill); color: #ffffff; } | ||
| 1318 | /* :user-invalid, not :invalid — a required field is invalid the moment | ||
| 1319 | the page loads, and colouring it red before anyone has typed is a | ||
| 1320 | scolding, not a hint */ | ||
| 1321 | input:user-invalid, textarea:user-invalid { | ||
| 1322 | border-color: var(--bad); | ||
| 1323 | } | ||
| 1324 | .hint { display: block; color: var(--muted); font-size: var(--fs-1); margin-top: var(--sp-1); } | ||
| 1325 | button { | ||
| 1326 | background: var(--fill); | ||
| 1327 | color: #ffffff; | ||
| 1328 | border: 1px solid var(--fill-edge); | ||
| 1329 | border-radius: var(--r-md); | ||
| 1330 | padding: var(--sp-2) var(--sp-4); | ||
| 1331 | font-weight: 600; | ||
| 1332 | cursor: pointer; | ||
| 1333 | } | 1282 | } |
| 1334 | button:hover { filter: brightness(1.15); } | 1283 | details.refmenu .refdrop a { |
| 1335 | 1284 | display: block; | |
| 1336 | /* 404 */ | 1285 | padding: var(--sp-1) var(--sp-3); |
| 1337 | .notfound { text-align: center; padding: var(--sp-6) 0; } | 1286 | color: var(--fg); |
| 1338 | .notfound .bigcode { | ||
| 1339 | font-family: var(--mono); | 1287 | font-family: var(--mono); |
| 1340 | font-size: var(--fs-7); | 1288 | font-size: var(--fs-1); |
| 1341 | color: var(--faint); | ||
| 1342 | -webkit-text-stroke: 1px var(--line); | ||
| 1343 | margin: 0; | ||
| 1344 | line-height: 1; | ||
| 1345 | } | 1289 | } |
| 1346 | .notfound h1 { margin-top: var(--sp-3); } | 1290 | details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; } |
| 1347 | 1291 | details.refmenu .refdrop a.allrefs { | |
| 1348 | /* footer */ | 1292 | color: var(--link); |
| 1349 | footer { | 1293 | font-family: var(--sans); |
| 1350 | border-top: 1px solid var(--faint); | 1294 | border-top: 1px solid var(--faint); |
| 1351 | padding: var(--sp-4) var(--sp-5) var(--sp-5); | 1295 | margin-top: var(--sp-1); |
| 1352 | width: 100%; | ||
| 1353 | color: var(--muted); | ||
| 1354 | font-size: var(--fs-1); | ||
| 1355 | } | 1296 | } |
| 1356 | footer p { margin: 0; } | ||
| 1357 | footer a { color: var(--muted); text-decoration: underline; } | ||
| 1358 | footer a:hover { color: var(--accent); } | ||
| 1359 | 1297 | ||
| 1360 | /* search */ | 1298 | /* ---- repository facts ---- */ |
| 1361 | form.searchform { | 1299 | .facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0 var(--sp-4); max-width: 72rem; } |
| 1362 | display: flex; | 1300 | .facts h2 { |
| 1363 | gap: var(--sp-2); | 1301 | margin: 0 0 var(--sp-2); |
| 1364 | margin: var(--sp-3) 0 var(--sp-4); | 1302 | font-size: var(--fs-1); |
| 1365 | } | 1303 | font-weight: 500; |
| 1366 | form.searchform input[type="search"] { flex: 1; max-width: 32rem; } | 1304 | letter-spacing: 0.08em; |
| 1367 | form.searchform.compact { margin: 0; } | 1305 | text-transform: uppercase; |
| 1368 | form.searchform.compact input[type="search"] { | 1306 | color: var(--muted); |
| 1369 | padding: var(--sp-1) var(--sp-3); | ||
| 1370 | font-size: var(--fs-2); | ||
| 1371 | min-width: 18rem; | ||
| 1372 | } | ||
| 1373 | ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; } | ||
| 1374 | ul.matchlist li { margin-bottom: var(--sp-3); } | ||
| 1375 | ul.matchlist .matchpath { font-family: var(--mono); font-size: var(--fs-1); } | ||
| 1376 | pre.matchline { | ||
| 1377 | background: var(--code-bg); | ||
| 1378 | border: 1px solid var(--faint); | ||
| 1379 | border-radius: var(--r-md); | ||
| 1380 | padding: var(--sp-1) var(--sp-3); | ||
| 1381 | margin: var(--sp-1) 0 0; | ||
| 1382 | overflow-x: auto; | ||
| 1383 | } | ||
| 1384 | pre.matchline mark { | ||
| 1385 | background: color-mix(in srgb, var(--warn) 25%, transparent); | ||
| 1386 | color: inherit; | ||
| 1387 | border-radius: 2px; | ||
| 1388 | } | 1307 | } |
| 1308 | .clone { margin: 0 0 var(--sp-3); } | ||
| 1309 | .clone label { font-size: var(--fs-1); color: var(--muted); font-weight: 500; margin-bottom: 2px; } | ||
| 1310 | .clone pre { margin-bottom: var(--sp-3); user-select: all; } | ||
| 1311 | .factgrid { display: grid; grid-template-columns: repeat(4, auto); gap: var(--sp-2) var(--sp-4); font-size: var(--fs-2); margin-bottom: var(--sp-3); } | ||
| 1312 | .factgrid b { font-weight: 600; } | ||
| 1313 | .factgrid a { color: var(--fg); } | ||
| 1314 | .factgrid a:hover { color: var(--link); } | ||
| 1315 | .counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); font-size: var(--fs-2); } | ||
| 1316 | .counts a { color: var(--fg); } | ||
| 1317 | .counts a:hover { color: var(--link); } | ||
| 1318 | .counts strong { font-weight: 600; } | ||
| 1319 | .fact { color: var(--muted); } | ||
| 1320 | .langbar { display: flex; height: 8px; margin: 0 0 var(--sp-2); border-radius: var(--r-ctl); overflow: hidden; gap: 1px; background: var(--faint); } | ||
| 1321 | .langbar .lang { display: block; height: 100%; min-width: 2px; } | ||
| 1322 | .langs { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-1); color: var(--muted); } | ||
| 1323 | .langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); } | ||
| 1324 | .langs .dot { width: 8px; height: 8px; } | ||
| 1325 | /* named where it reads as the language's own colour, neutral otherwise */ | ||
| 1326 | .lang { background: var(--neutral); } | ||
| 1327 | .lang-go { background: var(--lang-go); } | ||
| 1328 | .lang-rust { background: var(--lang-rust); } | ||
| 1329 | .lang-c, .lang-c- { background: var(--lang-c); } | ||
| 1330 | .lang-python { background: var(--lang-python); } | ||
| 1331 | .lang-javascript { background: var(--lang-javascript); } | ||
| 1332 | .lang-typescript { background: var(--lang-typescript); } | ||
| 1333 | .lang-shell { background: var(--lang-shell); } | ||
| 1334 | .lang-ruby { background: var(--lang-ruby); } | ||
| 1335 | .lang-java { background: var(--lang-java); } | ||
| 1336 | .lang-swift { background: var(--lang-swift); } | ||
| 1337 | .lang-html { background: var(--lang-html); } | ||
| 1338 | .lang-css { background: var(--lang-css); } | ||
| 1339 | .lang-org { background: var(--lang-org); } | ||
| 1340 | .lang-markdown { background: var(--lang-markdown); } | ||
| 1341 | .lang-emacs-lisp { background: var(--lang-emacs-lisp); } | ||
| 1342 | .lang-nix { background: var(--lang-nix); } | ||
| 1343 | .lang-sql { background: var(--lang-sql); } | ||
| 1344 | .contribs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); } | ||
| 1345 | .contribs .label { color: var(--muted); } | ||
| 1346 | .teambody { padding: var(--sp-3); } | ||
| 1347 | .teambody .memberchip { margin-right: var(--sp-2); } | ||
| 1389 | 1348 | ||
| 1390 | /* wiki */ | 1349 | /* ---- landing ---- */ |
| 1350 | /* the width class on main carries this too; the cap here keeps the page | ||
| 1351 | readable on the templates that do not set one yet */ | ||
| 1352 | .landing { max-width: 48rem; padding: var(--sp-6) 0; } | ||
| 1353 | .landing h1 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); } | ||
| 1354 | .lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); } | ||
| 1355 | pre.quickstart { margin: 0 0 var(--sp-4); } | ||
| 1356 | .shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; box-shadow: var(--shadow); } | ||
| 1357 | .shot img { display: block; width: 100%; } | ||
| 1358 | .facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; } | ||
| 1359 | .facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); } | ||
| 1360 | .facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; } | ||
| 1361 | .routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0 var(--sp-3); } | ||
| 1362 | .explorelink { font-weight: 500; } | ||
| 1363 | |||
| 1364 | /* ---- profile ---- */ | ||
| 1365 | .profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); } | ||
| 1366 | .profilehead h1 { margin: 0 0 var(--sp-1); } | ||
| 1367 | .profilehead .lede { font-size: var(--fs-3); margin: 0 0 var(--sp-1); } | ||
| 1368 | .profilehead .meta { margin: var(--sp-1) 0 0; } | ||
| 1369 | .activity { margin-bottom: var(--sp-5); } | ||
| 1370 | h2 .count { background: none; color: var(--muted); font-weight: 400; font-size: var(--fs-2); margin-left: var(--sp-2); padding: 0; } | ||
| 1371 | /* 53 week columns x 7 day rows, tinted with the link blue */ | ||
| 1372 | .actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); } | ||
| 1373 | .actgraph { display: flex; gap: 3px; width: max-content; } | ||
| 1374 | .actweek { display: flex; flex-direction: column; gap: 3px; } | ||
| 1375 | .actday { width: 11px; height: 11px; border-radius: 2px; background: var(--faint); } | ||
| 1376 | .actday.pad { background: transparent; } | ||
| 1377 | .actday.l0 { background: var(--faint); } | ||
| 1378 | .actday.l1 { background: color-mix(in srgb, var(--link) 25%, var(--canvas)); } | ||
| 1379 | .actday.l2 { background: color-mix(in srgb, var(--link) 50%, var(--canvas)); } | ||
| 1380 | .actday.l3 { background: color-mix(in srgb, var(--link) 75%, var(--canvas)); } | ||
| 1381 | .actday.l4 { background: var(--link); } | ||
| 1382 | |||
| 1383 | /* ---- wiki ---- */ | ||
| 1391 | .wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; } | 1384 | .wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; } |
| 1392 | .wikipage { flex: 1; min-width: 0; } | 1385 | .wikipage { flex: 1; min-width: 0; } |
| 1393 | .wikinav { flex: none; width: 13rem; padding-top: var(--sp-4); } | 1386 | .wikinav { flex: none; width: 14rem; } |
| 1394 | .wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; } | 1387 | .wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; } |
| 1395 | .wikinav li a { display: block; padding: 0.15rem 0; color: var(--fg); } | 1388 | .wikinav li a { |
| 1396 | .wikinav li a:hover { color: var(--accent); text-decoration: none; } | 1389 | display: block; |
| 1397 | .wikinav li a.active { color: var(--accent); font-weight: 550; } | 1390 | padding: 5px var(--sp-2); |
| 1398 | @media (max-width: 40rem) { | 1391 | border-radius: var(--r-ctl); |
| 1399 | /* Column direction + the desktop align-items:flex-start lets .wikipage | 1392 | color: var(--fg); |
| 1400 | take its content's intrinsic width, overflowing the viewport (and | 1393 | font-size: var(--fs-2); |
| 1401 | triggering iOS font inflation). Stretch pins it to the container. */ | ||
| 1402 | .wikilayout { flex-direction: column; align-items: stretch; } | ||
| 1403 | .wikinav { width: auto; padding-top: 0; } | ||
| 1404 | } | 1394 | } |
| 1395 | .wikinav li a:hover { background: var(--hover); color: var(--fg); text-decoration: none; } | ||
| 1396 | .wikinav li a.active { background: var(--surface); color: var(--link); font-weight: 500; } | ||
| 1405 | 1397 | ||
| 1406 | /* blame */ | 1398 | /* ---- misc ---- */ |
| 1407 | .blame { | 1399 | .meta { color: var(--muted); font-size: var(--fs-1); } |
| 1408 | border: 1px solid var(--line); | 1400 | .muted { color: var(--muted); } |
| 1409 | border-radius: var(--r-md); | 1401 | .desc, td.desc { color: var(--muted); } |
| 1410 | overflow: hidden; | 1402 | .spacer { flex: 1; } |
| 1411 | } | 1403 | .compact { margin: 0; } |
| 1412 | .blamehunk { | 1404 | .name { min-width: 0; } |
| 1413 | display: flex; | 1405 | svg.icon { vertical-align: -0.125em; } |
| 1414 | gap: var(--sp-3); | 1406 | .sep { color: var(--muted); } |
| 1415 | border-top: 1px solid var(--line); | 1407 | .owner { color: var(--muted); } |
| 1416 | align-items: flex-start; | 1408 | .title { margin: 0; } |
| 1417 | } | 1409 | .subject { min-width: 0; } |
| 1418 | .blamehunk:first-child { border-top: none; } | 1410 | .sha { font-family: var(--mono); } |
| 1419 | .blameinfo { | 1411 | .when { color: var(--muted); } |
| 1420 | flex: none; | 1412 | .who { font-weight: 500; } |
| 1421 | width: 17rem; | 1413 | .was { color: var(--muted); } |
| 1422 | padding: var(--sp-2) var(--sp-3); | 1414 | .role { color: var(--muted); } |
| 1423 | min-width: 0; | 1415 | .age { color: var(--muted); } |
| 1424 | } | 1416 | .size { color: var(--muted); } |
| 1425 | .blameinfo .subject { | 1417 | .review { font-size: var(--fs-2); } |
| 1426 | margin: 0; | 1418 | |
| 1427 | font-size: var(--fs-1); | 1419 | /* ---- breakpoints ---- */ |
| 1428 | white-space: nowrap; | 1420 | @media (max-width: 62rem) { |
| 1429 | overflow: hidden; | 1421 | .withaside { grid-template-columns: 1fr; } |
| 1430 | text-overflow: ellipsis; | 1422 | .withaside .aside { order: -1; } |
| 1431 | } | ||
| 1432 | .blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); } | ||
| 1433 | .blamecode { | ||
| 1434 | flex: 1; | ||
| 1435 | margin: 0; | ||
| 1436 | padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; | ||
| 1437 | overflow-x: auto; | ||
| 1438 | border-left: 1px solid var(--line); | ||
| 1439 | align-self: stretch; | ||
| 1440 | } | 1423 | } |
| 1441 | .lineno { | 1424 | |
| 1442 | display: inline-block; | 1425 | @media (max-width: 52rem) { |
| 1443 | min-width: 3.5em; | 1426 | /* the rail becomes a single strip, not a wall of links */ |
| 1444 | padding-right: 1em; | 1427 | .shell { display: block; } |
| 1445 | text-align: right; | 1428 | .rail { |
| 1446 | color: var(--muted); | 1429 | width: auto; |
| 1447 | user-select: none; | 1430 | height: auto; |
| 1431 | position: static; | ||
| 1432 | flex-direction: row; | ||
| 1433 | align-items: center; | ||
| 1434 | gap: var(--sp-2); | ||
| 1435 | border-right: 0; | ||
| 1436 | border-bottom: 1px solid var(--shell-line); | ||
| 1437 | overflow-x: auto; | ||
| 1438 | } | ||
| 1439 | a.brand { padding: var(--sp-2) var(--sp-3); } | ||
| 1440 | .railbody { flex: 1; overflow: visible; padding: 0; display: flex; align-items: center; } | ||
| 1441 | form.railsearch { margin: 0 var(--sp-2); } | ||
| 1442 | form.railsearch input[type="search"] { min-width: 8rem; } | ||
| 1443 | /* pinned repos and the review queue both live on the dashboard, so the | ||
| 1444 | strip keeps only what has nowhere else to go */ | ||
| 1445 | .railgroup { display: none; } | ||
| 1446 | ul.raillist { display: flex; margin: 0; } | ||
| 1447 | ul.raillist a { border-radius: 0; border-bottom: 2px solid transparent; padding: var(--sp-2) var(--sp-3); } | ||
| 1448 | ul.raillist a[aria-current] { box-shadow: none; border-bottom-color: var(--shell-mark); } | ||
| 1449 | .railfoot { border-top: 0; padding: var(--sp-2); } | ||
| 1450 | .railpinned { border-top: 0; padding: 0; } | ||
| 1451 | main.content { padding: var(--sp-4) var(--sp-4) var(--sp-5); } | ||
| 1452 | footer { padding: var(--sp-4); } | ||
| 1453 | .repohead { padding: var(--sp-3) var(--sp-4) 0; } | ||
| 1454 | /* seven tabs do not fit a phone in one row; a hidden scrollbar made the | ||
| 1455 | ones past the edge look absent. Two rows show all of them. */ | ||
| 1456 | nav.tabs { flex-wrap: wrap; overflow: visible; } | ||
| 1457 | .facts { grid-template-columns: 1fr; } | ||
| 1448 | } | 1458 | } |
| 1449 | 1459 | ||
| 1450 | /* mobile */ | ||
| 1451 | @media (max-width: 40rem) { | 1460 | @media (max-width: 40rem) { |
| 1452 | .thread { margin-left: var(--sp-3); } | 1461 | .facets { grid-template-columns: 1fr; gap: var(--sp-4); } |
| 1453 | /* the commit subject is the widest thing in the listing and the one | 1462 | .wikilayout { flex-direction: column; align-items: stretch; } |
| 1463 | .wikinav { width: auto; } | ||
| 1464 | form.setform { grid-template-columns: 1fr; gap: var(--sp-2); } | ||
| 1465 | form.setform label { margin-top: 0; } | ||
| 1466 | /* the commit subject is the widest thing in a file table and the one | ||
| 1454 | column a phone can do without: the tipbar above already names the | 1467 | column a phone can do without: the tipbar above already names the |
| 1455 | latest commit. */ | 1468 | latest commit */ |
| 1456 | table.tree td.lastcommit, table.tree th.lastcommit { display: none; } | 1469 | table.tree td.lastcommit, table.tree th.lastcommit { display: none; } |
| 1457 | table.tree td.mode, table.tree th.mode { display: none; } | 1470 | table.tree td.mode, table.tree th.mode { display: none; } |
| 1458 | .clone, .pathbar { overflow-wrap: anywhere; } | 1471 | .clone pre { white-space: pre-wrap; word-break: break-all; } |
| 1459 | .readme, .code { padding: var(--sp-3); } | 1472 | .pathbar { overflow-wrap: anywhere; } |
| 1473 | .readme .cardbody, .code { padding: var(--sp-3); } | ||
| 1474 | .thread { margin-left: var(--sp-3); } | ||
| 1460 | .blamehunk { flex-direction: column; gap: 0; } | 1475 | .blamehunk { flex-direction: column; gap: 0; } |
| 1461 | .blameinfo { width: auto; } | 1476 | .blameinfo { width: auto; } |
| 1462 | .blamecode { border-left: none; padding-left: var(--sp-3); width: 100%; } | 1477 | .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; } |
| 1463 | .cardhead { | 1478 | .factgrid { grid-template-columns: repeat(2, auto); } |
| 1464 | margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-3)) var(--sp-3); | ||
| 1465 | padding: var(--sp-2) var(--sp-3); | ||
| 1466 | } | ||
| 1467 | } | 1479 | } |
| 1468 | |||
| 1469 | /* tree listing: the last commit is what a file table is scanned for, so | ||
| 1470 | it leads. The file's own facts moved to the blob page. */ | ||
| 1471 | .tipbar { | ||
| 1472 | display: flex; | ||
| 1473 | align-items: center; | ||
| 1474 | gap: var(--sp-3); | ||
| 1475 | padding: var(--sp-2) var(--sp-4); | ||
| 1476 | background: var(--hover); | ||
| 1477 | border: 1px solid var(--line); | ||
| 1478 | border-bottom: 0; | ||
| 1479 | border-radius: var(--r-lg) var(--r-lg) 0 0; | ||
| 1480 | font-size: var(--fs-2); | ||
| 1481 | } | ||
| 1482 | .tipbar .who { font-weight: 600; } | ||
| 1483 | .tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | ||
| 1484 | .tipbar .subject:hover { color: var(--accent); } | ||
| 1485 | .tipbar .spacer { flex: 1; } | ||
| 1486 | .tipbar .age { color: var(--muted); white-space: nowrap; } | ||
| 1487 | .tipbar + table.tree { border-radius: 0 0 var(--r-lg) var(--r-lg); } | ||
| 1488 | table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; } | ||
| 1489 | table.tree td.lastcommit a { color: var(--muted); display: block; overflow: hidden; | ||
| 1490 | text-overflow: ellipsis; white-space: nowrap; } | ||
| 1491 | table.tree td.lastcommit a:hover { color: var(--accent); } | ||
| 1492 | table.tree th.age, table.tree td.age { | ||
| 1493 | text-align: right; | ||
| 1494 | white-space: nowrap; | ||
| 1495 | color: var(--muted); | ||
| 1496 | font-variant-numeric: tabular-nums; | ||
| 1497 | } | ||
| 1498 | table.tree td.name { width: 25%; white-space: nowrap; } | ||
| 1499 | table.tree td.name.dir a { color: var(--accent); } | ||
| 1500 | p.clone { margin: 0 0 var(--sp-3); } | ||
| 1501 | p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); } | ||
| 1502 | .pathbar .actions { font-size: var(--fs-1); color: var(--muted); } | ||
| 1503 | .snippetfile { margin-bottom: var(--sp-5); } | ||
| 1504 | |||
| 1505 | /* merge request: a two-column split, so state has somewhere to live that | ||
| 1506 | is not a run-on sentence under the title */ | ||
| 1507 | .withaside { | ||
| 1508 | display: grid; | ||
| 1509 | grid-template-columns: minmax(0, 1fr) 15rem; | ||
| 1510 | gap: var(--sp-5); | ||
| 1511 | align-items: start; | ||
| 1512 | } | ||
| 1513 | .withaside .mainside { min-width: 0; } | ||
| 1514 | @media (max-width: 62rem) { .withaside { grid-template-columns: 1fr; } } | ||
| 1515 | |||
| 1516 | .aside { font-size: var(--fs-2); } | ||
| 1517 | .aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; } | ||
| 1518 | .aside .grp:first-child { border-top: 0; padding-top: 0; } | ||
| 1519 | .aside h2 { | ||
| 1520 | margin: 0 0 var(--sp-2); | ||
| 1521 | font-family: var(--mono); | ||
| 1522 | font-size: var(--fs-0); | ||
| 1523 | font-weight: 500; | ||
| 1524 | letter-spacing: 0.1em; | ||
| 1525 | text-transform: uppercase; | ||
| 1526 | color: var(--muted); | ||
| 1527 | } | ||
| 1528 | .aside .row { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-1); flex-wrap: wrap; } | ||
| 1529 | .aside .row:last-child { margin-bottom: 0; } | ||
| 1530 | .aside .none { color: var(--muted); } | ||
| 1531 | /* a row's second line: when it happened, under what it happened to. The | ||
| 1532 | extra gap keeps the pair reading as one entry. */ | ||
| 1533 | .aside .row .sub { flex-basis: 100%; color: var(--muted); font-size: var(--fs-0); } | ||
| 1534 | .aside .row:has(.sub) { margin-bottom: var(--sp-2); } | ||
| 1535 | .aside .dot { width: 0.45rem; height: 0.45rem; flex: none; border-radius: 50%; background: var(--muted); } | ||
| 1536 | .aside .dot.ok { background: var(--ok); } | ||
| 1537 | .aside .dot.bad { background: var(--bad); } | ||
| 1538 | .aside .dot.pend { background: var(--mark); } | ||
| 1539 | |||
| 1540 | /* sub-navigation within an item; orange marks position as it does above */ | ||
| 1541 | nav.subtabs { | ||
| 1542 | display: flex; | ||
| 1543 | gap: var(--sp-4); | ||
| 1544 | border-bottom: 1px solid var(--line); | ||
| 1545 | margin: 0 0 var(--sp-4); | ||
| 1546 | } | ||
| 1547 | nav.subtabs a { | ||
| 1548 | display: inline-flex; | ||
| 1549 | align-items: center; | ||
| 1550 | gap: var(--sp-2); | ||
| 1551 | padding: 0 0 var(--sp-2); | ||
| 1552 | color: var(--muted); | ||
| 1553 | font-size: var(--fs-2); | ||
| 1554 | border-bottom: 2px solid transparent; | ||
| 1555 | margin-bottom: -1px; | ||
| 1556 | } | ||
| 1557 | nav.subtabs a:hover { color: var(--fg); text-decoration: none; } | ||
| 1558 | nav.subtabs a[aria-current] { color: var(--fg); font-weight: 700; border-bottom-color: var(--mark); } | ||
| 1559 | nav.subtabs a i { | ||
| 1560 | font-style: normal; | ||
| 1561 | font-family: var(--mono); | ||
| 1562 | font-size: var(--fs-0); | ||
| 1563 | background: var(--hover); | ||
| 1564 | border-radius: var(--r-sm); | ||
| 1565 | padding: 0 0.35rem; | ||
| 1566 | } | ||
| 1567 | p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); } | ||
| 1568 | p.diffstat .add { color: var(--ok); } | ||
| 1569 | p.diffstat .del { color: var(--bad); } | ||
| 1570 | |||
| 1571 | /* file edit form */ | ||
| 1572 | .editform textarea { width: 100%; } | ||
| 1573 | .editform input[name="message"] { width: 60%; } | ||