-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom.css
More file actions
201 lines (178 loc) · 6.92 KB
/
Copy pathcustom.css
File metadata and controls
201 lines (178 loc) · 6.92 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: oklch(0.546 0.245 262.881);
--ifm-color-primary-dark: oklch(0.53 0.21 260);
--ifm-color-primary-darker: oklch(0.49 0.2 260);
--ifm-color-primary-darkest: oklch(0.42 0.18 260);
--ifm-color-primary-light: oklch(0.64 0.19 260);
--ifm-color-primary-lighter: oklch(0.69 0.16 260);
--ifm-color-primary-lightest: oklch(0.82 0.09 260);
--ifm-background-color: oklch(1 0 0);
--ifm-background-surface-color: oklch(0.967 0.001 286.375);
--ifm-card-background-color: oklch(1 0 0);
--ifm-font-color-base: oklch(0.141 0.005 285.823);
--ifm-navbar-background-color: oklch(1 0 0);
--ifm-toc-border-color: oklch(0.92 0.004 286.32);
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: oklch(0.623 0.214 259.815 / 0.08);
}
/* Match the web app's neutral surfaces and blue mentor accent. */
[data-theme="dark"] {
--ifm-color-primary: oklch(0.707 0.165 254.624);
--ifm-color-primary-dark: oklch(0.67 0.17 260);
--ifm-color-primary-darker: oklch(0.63 0.19 260);
--ifm-color-primary-darkest: oklch(0.56 0.21 260);
--ifm-color-primary-light: oklch(0.77 0.12 260);
--ifm-color-primary-lighter: oklch(0.82 0.09 260);
--ifm-color-primary-lightest: oklch(0.9 0.045 260);
--ifm-background-color: oklch(0.141 0.005 285.823);
--ifm-background-surface-color: oklch(0.21 0.006 285.885);
--ifm-card-background-color: oklch(0.141 0.005 285.823);
--ifm-font-color-base: oklch(0.985 0 0);
--ifm-navbar-background-color: oklch(0.141 0.005 285.823);
--ifm-toc-border-color: oklch(0.274 0.006 286.033);
--docusaurus-highlighted-code-line-bg: oklch(0.546 0.245 262.881 / 0.18);
}
/*
* Every override below re-points an Infima default at a value the web app already uses.
* `scripts/check-docs-tokens.ts` pins the ones copied from `webapp/src/styles.css`.
*/
:root {
/* The app's --radius. Buttons, cards, code blocks and pagination all inherit it. */
--ifm-global-radius: 0.625rem;
--ifm-button-font-weight: 500;
--ifm-navbar-shadow: none;
/* Infima's emphasis scale is blue-grey; the app's muted text is zinc. */
--ifm-color-emphasis-100: oklch(0.967 0.001 286.375);
--ifm-color-emphasis-200: oklch(0.92 0.004 286.32);
--ifm-color-emphasis-300: oklch(0.871 0.006 286.286);
--ifm-color-emphasis-400: oklch(0.705 0.015 286.067);
--ifm-color-emphasis-500: oklch(0.552 0.016 285.938);
--ifm-color-emphasis-600: oklch(0.552 0.016 285.938);
--ifm-color-emphasis-700: oklch(0.535 0.016 285.938);
--ifm-color-emphasis-800: oklch(0.37 0.013 285.805);
--ifm-alert-shadow: none;
--ifm-alert-border-left-width: 3px;
--ifm-pre-border-radius: 0.75rem;
}
[data-theme="dark"] {
--ifm-color-emphasis-100: oklch(0.21 0.006 285.885);
--ifm-color-emphasis-200: oklch(0.274 0.006 286.033);
--ifm-color-emphasis-300: oklch(0.37 0.013 285.805);
--ifm-color-emphasis-400: oklch(0.442 0.017 285.786);
--ifm-color-emphasis-500: oklch(0.552 0.016 285.938);
--ifm-color-emphasis-600: oklch(0.68 0.015 286.067);
--ifm-color-emphasis-700: oklch(0.705 0.015 286.067);
--ifm-color-emphasis-800: oklch(0.87 0.01 286.067);
/* White on the dark-mode primary is only ~2.6:1; the search hit keeps the darker blue. */
--search-local-highlight-color: oklch(0.546 0.245 262.881);
}
/* Infima's footer is a fixed navy slab that matches neither mode. */
.footer {
--ifm-footer-background-color: var(--ifm-background-surface-color);
--ifm-footer-color: var(--ifm-color-emphasis-700);
--ifm-footer-link-color: var(--ifm-color-emphasis-700);
--ifm-footer-link-hover-color: var(--ifm-font-color-base);
--ifm-footer-title-color: var(--ifm-font-color-base);
border-top: 1px solid var(--ifm-toc-border-color);
font-size: 0.9rem;
}
.footer__title {
font-size: 0.8rem;
font-weight: 650;
letter-spacing: 0.01em;
}
.footer__copyright {
color: var(--ifm-color-emphasis-700);
font-size: 0.85rem;
}
.navbar {
border-bottom: 1px solid var(--ifm-toc-border-color);
}
.navbar__title {
font-weight: 600;
}
.markdown h1:first-child {
font-size: 2.25rem;
letter-spacing: -0.03em;
}
.markdown > h2 {
font-size: 1.75rem;
font-weight: 600;
letter-spacing: -0.02em;
}
.markdown > h3 {
font-weight: 600;
letter-spacing: -0.01em;
}
.theme-code-block {
border: 1px solid var(--ifm-toc-border-color);
}
/* An icon link, the way the app's own header links to GitHub. */
.navbarGithubLink::before {
content: "";
display: flex;
width: 20px;
height: 20px;
background-color: currentColor;
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
mask-repeat: no-repeat;
mask-size: contain;
}
.markdown img {
display: block;
margin: 2rem auto;
border-radius: 12px;
border: 1px solid var(--ifm-toc-border-color);
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
background: var(--ifm-card-background-color);
max-width: min(100%, 960px);
height: auto;
}
.markdown p > img {
margin: 2rem auto;
}
:root {
--docusaurus-announcement-bar-height: auto;
}
.theme-announcement-bar {
background-color: color-mix(in oklab, var(--ifm-color-primary) 10%, var(--ifm-background-color));
border-bottom: 1px solid color-mix(in oklab, var(--ifm-color-primary) 22%, transparent);
color: var(--ifm-font-color-base);
font-size: 0.875rem;
}
.button--lg {
font-size: 1rem;
}
/* A light-grey slab is a light-mode control; in dark the app uses a surface with a border. */
[data-theme="dark"] .button--secondary {
background-color: var(--ifm-background-surface-color);
border: 1px solid var(--ifm-toc-border-color);
color: var(--ifm-font-color-base);
}
[data-theme="dark"] .button--secondary:hover {
background-color: var(--ifm-color-emphasis-200);
}
/* Infima has no card or eyebrow primitive; both docs CSS modules `composes` these from here. */
.hephCard {
position: relative;
display: flex;
flex-direction: column;
padding: 1.85rem;
border: 1px solid var(--ifm-toc-border-color);
border-radius: var(--ifm-global-radius);
background: var(--ifm-card-background-color);
color: inherit;
text-decoration: none;
}
.hephKicker {
color: var(--ifm-color-primary);
font-size: 0.8rem;
font-weight: 650;
letter-spacing: 0.01em;
}