-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
222 lines (194 loc) · 4.39 KB
/
Copy pathstyles.css
File metadata and controls
222 lines (194 loc) · 4.39 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
.docs-index-section {
--section-edge: #303238;
--docs-content-height: calc(100vh - 75px);
--docs-content-height: calc(100svh - 75px);
position: relative;
min-height: calc(100vh - 75px);
min-height: calc(100svh - 75px);
padding: 0;
border-bottom: 1px solid var(--section-edge);
background:
linear-gradient(rgba(111, 116, 126, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(111, 116, 126, 0.045) 1px, transparent 1px),
#18191d;
background-size: 40px 40px;
}
.docs-index-shell {
width: 100%;
margin: 0 auto;
}
.docs-grid {
min-height: var(--docs-content-height);
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: repeat(2, minmax(0, 1fr));
gap: 0;
}
.docs-card {
--card-corner: #3d4047;
position: relative;
min-height: 190px;
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 16px;
padding: 22px;
border: 0;
border-radius: 0;
color: inherit;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent 45%),
#1a1b1f;
text-decoration: none;
transition: background 160ms ease;
}
.docs-card::before {
content: "";
position: absolute;
z-index: 2;
inset: 0;
background:
linear-gradient(135deg, var(--card-corner) 0 50%, transparent 51%) top left / 8px 8px no-repeat,
linear-gradient(225deg, var(--card-corner) 0 50%, transparent 51%) top right / 8px 8px no-repeat,
linear-gradient(45deg, var(--card-corner) 0 50%, transparent 51%) bottom left / 8px 8px no-repeat,
linear-gradient(315deg, var(--card-corner) 0 50%, transparent 51%) bottom right / 8px 8px no-repeat;
pointer-events: none;
}
.docs-card:nth-child(odd) {
border-right: 1px solid #3d4047;
}
.docs-card:nth-child(-n + 2) {
border-bottom: 1px solid #3d4047;
}
.docs-card:hover,
.docs-card:focus-visible {
outline: 0;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 45%),
#1d1e23;
}
.docs-card-icon {
width: 44px;
height: 44px;
display: grid;
place-items: center;
border: 1px solid #44484f;
border-radius: 4px;
color: #dfe1e4;
background: #23252a;
}
.docs-card-copy {
min-width: 0;
display: flex;
flex-direction: column;
}
.docs-card-copy small {
color: #737882;
font-family: "SFMono-Regular", Consolas, monospace;
font-size: 8px;
letter-spacing: 0.08em;
}
.docs-card-copy strong {
margin-top: 10px;
color: #eceef0;
font-size: 15px;
font-weight: 590;
letter-spacing: -0.025em;
}
.docs-card-copy > span {
margin-top: 10px;
color: #858a93;
font-size: 11px;
line-height: 1.6;
}
.docs-card-arrow {
align-self: center;
color: #858a93;
}
.footer-tools,
.footer-preferences {
display: flex;
align-items: center;
gap: 8px;
}
.footer-tools {
justify-content: flex-end;
flex-wrap: wrap;
}
.footer-preference {
min-width: 70px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 10px;
border: 1px solid #393c42;
border-radius: 5px;
color: #8c9199;
background: #1c1d21;
font: inherit;
font-size: 10px;
cursor: pointer;
transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.footer-preference:hover,
.footer-preference:focus-visible {
border-color: #5a5f67;
color: #eceef0;
outline: 0;
background: #24262b;
}
.theme-swatch {
width: 13px;
height: 13px;
border: 1px solid currentColor;
border-radius: 50%;
background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
}
:root[data-theme="light"] {
color-scheme: light;
background: #e7e7e4;
}
:root[data-theme="light"] body {
background: #e7e7e4;
}
:root[data-theme="light"] .site-frame {
filter: invert(1) hue-rotate(180deg);
}
@media (max-width: 760px) {
.docs-index-section {
--docs-content-height: auto;
min-height: calc(100vh - 67px);
min-height: calc(100svh - 67px);
padding: 0;
}
.docs-grid {
min-height: 0;
grid-template-columns: 1fr;
grid-template-rows: none;
}
.docs-card,
.docs-card:nth-child(odd),
.docs-card:nth-child(-n + 2) {
border-right: 0;
border-bottom: 1px solid #3d4047;
}
.docs-card:last-child {
border-bottom: 0;
}
.footer-tools {
width: 100%;
justify-content: flex-start;
}
}
@media (max-width: 520px) {
.docs-card {
min-height: 178px;
padding: 18px;
}
.footer-preferences,
.footer-preference {
flex: 1;
}
}