Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
183 lines (160 loc) · 5.18 KB
/
Copy pathextra.css
File metadata and controls
183 lines (160 loc) · 5.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/* Brand palette -----------------------------------------------------------
Sumi reads every colour, font and size from its --sumi-* variables, so the
brand is applied by pointing those at the Commit Check palette.
Ink is the brand's dark and Signal Blue its accent. Signal Blue is the same
#2c9ccd the README badge has always used, so badges already in the wild
still match. Paper is the cool grey of the tinted bands. */
:root {
--cc-ink: #0b1620;
--cc-ink-raised: #13212c;
--cc-brand: #2c9ccd;
--cc-brand-dark: #1e85a8;
--cc-brand-light: #5bb3d9;
/* The brand blue only reaches 3.1:1 on white; links need 4.5:1. */
--cc-link: #176b89;
/* Literal stacks rather than var()s of each other, so each one can be read
on its own. */
--cc-display-font: "Bricolage Grotesque", "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
--sumi-font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
"Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
--sumi-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
--sumi-accent: var(--cc-brand);
--sumi-accent-ink: var(--cc-link);
--sumi-bg: #ffffff;
--sumi-bg-elev: #ffffff;
--sumi-bg-soft: #f4f6f7;
--sumi-bg-sunken: #eef2f4;
--sumi-fg: #0e1b24;
--sumi-fg-2: #4f6270;
--sumi-fg-3: #6a7c89;
--sumi-line: #dce3e8;
--sumi-line-2: #c9d3da;
--sumi-link: var(--cc-link);
--sumi-link-hover: #0f5570;
--sumi-header-bg: rgba(255, 255, 255, 0.9);
--sumi-code-bg: #f6f8f9;
--sumi-code-head: #eef2f4;
--sumi-code-inline: #eef2f4;
/* The page width the site has always had: a 1220px column with the header
aligned to it, and both sidebars at the same width. */
--cc-page-w: 1220px;
--sumi-side-w: 242px;
--sumi-rail-w: 242px;
--sumi-header-h: 48px;
}
[data-theme="dark"] {
--sumi-accent: var(--cc-brand);
--sumi-accent-ink: var(--cc-brand-light);
--sumi-bg: #0e1a23;
--sumi-bg-elev: #13212c;
--sumi-bg-soft: #13212c;
--sumi-bg-sunken: #0b1620;
--sumi-fg: #e8eef2;
--sumi-fg-2: #b9c7d1;
--sumi-fg-3: #8fa3b1;
--sumi-line: #22323f;
--sumi-line-2: #2e4252;
--sumi-link: var(--cc-brand-light);
--sumi-link-hover: #7fc6e6;
--sumi-header-bg: rgba(11, 22, 32, 0.9);
--sumi-code-bg: #0b1620;
--sumi-code-head: #13212c;
--sumi-code-inline: #13212c;
}
/* Page frame ---------------------------------------------------------------- */
.sumi-header-inner,
.sumi-shell,
.sumi-footer-inner {
max-width: var(--cc-page-w);
}
.sumi-shell {
column-gap: 32px;
}
/* The footer is Ink on every page and in both schemes, so the docs and the
landing page share one frame. */
.sumi-footer {
border-top: 0;
background: #060d13;
}
.sumi-footer-inner {
color: #8fa3b1;
}
.sumi-footer a,
.sumi-footer .sumi-icon-btn {
color: #b9c7d1;
}
.sumi-footer a:hover,
.sumi-footer .sumi-icon-btn:hover {
color: #ffffff;
background: none;
}
/* Text the way the site has always set it: Instrument Sans without the
stylistic sets Sumi turns on for its own face, at the same line height, and
with no lead paragraph or rule above each section. */
body {
font-feature-settings: normal;
}
.sumi-prose {
line-height: 1.6;
}
.sumi-prose h1 + p {
font-size: inherit;
line-height: inherit;
color: inherit;
}
.sumi-prose h2 {
padding-top: 0;
border-top: 0;
}
/* Display face for page titles, section headings and the site name. Body text
stays in the text font. */
.sumi-prose h1,
.sumi-prose h2,
.sumi-brand-name {
font-family: var(--cc-display-font);
font-weight: 700;
letter-spacing: -0.02em;
}
.sumi-brand-name {
letter-spacing: -0.01em;
}
/* Buttons -------------------------------------------------------------------
A primary button is Signal Blue with Ink text: white on this blue is 3.1:1,
under the 4.5:1 a button label needs; Ink on it is 5.9:1. */
.sumi-prose .md-button--primary,
.sumi-btn--primary {
background-color: var(--cc-brand);
border-color: var(--cc-brand);
color: var(--cc-ink);
}
.sumi-prose .md-button--primary:focus,
.sumi-prose .md-button--primary:hover,
.sumi-btn--primary:hover {
background-color: var(--cc-brand-light);
border-color: var(--cc-brand-light);
color: var(--cc-ink);
}
/* Feature grid: the card hover picks up the brand colour. */
.sumi-prose .grid.cards > ul > li,
.sumi-prose ul.sumi-cards > li {
transition: border-color 125ms, box-shadow 125ms;
}
.sumi-prose .grid.cards > ul > li:hover,
.sumi-prose ul.sumi-cards > li:hover {
border-color: var(--cc-brand);
box-shadow: 0 0 0 1px var(--cc-brand);
}
/* Tables -------------------------------------------------------------------
Cells align to the top so short values line up with a wrapped message. */
.sumi-prose table:not([class]) td,
.sumi-prose table:not([class]) th {
vertical-align: top;
}
/* In the rule index tables only, keep rule names and CLI flags on one line so
the tables stay scannable — without this, names like `subject-capitalized`
break across two lines even on a wide screen. Other tables hold long regexes
and allow-lists that must stay wrappable, hence the wrapper class rather
than a rule for every table. */
.sumi-prose .rules-index td code {
white-space: nowrap;
}