Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
258 lines (230 loc) · 8.6 KB
/
Copy pathstyles.css
File metadata and controls
258 lines (230 loc) · 8.6 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
@layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@import "tailwindcss/utilities.css";
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
/* Manrope, self-hosted (SIL Open Font License) */
@import "@fontsource-variable/manrope";
/* Classes shared by several components */
@import "./styles/github-colors.css";
@import "./styles/badge-tones.css";
@import "./styles/podium.css";
@import "./styles/guide.css";
@import "./styles/stack.css";
@import "./styles/logo-link.css";
@font-face {
font-family: "Manrope Fallback";
src: local("Arial"), local("ArialMT");
size-adjust: 103%;
ascent-override: 103.5%;
descent-override: 29.1%;
line-gap-override: 0%;
}
/*
* The word "Angularians": Norse Bold by Joël Carrouché, rough-cut capitals like the A of the mark
* (THIRD_PARTY_NOTICES.md).
*/
@font-face {
font-family: "Norse";
src: url("/fonts/Norse-Bold.otf") format("opentype");
font-weight: 700;
/* Preloaded (index.html): wait for it rather than draw a fallback that jumps when it swaps. */
font-display: block;
}
/*
* Spartan's zinc theme, with Viking gold as the primary colour: the brand (#9A6700, brighter on dark).
* Dark mode, the default, is the `dark` class on <html>: in index.html, removed for a saved light theme by its
* inline script before the first paint, then kept by ThemeService.
*/
:root {
color-scheme: light;
/* The mark's contribution graph: the grey of empty days, then three golds, darkest to brightest. */
--mark-empty: #d0d7de;
--mark-1: #5c4000;
--mark-2: #9A6700;
--mark-3: #E3B341;
--calendar-0: var(--mark-empty);
--calendar-1: var(--mark-3);
--calendar-2: color-mix(in oklab, var(--mark-3), var(--mark-2));
--calendar-3: var(--mark-2);
--calendar-4: var(--mark-1);
--graph-green-0: #ebedf0;
--graph-green-1: #9be9a8;
--graph-green-2: #40c463;
--graph-green-3: #30a14e;
--graph-green-4: #216e39;
/*
* The intro: the greens of a GitHub contribution graph its three squares start as, before they turn gold, and
* turn back to on hover. The same in both themes.
*/
--mark-intro-1: #194825;
--mark-intro-2: #337343;
--mark-intro-3: #5eb572;
/* Angular's own colours, from its logo: the team's pink and the purple. The same in both themes. */
--angular-pink: #dc087d;
--angular-purple: #9717E7;
/*
* GitHub's colours, one for each kind of contribution (`github-*` in styles/github-colors.css); its dark theme's
* are brighter. `--github-*-on-light` is GitHub's light-theme value, kept in both themes (the profile's stat tints),
* and `--github-*` starts from it. `--github-*-text` is a shade darker on light, for text on a tint of the colour.
*/
--github-purple-on-light: #8250DF;
--github-red-on-light: #CF222E;
--github-blue-on-light: #0969DA;
--github-gold-on-light: #9A6700;
--github-green-on-light: #1A7F37;
--github-pink-on-light: #BF3989;
--github-orange-on-light: #BC4C00;
--github-purple: var(--github-purple-on-light);
--github-red: var(--github-red-on-light);
--github-blue: var(--github-blue-on-light);
--github-gold: var(--github-gold-on-light);
--github-green: var(--github-green-on-light);
--github-pink: var(--github-pink-on-light);
--github-orange: var(--github-orange-on-light);
--github-gold-text: #7D4E00;
--github-green-text: #116329;
/* Gold, silver and bronze for the top three (styles/podium.css): the medal, and its text, darker on light. */
--medal-gold: #D29922;
--medal-gold-text: #9A6700;
--medal-silver: #A8B3BD;
--medal-silver-text: #59636E;
--medal-bronze: #B5561C;
--medal-bronze-text: #9A4510;
/* The Shieldwall badge, for Angular's security advisories (styles/badge-tones.css): GitHub's red, softer on dark. */
--shieldwall: var(--github-red);
/*
* The world globe (world/globe.ts), drawn in WebGL: the sphere's colour and its glow. Percentages, which it reads
* exactly; on dark, the sphere is the brand, dimmed.
*/
--globe-base: rgb(94% 95% 96%);
--globe-glow: rgb(92% 93% 95%);
/* The kinds of project in "Forged something for Angular?" (claim-badge.css) */
--idea-library: var(--github-pink);
--idea-tool: #59636E;
--idea-meetup: var(--github-orange);
--idea-teaching: #1B7C83;
/* Angie's storm: the bolt's white-hot core, the blue-white glow around it, and her shadow. */
--lightning: #ffffff;
--lightning-inner: #bcd0ff;
--angie-shadow: rgb(0 0 0 / 0.45);
--font-sans: "Manrope Variable", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
/* The brand is the mark's gold, #9A6700: on white 4.6:1 as text, and under white text. */
--primary: var(--mark-2);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.967 0.001 286.375);
/* Darker than Spartan's 0.552: 4.5:1 on the muted background too (tabs, the year select). */
--muted-foreground: oklch(0.52 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--ring: oklch(0.55 0.15 72 / 60%);
}
:root.dark {
color-scheme: dark;
--mark-empty: #4a525c;
--calendar-0: color-mix(in oklab, var(--mark-empty) 55%, transparent);
--calendar-1: var(--mark-1);
--calendar-2: var(--mark-2);
--calendar-3: color-mix(in oklab, var(--mark-2), var(--mark-3));
--calendar-4: var(--mark-3);
--graph-green-0: #161b22;
--graph-green-1: #0e4429;
--graph-green-2: #006d32;
--graph-green-3: #26a641;
--graph-green-4: #39d353;
--github-purple: #A371F7;
--github-red: #F85149;
--github-blue: #58A6FF;
--github-gold: #D29922;
--github-green: #3FB950;
--github-pink: #DB61A2;
--github-orange: #F0883E;
--github-gold-text: var(--github-gold);
--github-green-text: var(--github-green);
--medal-gold-text: var(--medal-gold);
--medal-silver-text: var(--medal-silver);
--medal-bronze-text: #D2691E;
--shieldwall: #FF7B72;
--globe-base: var(--primary);
--globe-glow: rgb(6% 8% 10%);
--idea-tool: #A8B3BD;
--idea-teaching: #39C5CF;
--background: oklch(0.141 0.005 285.823);
--foreground: oklch(0.985 0 0);
--card: oklch(0.21 0.006 285.885);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.21 0.006 285.885);
--popover-foreground: oklch(0.985 0 0);
--primary: #D29922;
--primary-foreground: oklch(0.141 0.005 285.823);
--secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.274 0.006 286.033);
--muted-foreground: oklch(0.705 0.015 286.067);
--accent: oklch(0.274 0.006 286.033);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.8 0.16 75 / 60%);
}
@theme inline {
/* The brand colour (flat: no gradients), per theme: the mark, the word Angularians. */
--color-brand: var(--primary);
/* Angular's colours as utilities: `bg-angular-pink/10`, `ring-angular-pink/40`. */
--color-angular-pink: var(--angular-pink);
--color-angular-purple: var(--angular-purple);
/* In @theme, so Tailwind makes the font-display utility: the hero's "Angularians". */
--font-display: "Norse", Georgia, serif;
/*
* Spartan's preset maps a sidebar and chart colours to variables this theme does not set: unmapped, `bg-sidebar` or
* `text-chart-1` make no CSS instead of a transparent colour.
*/
--color-sidebar: initial;
--color-sidebar-*: initial;
--color-chart-*: initial;
}
/*
* The word "Angularian(s)" wherever the site shows it, in the display font: same size as the text around it (Norse's
* capitals are about as tall as Manrope's), on the same baseline.
*/
@utility brand {
font-family: var(--font-display);
font-weight: 700;
letter-spacing: 0.02em;
cursor: url(/cursors/hammer.png) 3 3, auto;
}
a .brand,
button .brand,
.cdk-overlay-container .brand,
html.angie-off .brand {
cursor: inherit;
}
@layer base {
* {
@apply border-border outline-ring/50;
}
html {
@apply font-sans antialiased;
scrollbar-gutter: stable;
}
body {
@apply bg-background text-foreground min-h-dvh;
}
}
/* An open dropdown scrolls alone: a short one has nothing to contain its scroll, so the page stops while it is open */
html:has(hlm-select-content) {
overflow: hidden;
}