Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
140 lines (120 loc) · 4.53 KB
/
Copy pathextra.css
File metadata and controls
140 lines (120 loc) · 4.53 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
/* Brand palette -----------------------------------------------------------
Material's "custom" primary/accent read these variables.
Ink is the brand's dark and Signal Blue its accent. The header and footer
are Ink on every page, so the docs and the landing page share one frame;
Signal Blue is the same #2c9ccd the README badge has always used, so badges
already in the wild still match. */
: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;
--md-primary-fg-color: var(--cc-ink);
--md-primary-fg-color--light: var(--cc-ink-raised);
--md-primary-fg-color--dark: #060d13;
--md-accent-fg-color: var(--cc-brand-dark);
/* A literal stack: the theme defines --md-text-font-family below :root,
so a var() of it here would resolve to nothing. */
--cc-display-font: "Bricolage Grotesque", "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
}
/* The theme sets the footer colours per scheme, so they are overridden per
scheme too; on :root alone they would lose to the theme's own. */
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
--md-footer-bg-color: #081119;
--md-footer-bg-color--dark: #060d13;
}
[data-md-color-scheme="slate"] {
/* Material tints every slate grey from one hue; 205 is Ink's. */
--md-hue: 205;
--md-default-bg-color: #0e1a23;
--md-primary-fg-color: var(--cc-ink);
--md-accent-fg-color: var(--cc-brand-light);
--md-typeset-a-color: var(--cc-brand-light);
}
[data-md-color-scheme="default"] {
--md-typeset-a-color: var(--cc-link);
/* A light header in the light scheme, Ink in the dark one, so the header
answers the theme toggle like the rest of the page. */
--md-primary-fg-color: #ffffff;
--md-primary-fg-color--light: #f4f6f7;
--md-primary-fg-color--dark: #eef2f4;
--md-primary-bg-color: var(--cc-ink);
--md-primary-bg-color--light: #4f6270;
}
[data-md-color-scheme="default"] .md-header {
box-shadow: inset 0 -1px 0 #dce3e8;
}
/* The theme's search field is a translucent black meant for a coloured
header; on a white one it needs a solid tint instead. */
[data-md-color-scheme="default"] .md-search__form {
background-color: #eef2f4;
}
[data-md-color-scheme="default"] .md-search__form:hover {
background-color: #e4e9ed;
}
/* 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. */
.md-typeset .md-button--primary {
background-color: var(--cc-brand);
border-color: var(--cc-brand);
color: var(--cc-ink);
}
.md-typeset .md-button--primary:focus,
.md-typeset .md-button--primary:hover {
background-color: var(--cc-brand-light);
border-color: var(--cc-brand-light);
color: var(--cc-ink);
}
/* Display face for page titles, section headings and the site name. Body text
stays in the theme's text font. */
.md-typeset h1,
.md-typeset h2 {
font-family: var(--cc-display-font);
font-weight: 700;
letter-spacing: -0.02em;
}
/* The theme draws page titles in a light grey at weight 300; in the display
face they read as headings only at full strength. */
.md-typeset h1 {
color: var(--md-default-fg-color);
}
.md-header__title {
font-family: var(--cc-display-font);
font-weight: 700;
letter-spacing: -0.01em;
}
/* Feature grid: uses Material's card grid, tightened up a little. */
.md-typeset .grid.cards > ul > li {
border-radius: 0.4rem;
transition: border-color 125ms, box-shadow 125ms;
}
.md-typeset .grid.cards > ul > li:hover {
border-color: var(--cc-brand);
box-shadow: 0 0 0 1px var(--cc-brand);
}
.md-typeset .grid.cards > ul > li > hr {
margin: 0.6rem 0;
}
/* Tables -------------------------------------------------------------------
Cells align to the top so short values line up with a wrapped message. */
.md-typeset table:not([class]) td,
.md-typeset 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. */
.md-typeset .rules-index td code {
white-space: nowrap;
}
/* Sidebar section headings ("Getting started", "Reference", ...) */
.md-nav__item--section > .md-nav__link {
font-weight: 700;
color: var(--md-default-fg-color);
}