Repository navigation
Expand file tree
/
Copy paththeme.css
More file actions
172 lines (146 loc) · 4.3 KB
/
Copy paththeme.css
File metadata and controls
172 lines (146 loc) · 4.3 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
:root[data-theme="dark"] [data-integration-mark-tone="monochrome"] img {
filter: invert(1);
}
[data-integration-title-mark] + article > h1:first-child {
padding-inline-start: 3rem;
}
[data-integration-mark] a[data-blume-card] img {
width: 20px;
height: 20px;
object-fit: contain;
}
[data-integration-mark="eve"] a[data-blume-card] img,
[data-integration-title-mark][data-integration-mark="eve"] img {
width: 28px;
height: 28px;
}
@media print {
[data-integration-title-mark] {
margin-inline: 0;
max-width: none;
}
}
@media (max-width: 24rem) {
[data-integration-title-mark] {
display: none;
}
[data-integration-title-mark] + article > h1:first-child {
padding-inline-start: 0;
}
}
/* The dashboard's tokens, so the docs read as part of the product. App Sans is a licensed font:
the app at telemetry.dev serves it, and the docs live on the same origin, so this repository
does not copy the files. Where /fonts is not the app (local dev, preview URLs), Geist from
blume.config.ts takes its place. */
@font-face {
font-family: "App Sans";
src: url("/fonts/app-sans-regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "App Sans";
src: url("/fonts/app-sans-medium.woff2") format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "App Sans";
src: url("/fonts/app-sans-bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
:root {
--blume-font-body: "App Sans", var(--blume-font-body-src);
--blume-font-display: "App Sans", var(--blume-font-display-src);
--blume-background: #ffffff;
--blume-foreground: #000000;
--blume-muted: #f0f0f0;
--blume-muted-foreground: #6c6c6c;
--blume-border: rgb(0 0 0 / 0.1);
--blume-code-background: #fafafa;
--td-sidebar: #fafafa;
--td-nav-current: #ffffff;
--td-nav-current-edge: var(--blume-border);
--td-focus-ring: rgb(0 0 0 / 0.5);
--td-accent: oklch(0.6 0.19 145);
}
:root[data-theme="dark"] {
--blume-background: #000000;
--blume-foreground: #ffffff;
--blume-muted: #2b2b2b;
--blume-muted-foreground: #a3a3a3;
--blume-border: #383838;
--blume-code-background: #202020;
--td-sidebar: #202020;
/* Blume puts white text on every dark accent, which hides the step numbers on the light accent. */
--blume-accent-foreground: #000000;
--td-nav-current: rgb(229 229 229 / 0.2);
--td-nav-current-edge: transparent;
--td-focus-ring: rgb(255 255 255 / 0.5);
--td-accent: oklch(0.74 0.17 145);
}
:focus-visible {
outline-color: var(--td-focus-ring);
}
.prose :where(h1, h2) {
letter-spacing: -0.01em;
}
[data-blume-nav-drawer] {
background: var(--td-sidebar);
}
[data-blume-nav-tree] :where(a, summary, button) {
border-radius: 2px;
}
/* The second selector matches Blume's round header icon buttons: menu, GitHub, and theme. */
[data-blume-search-open],
[data-blume-header] .size-9.rounded-full {
border-radius: 3px;
}
[data-blume-nav-tree] a[aria-current="page"] {
background: var(--td-nav-current);
box-shadow: inset 0 0 0 1px var(--td-nav-current-edge);
}
/* Blume clears the background of highlighted code with !important. */
.prose pre.astro-code {
background: var(--blume-code-background) !important;
}
blume-tabs:has(pre.astro-code) {
background: var(--blume-code-background);
}
/* The copy button is an opaque chip so code scrolls under it; keep the chip the colour of the code. */
[data-blume-copy] {
--blume-background: var(--blume-code-background);
}
/* github-light-default comments are 4.36:1 on Neutral 2, below WCAG AA. Neutral 7 is 5.03:1. */
.prose pre.astro-code span[style*="--shiki-light:#6E7781"] {
--shiki-light: #6c6c6c !important;
}
.td-figure {
margin-block: 1.75rem;
}
.td-figure-card {
background: color-mix(in oklab, var(--blume-muted) 45%, var(--blume-background));
border: 1px solid var(--blume-border);
border-radius: var(--blume-radius);
padding: 1rem 1.125rem 1.125rem;
}
.td-figure-title {
color: var(--blume-foreground);
font-size: 0.8125rem;
font-weight: 500;
margin: 0 0 0.875rem;
}
.td-figure-caption {
color: var(--blume-muted-foreground);
font-size: 0.75rem;
line-height: 1.55;
margin-top: 0.625rem;
}
.td-figure-caption code {
font-family: var(--font-mono);
font-size: 0.6875rem;
}