Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
216 lines (168 loc) · 4.29 KB
/
Copy pathstyles.css
File metadata and controls
216 lines (168 loc) · 4.29 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
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html,
body,
#root {
min-height: 100%;
}
body {
@apply m-0 bg-background font-sans text-text antialiased;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}
:focus-visible {
@apply outline-2 outline-offset-4 outline-accent;
outline-style: solid;
}
::selection {
@apply bg-accent text-surface;
}
}
@layer components {
.site-container {
@apply mx-auto w-full max-w-[1200px] px-5 sm:px-8;
}
.skip-link {
@apply fixed left-4 top-4 z-50 -translate-y-24 rounded-lg bg-accent px-4 py-3 text-sm font-medium text-surface;
transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.skip-link:focus {
transform: translateY(0);
}
.brand-link {
@apply inline-flex min-h-10 shrink-0 items-center gap-3 font-serif text-lg font-medium text-text;
}
.brand-mark {
@apply relative block h-6 w-6 border border-text;
}
.brand-mark i,
.comparison-mark i {
@apply absolute block h-0.5 bg-text;
content: '';
}
.brand-mark i:first-child {
@apply left-1 top-1.5 w-3;
}
.brand-mark i:last-child {
@apply bottom-1.5 right-1 w-3 bg-accent;
}
.comparison-mark {
@apply relative block h-4 w-5 shrink-0;
}
.comparison-mark i:first-child {
@apply left-0 top-1 w-3.5;
}
.comparison-mark i:last-child {
@apply bottom-1 right-0 w-3.5 bg-accent;
}
.language-link {
@apply ml-auto inline-flex h-11 items-center rounded-md px-2 font-mono text-xs text-secondary transition-colors hover:bg-raised hover:text-text sm:h-9;
}
.nav-link {
@apply inline-flex min-h-11 items-center rounded-md text-sm text-secondary transition-colors hover:text-text sm:min-h-9;
}
.nav-link[aria-current='page'] {
@apply font-medium text-accent;
}
.eyebrow {
@apply inline-flex items-center gap-3 text-sm text-muted;
}
.button-primary,
.button-secondary {
@apply inline-flex h-11 items-center justify-center gap-2 rounded-lg px-5 text-sm font-medium;
}
.button-primary {
@apply bg-accent text-surface hover:bg-accentDeep;
}
.button-secondary {
@apply border border-line bg-surface text-secondary hover:border-secondary hover:text-text;
}
.pressable {
@apply duration-150;
transition-property: transform, background-color, border-color, color;
transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.pressable:active {
transform: scale(0.98);
}
.monitor-preview {
@apply w-full overflow-hidden rounded-2xl border border-line bg-surface shadow-card;
}
.diff-row {
@apply grid grid-cols-[20px_56px_minmax(0,1fr)] items-baseline gap-2 px-4 py-4;
}
.diff-symbol {
@apply font-mono text-lg;
}
.section-block {
@apply py-16 lg:py-24;
}
.link-row {
@apply flex items-start gap-4 py-6 sm:gap-6 sm:py-8;
}
.link-row-marker {
@apply w-8 shrink-0 pt-1 font-mono text-xs tabular-nums text-accent;
}
.install-row {
@apply grid gap-5 border-b border-line py-8 sm:grid-cols-[180px_minmax(0,1fr)] sm:gap-8 lg:grid-cols-[224px_minmax(0,1fr)] lg:gap-12;
}
.code-surface {
@apply m-0 max-w-full overflow-x-auto rounded-xl bg-code px-5 py-4 font-mono text-xs leading-6 text-codeText;
tab-size: 2;
}
.doc-table-region {
@apply w-full overflow-x-auto;
}
.doc-list {
@apply space-y-3 pl-6 marker:text-accent;
}
.doc-link {
@apply inline-flex items-center gap-2 font-medium text-accent underline decoration-line underline-offset-4 transition-colors hover:decoration-accent;
}
.toc-link {
@apply flex items-start gap-2 rounded-md px-2 py-2 leading-6 text-secondary transition-colors hover:bg-raised hover:text-text;
}
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
.rise {
animation: rise 360ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.rise-2 {
animation-delay: 70ms;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.rise {
animation: none;
}
.pressable,
.skip-link {
transition: none;
}
.pressable:active {
transform: none;
}
}