@stainless-api/docs-ui 0.1.0-beta.7 → 0.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/method.tsx +4 -2
- package/src/components/overview.tsx +1 -0
- package/src/components/sdk.tsx +3 -2
- package/src/components/snippets.tsx +3 -2
- package/src/search/results.tsx +1 -0
- package/src/style.ts +0 -1
- package/src/styles/main.css +739 -746
- package/src/styles/primitives.css +435 -427
- package/src/styles/resets.css +33 -41
- package/src/styles/search.css +247 -248
- package/src/styles/sidebar.css +58 -60
- package/src/styles/snippets.css +86 -88
- package/src/styles/variables.css +85 -89
|
@@ -1,572 +1,580 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/* Design System Defaults */
|
|
2
|
+
.stldocs-root {
|
|
3
|
+
font-family: var(--stldocs-font);
|
|
4
|
+
background-color: var(--stldocs-color-bg);
|
|
5
|
+
color: var(--stldocs-color-text);
|
|
6
|
+
letter-spacing: -0.01em;
|
|
7
|
+
|
|
8
|
+
h1 {
|
|
9
|
+
font-size: var(--stldocs-font-size-h1);
|
|
10
|
+
letter-spacing: -0.03em;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h2 {
|
|
14
|
+
font-size: var(--stldocs-font-size-h2);
|
|
15
|
+
letter-spacing: -0.03em;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
h3 {
|
|
19
|
+
font-size: var(--stldocs-font-size-h3);
|
|
20
|
+
letter-spacing: -0.02em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
h4 {
|
|
24
|
+
font-size: var(--stldocs-font-size-h4);
|
|
25
|
+
letter-spacing: -0.02em;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
h5 {
|
|
29
|
+
font-size: var(--stldocs-font-size-h5);
|
|
30
|
+
letter-spacing: -0.02em;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Color mapping for types */
|
|
35
|
+
.stldocs-root {
|
|
36
|
+
.stldocs-text-keyword {
|
|
37
|
+
color: var(--stldocs-color-text-muted);
|
|
38
|
+
}
|
|
6
39
|
|
|
7
|
-
|
|
8
|
-
|
|
40
|
+
.stldocs-property-type,
|
|
41
|
+
.stldocs-property-declaration,
|
|
42
|
+
.stldocs-type:not(.stldocs-property-typename .stldocs-type) {
|
|
43
|
+
font-family: var(--stldocs-font-mono);
|
|
44
|
+
|
|
45
|
+
.stldocs-type-keyword {
|
|
46
|
+
color: var(--stldocs-syntax-color-orange);
|
|
9
47
|
}
|
|
10
48
|
|
|
11
|
-
|
|
12
|
-
|
|
49
|
+
.stldocs-type-string {
|
|
50
|
+
color: var(--stldocs-syntax-color-green);
|
|
13
51
|
}
|
|
14
52
|
|
|
15
|
-
|
|
16
|
-
|
|
53
|
+
.stldocs-type-brace,
|
|
54
|
+
.stldocs-type-bracket,
|
|
55
|
+
.stldocs-type-plain,
|
|
56
|
+
.stldocs-text-operator,
|
|
57
|
+
.stldocs-text-punctuation,
|
|
58
|
+
.stldocs-truncation,
|
|
59
|
+
.stldocs-type-array {
|
|
60
|
+
color: var(--stldocs-color-text-tertiary);
|
|
17
61
|
}
|
|
18
62
|
|
|
19
|
-
|
|
20
|
-
font-
|
|
63
|
+
.stldocs-type-plain {
|
|
64
|
+
font-family: var(--stldocs-font);
|
|
21
65
|
}
|
|
22
66
|
|
|
23
|
-
|
|
24
|
-
|
|
67
|
+
.stldocs-type-reference {
|
|
68
|
+
color: var(--stldocs-syntax-color-blue);
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
a:hover {
|
|
71
|
+
text-decoration: underline;
|
|
72
|
+
}
|
|
25
73
|
}
|
|
26
|
-
}
|
|
27
74
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.stldocs-text-keyword {
|
|
31
|
-
color: var(--stldocs-color-text-muted);
|
|
75
|
+
.stldocs-literal-string {
|
|
76
|
+
color: var(--stldocs-syntax-color-green);
|
|
32
77
|
}
|
|
33
78
|
|
|
34
|
-
.stldocs-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
font-family: var(--stldocs-font-mono);
|
|
79
|
+
.stldocs-literal-numeric {
|
|
80
|
+
color: var(--stldocs-syntax-color-orange);
|
|
81
|
+
}
|
|
38
82
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
83
|
+
.stldocs-text-identifier {
|
|
84
|
+
font-family: var(--stldocs-font-mono);
|
|
85
|
+
color: var(--stldocs-color-text);
|
|
86
|
+
}
|
|
42
87
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
88
|
+
.stldocs-type-propertyname .stldocs-text-identifier {
|
|
89
|
+
font-family: var(--stldocs-font);
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
46
93
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.stldocs-text-operator,
|
|
51
|
-
.stldocs-text-punctuation,
|
|
94
|
+
[data-stldocs-language='http'] {
|
|
95
|
+
.stldocs-property-type,
|
|
96
|
+
.stldocs-property-declaration {
|
|
52
97
|
.stldocs-truncation,
|
|
53
|
-
.stldocs-type-array
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.stldocs-type-plain {
|
|
98
|
+
.stldocs-type-array,
|
|
99
|
+
.stldocs-text-punctuation {
|
|
58
100
|
font-family: var(--stldocs-font);
|
|
59
101
|
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
60
105
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
106
|
+
/* HTTP Method Color Settings */
|
|
107
|
+
.stldocs-root .stldocs-method-route,
|
|
108
|
+
.stldocs-root .stldocs-sidebar-method {
|
|
109
|
+
[data-method='get'] {
|
|
110
|
+
background: var(--stldocs-color-http-get-bg);
|
|
111
|
+
color: var(--stldocs-color-http-get);
|
|
112
|
+
border-color: var(--stldocs-color-http-get);
|
|
113
|
+
}
|
|
65
114
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
115
|
+
[data-method='post'] {
|
|
116
|
+
background: var(--stldocs-color-http-post-bg);
|
|
117
|
+
color: var(--stldocs-color-http-post);
|
|
118
|
+
border-color: var(--stldocs-color-http-post);
|
|
119
|
+
}
|
|
69
120
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
121
|
+
[data-method='patch'],
|
|
122
|
+
[data-method='put'] {
|
|
123
|
+
background: var(--stldocs-color-http-put-bg);
|
|
124
|
+
color: var(--stldocs-color-http-put);
|
|
125
|
+
border-color: var(--stldocs-color-http-put);
|
|
126
|
+
}
|
|
73
127
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
128
|
+
[data-method='delete'] {
|
|
129
|
+
background: var(--stldocs-color-http-delete-bg);
|
|
130
|
+
color: var(--stldocs-color-http-delete);
|
|
131
|
+
border-color: var(--stldocs-color-http-delete);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
78
134
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
135
|
+
/* Generic expand/collapse button */
|
|
136
|
+
.stldocs-root .stldocs-expander {
|
|
137
|
+
&[data-stldocs-expander-muted='true'] {
|
|
138
|
+
.stldocs-icon {
|
|
139
|
+
visibility: hidden;
|
|
83
140
|
}
|
|
84
141
|
|
|
85
|
-
|
|
86
|
-
.stldocs-
|
|
87
|
-
|
|
88
|
-
.stldocs-truncation,
|
|
89
|
-
.stldocs-type-array,
|
|
90
|
-
.stldocs-text-punctuation {
|
|
91
|
-
font-family: var(--stldocs-font);
|
|
92
|
-
}
|
|
142
|
+
&:hover {
|
|
143
|
+
.stldocs-icon {
|
|
144
|
+
visibility: visible;
|
|
93
145
|
}
|
|
94
146
|
}
|
|
95
147
|
}
|
|
96
148
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
background: var(--stldocs-color-http-get-bg);
|
|
102
|
-
color: var(--stldocs-color-http-get);
|
|
103
|
-
border-color: var(--stldocs-color-http-get);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
[data-method='post'] {
|
|
107
|
-
background: var(--stldocs-color-http-post-bg);
|
|
108
|
-
color: var(--stldocs-color-http-post);
|
|
109
|
-
border-color: var(--stldocs-color-http-post);
|
|
110
|
-
}
|
|
149
|
+
.stldocs-expander-summary {
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
display: flex;
|
|
152
|
+
/* padding: 0.4rem 0; */
|
|
111
153
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
color: var(--stldocs-color-http-put);
|
|
116
|
-
border-color: var(--stldocs-color-http-put);
|
|
117
|
-
}
|
|
154
|
+
& > .stldocs-expander-summary-icon {
|
|
155
|
+
margin-right: 8px;
|
|
156
|
+
transform: translateX(-0.5px) translateY(-0.5px);
|
|
118
157
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* Generic expand/collapse button */
|
|
127
|
-
.stldocs-root .stldocs-expander {
|
|
128
|
-
&[data-stldocs-expander-muted='true'] {
|
|
129
|
-
.stldocs-icon {
|
|
130
|
-
visibility: hidden;
|
|
158
|
+
& > .stldocs-icon {
|
|
159
|
+
vertical-align: middle;
|
|
160
|
+
color: var(--stldocs-color-text-tertiary);
|
|
161
|
+
background-color: var(--stldocs-color-bg);
|
|
131
162
|
}
|
|
132
163
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
visibility: visible;
|
|
136
|
-
}
|
|
164
|
+
& > :last-child {
|
|
165
|
+
display: none;
|
|
137
166
|
}
|
|
138
167
|
}
|
|
168
|
+
}
|
|
139
169
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
170
|
+
&[open],
|
|
171
|
+
&[data-open='true'] {
|
|
172
|
+
& > .stldocs-expander-summary {
|
|
173
|
+
.stldocs-type-preview-content {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
144
176
|
|
|
145
177
|
& > .stldocs-expander-summary-icon {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
& > .stldocs-icon {
|
|
150
|
-
vertical-align: middle;
|
|
151
|
-
color: var(--stldocs-color-text-tertiary);
|
|
152
|
-
background-color: var(--stldocs-color-bg);
|
|
178
|
+
& > :first-child {
|
|
179
|
+
display: none;
|
|
153
180
|
}
|
|
154
181
|
|
|
155
182
|
& > :last-child {
|
|
156
|
-
display:
|
|
183
|
+
display: inline;
|
|
157
184
|
}
|
|
158
185
|
}
|
|
159
186
|
}
|
|
160
187
|
|
|
161
|
-
&
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
.stldocs-type-preview-content {
|
|
165
|
-
display: none;
|
|
166
|
-
}
|
|
188
|
+
& > .stldocs-expander-content {
|
|
189
|
+
margin-left: var(--stldocs-expander-margin-shift);
|
|
190
|
+
line-height: 150%;
|
|
167
191
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
192
|
+
& > .stldocs-property-children {
|
|
193
|
+
border-left: 1px solid var(--stldocs-color-hairline-light);
|
|
194
|
+
padding-left: 16px;
|
|
172
195
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
196
|
+
.stldocs-expander {
|
|
197
|
+
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
198
|
+
padding-right: var(--stldocs-expander-right-margin);
|
|
176
199
|
}
|
|
177
200
|
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
178
204
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
205
|
+
/* Markdown content */
|
|
206
|
+
.stldocs-root .stldocs-content {
|
|
207
|
+
a {
|
|
208
|
+
color: var(--stldocs-color-text-accent);
|
|
209
|
+
}
|
|
182
210
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
211
|
+
code {
|
|
212
|
+
font-family: var(--stldocs-font-mono);
|
|
213
|
+
border-radius: 4px;
|
|
214
|
+
padding: 0 4px;
|
|
215
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
216
|
+
word-break: break-all;
|
|
217
|
+
font-size: 0.84rem;
|
|
218
|
+
}
|
|
186
219
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
padding-right: var(--stldocs-expander-right-margin);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
220
|
+
strong {
|
|
221
|
+
font-weight: bold;
|
|
194
222
|
}
|
|
195
223
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
color: var(--stldocs-color-text-accent);
|
|
200
|
-
}
|
|
224
|
+
em {
|
|
225
|
+
font-style: italic;
|
|
226
|
+
}
|
|
201
227
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
padding: 0 4px;
|
|
206
|
-
background-color: var(--stldocs-color-bg-inline-code);
|
|
207
|
-
word-break: break-all;
|
|
208
|
-
font-size: 0.84rem;
|
|
209
|
-
}
|
|
228
|
+
p {
|
|
229
|
+
display: block;
|
|
230
|
+
margin: 0 0 1em;
|
|
210
231
|
|
|
211
|
-
|
|
212
|
-
|
|
232
|
+
&:last-child {
|
|
233
|
+
margin: 0;
|
|
213
234
|
}
|
|
235
|
+
}
|
|
214
236
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
237
|
+
li {
|
|
238
|
+
margin-bottom: 0.25rem;
|
|
239
|
+
display: list-item;
|
|
240
|
+
}
|
|
218
241
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
242
|
+
ol,
|
|
243
|
+
ul {
|
|
244
|
+
display: block;
|
|
245
|
+
list-style-type: initial;
|
|
246
|
+
margin-left: 2rem;
|
|
247
|
+
margin-bottom: 0.8rem;
|
|
248
|
+
}
|
|
222
249
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
250
|
+
ol {
|
|
251
|
+
list-style-type: decimal;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
227
254
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
255
|
+
.stldocs-root .stldocs-input {
|
|
256
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
257
|
+
border-radius: 0.3rem;
|
|
258
|
+
padding: 0.5rem;
|
|
259
|
+
display: flex;
|
|
260
|
+
gap: 0.5rem;
|
|
232
261
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
list-style-type: initial;
|
|
237
|
-
margin-left: 2rem;
|
|
238
|
-
margin-bottom: 0.8rem;
|
|
239
|
-
}
|
|
262
|
+
input {
|
|
263
|
+
flex-grow: 1;
|
|
264
|
+
}
|
|
240
265
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
266
|
+
.stldocs-icon {
|
|
267
|
+
margin-top: auto;
|
|
268
|
+
margin-bottom: auto;
|
|
244
269
|
}
|
|
270
|
+
}
|
|
245
271
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
border-radius: 0.3rem;
|
|
249
|
-
padding: 0.5rem;
|
|
250
|
-
display: flex;
|
|
251
|
-
gap: 0.5rem;
|
|
272
|
+
.stldocs-root .stldocs-listview {
|
|
273
|
+
overflow-y: scroll;
|
|
252
274
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
275
|
+
.stldocs-listview-item:not(:last-child) {
|
|
276
|
+
border-bottom: 1px solid var(--stldocs-color-hairline);
|
|
277
|
+
}
|
|
256
278
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
279
|
+
[data-stldocs-listview-selected='true'] > :first-child {
|
|
280
|
+
background-color: var(--stldocs-color-selected);
|
|
281
|
+
border-radius: 0.5rem;
|
|
261
282
|
}
|
|
283
|
+
}
|
|
262
284
|
|
|
263
|
-
|
|
264
|
-
|
|
285
|
+
.stldocs-root {
|
|
286
|
+
.stldocs-tooltip-host {
|
|
287
|
+
display: inline-block;
|
|
288
|
+
}
|
|
265
289
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
290
|
+
.stldocs-tooltip-content {
|
|
291
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
292
|
+
background: var(--stldocs-color-bg);
|
|
293
|
+
border-radius: 8px;
|
|
294
|
+
padding: 0.2rem 0.4rem;
|
|
269
295
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
border-radius: 0.5rem;
|
|
296
|
+
* {
|
|
297
|
+
font-size: 0.8rem !important;
|
|
273
298
|
}
|
|
274
|
-
}
|
|
275
299
|
|
|
276
|
-
|
|
277
|
-
.stldocs-tooltip-host {
|
|
278
|
-
display: inline-block;
|
|
279
|
-
}
|
|
300
|
+
position: absolute;
|
|
280
301
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
302
|
+
transition:
|
|
303
|
+
opacity 0.3s ease-in-out,
|
|
304
|
+
visibility 0.3s step-end 0.3s;
|
|
305
|
+
visibility: hidden;
|
|
306
|
+
opacity: 0;
|
|
286
307
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
308
|
+
max-width: 400px;
|
|
309
|
+
max-height: 300px;
|
|
310
|
+
overflow: auto;
|
|
290
311
|
|
|
291
|
-
|
|
312
|
+
.stldocs-property-description {
|
|
313
|
+
display: none;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
292
316
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
317
|
+
.stldocs-tooltip:hover .stldocs-tooltip-content {
|
|
318
|
+
transition-delay: 0s, 0s;
|
|
319
|
+
visibility: visible;
|
|
320
|
+
opacity: 1;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
298
323
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
324
|
+
.stldocs-root {
|
|
325
|
+
.stldocs-breadcrumbs {
|
|
326
|
+
display: flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
gap: 0.5rem;
|
|
302
329
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
330
|
+
svg {
|
|
331
|
+
width: 1rem;
|
|
332
|
+
min-width: 1rem;
|
|
333
|
+
stroke: var(--stldocs-color-text-secondary);
|
|
334
|
+
opacity: 0.25;
|
|
335
|
+
margin: 0;
|
|
306
336
|
}
|
|
307
337
|
|
|
308
|
-
.stldocs-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
338
|
+
.stldocs-breadcrumbs-non-link,
|
|
339
|
+
.stldocs-breadcrumbs-link {
|
|
340
|
+
color: var(--stldocs-color-text-secondary);
|
|
341
|
+
font-size: var(--stldocs-font-size-small);
|
|
342
|
+
line-height: 150%;
|
|
343
|
+
text-decoration: none;
|
|
312
344
|
}
|
|
313
|
-
}
|
|
314
345
|
|
|
315
|
-
|
|
316
|
-
|
|
346
|
+
.stldocs-breadcrumbs-link:hover {
|
|
347
|
+
text-decoration: underline;
|
|
348
|
+
color: var(--stldocs-color-text);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.stldocs-breadcrumbs-item {
|
|
317
352
|
display: flex;
|
|
318
353
|
align-items: center;
|
|
319
354
|
gap: 0.5rem;
|
|
355
|
+
margin: 0;
|
|
356
|
+
height: var(--stldocs-button-size);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
320
359
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
opacity: 0.25;
|
|
326
|
-
margin: 0;
|
|
327
|
-
}
|
|
360
|
+
/* Dropdown component styles */
|
|
361
|
+
.stldocs-dropdown {
|
|
362
|
+
position: relative;
|
|
363
|
+
font-size: 0.85rem;
|
|
328
364
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
365
|
+
span {
|
|
366
|
+
display: flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
justify-content: center;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
336
371
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
372
|
+
.stldocs-dropdown-trigger {
|
|
373
|
+
display: flex;
|
|
374
|
+
align-items: center;
|
|
375
|
+
justify-content: space-between;
|
|
376
|
+
gap: 6px;
|
|
377
|
+
padding: 0.5rem;
|
|
341
378
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
gap: 0.5rem;
|
|
346
|
-
margin: 0;
|
|
347
|
-
height: var(--stldocs-button-size);
|
|
348
|
-
}
|
|
379
|
+
.stldocs-icon {
|
|
380
|
+
margin: unset;
|
|
381
|
+
width: 16px;
|
|
349
382
|
}
|
|
350
383
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
position: relative;
|
|
354
|
-
font-size: 0.85rem;
|
|
355
|
-
|
|
356
|
-
span {
|
|
357
|
-
display: flex;
|
|
358
|
-
align-items: center;
|
|
359
|
-
justify-content: center;
|
|
360
|
-
}
|
|
384
|
+
&:hover {
|
|
385
|
+
border-color: var(--stldocs-color-hairline-shade);
|
|
361
386
|
}
|
|
387
|
+
}
|
|
362
388
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
padding: 0.5rem;
|
|
389
|
+
.stldocs-dropdown-trigger-content {
|
|
390
|
+
display: flex;
|
|
391
|
+
align-items: center;
|
|
392
|
+
gap: 8px;
|
|
393
|
+
}
|
|
369
394
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
395
|
+
.stldocs-dropdown-chevron {
|
|
396
|
+
margin-right: calc(-1 * var(--sl-button-icon-offset));
|
|
397
|
+
padding: 0;
|
|
398
|
+
opacity: 0.25;
|
|
399
|
+
}
|
|
374
400
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
401
|
+
.stldocs-dropdown-chevron svg path {
|
|
402
|
+
stroke: var(--stldocs-color-text-secondary);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.stldocs-dropdown-menu {
|
|
406
|
+
position: absolute;
|
|
407
|
+
right: 0;
|
|
408
|
+
bottom: 100%;
|
|
409
|
+
z-index: var(--stldocs-z-index-theme-select);
|
|
410
|
+
background: var(--stldocs-color-bg);
|
|
411
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
412
|
+
border-radius: var(--stldocs-button-border-radius);
|
|
413
|
+
margin-bottom: 4px;
|
|
414
|
+
padding: 0;
|
|
415
|
+
width: 100%;
|
|
416
|
+
min-width: 100px;
|
|
417
|
+
overflow: hidden;
|
|
418
|
+
display: none;
|
|
419
|
+
box-shadow: 0px 4px 4px -2px #00000014;
|
|
420
|
+
|
|
421
|
+
&.below {
|
|
422
|
+
margin-bottom: unset;
|
|
423
|
+
bottom: unset;
|
|
424
|
+
top: 100%;
|
|
425
|
+
margin-top: 4px;
|
|
378
426
|
}
|
|
427
|
+
}
|
|
379
428
|
|
|
380
|
-
|
|
429
|
+
.stldocs-dropdown-menu.open {
|
|
430
|
+
display: block;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.stldocs-dropdown-item {
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
justify-content: space-between;
|
|
437
|
+
gap: 8px;
|
|
438
|
+
padding: 6px 10px;
|
|
439
|
+
cursor: pointer;
|
|
440
|
+
height: 32px;
|
|
441
|
+
|
|
442
|
+
div {
|
|
381
443
|
display: flex;
|
|
382
444
|
align-items: center;
|
|
383
445
|
gap: 8px;
|
|
384
446
|
}
|
|
385
447
|
|
|
386
|
-
.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
opacity: 0.25;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.stldocs-dropdown-chevron svg path {
|
|
393
|
-
stroke: var(--stldocs-color-text-secondary);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.stldocs-dropdown-menu {
|
|
397
|
-
position: absolute;
|
|
398
|
-
right: 0;
|
|
399
|
-
bottom: 100%;
|
|
400
|
-
z-index: var(--stldocs-z-index-theme-select);
|
|
401
|
-
background: var(--stldocs-color-bg);
|
|
402
|
-
border: 1px solid var(--stldocs-color-hairline);
|
|
403
|
-
border-radius: var(--stldocs-button-border-radius);
|
|
404
|
-
margin-bottom: 4px;
|
|
405
|
-
padding: 0;
|
|
406
|
-
width: 100%;
|
|
407
|
-
min-width: 100px;
|
|
408
|
-
overflow: hidden;
|
|
448
|
+
.lucide-check {
|
|
449
|
+
height: var(--stlodcs-font-size-body);
|
|
450
|
+
width: var(--stlodcs-font-size-body);
|
|
409
451
|
display: none;
|
|
410
|
-
box-shadow: 0px 4px 4px -2px #00000014;
|
|
411
|
-
|
|
412
|
-
&.below {
|
|
413
|
-
margin-bottom: unset;
|
|
414
|
-
bottom: unset;
|
|
415
|
-
top: 100%;
|
|
416
|
-
margin-top: 4px;
|
|
417
|
-
}
|
|
418
452
|
}
|
|
419
453
|
|
|
420
|
-
.stldocs-
|
|
421
|
-
|
|
454
|
+
.stldocs-icon {
|
|
455
|
+
width: 16px;
|
|
422
456
|
}
|
|
423
457
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
gap: 8px;
|
|
429
|
-
padding: 6px 10px;
|
|
430
|
-
cursor: pointer;
|
|
431
|
-
height: 32px;
|
|
458
|
+
&.stldocs-dropdown-item-link {
|
|
459
|
+
padding: 0;
|
|
460
|
+
height: unset;
|
|
461
|
+
gap: 0;
|
|
432
462
|
|
|
433
|
-
|
|
463
|
+
a {
|
|
434
464
|
display: flex;
|
|
435
465
|
align-items: center;
|
|
466
|
+
justify-content: space-between;
|
|
436
467
|
gap: 8px;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.stldocs-icon {
|
|
446
|
-
width: 16px;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
&.stldocs-dropdown-item-link {
|
|
450
|
-
padding: 0;
|
|
451
|
-
height: unset;
|
|
452
|
-
gap: 0;
|
|
453
|
-
|
|
454
|
-
a {
|
|
455
|
-
display: flex;
|
|
456
|
-
align-items: center;
|
|
457
|
-
justify-content: space-between;
|
|
458
|
-
gap: 8px;
|
|
459
|
-
padding: 6px 10px;
|
|
460
|
-
cursor: pointer;
|
|
461
|
-
height: 32px;
|
|
462
|
-
width: 100%;
|
|
463
|
-
text-decoration: none;
|
|
464
|
-
color: inherit;
|
|
465
|
-
}
|
|
468
|
+
padding: 6px 10px;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
height: 32px;
|
|
471
|
+
width: 100%;
|
|
472
|
+
text-decoration: none;
|
|
473
|
+
color: inherit;
|
|
466
474
|
}
|
|
467
475
|
}
|
|
476
|
+
}
|
|
468
477
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
478
|
+
.stldocs-dropdown-item:hover {
|
|
479
|
+
background-color: var(--stldocs-color-bg-inline-code);
|
|
480
|
+
}
|
|
472
481
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
482
|
+
.stldocs-dropdown-item.selected {
|
|
483
|
+
.lucide-check {
|
|
484
|
+
display: inline;
|
|
477
485
|
}
|
|
486
|
+
}
|
|
478
487
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}
|
|
488
|
+
@media (min-width: 50rem) {
|
|
489
|
+
.stldocs-dropdown-menu {
|
|
490
|
+
margin-bottom: unset;
|
|
491
|
+
bottom: unset;
|
|
492
|
+
top: 100%;
|
|
493
|
+
margin-top: 4px;
|
|
486
494
|
}
|
|
487
495
|
}
|
|
496
|
+
}
|
|
488
497
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
498
|
+
/* Intentionally not using the stldocs-root selector here, as buttons are sometimes outside the stldocs-root. */
|
|
499
|
+
.stldocs-button {
|
|
500
|
+
border-radius: var(--stldocs-button-border-radius);
|
|
501
|
+
display: flex;
|
|
502
|
+
padding: var(--stldocs-button-padding-y) var(--stldocs-button-padding-x);
|
|
503
|
+
justify-content: center;
|
|
504
|
+
align-items: center;
|
|
505
|
+
height: var(--stldocs-button-size);
|
|
506
|
+
cursor: pointer;
|
|
507
|
+
text-decoration: none;
|
|
508
|
+
text-wrap: nowrap;
|
|
509
|
+
font-weight: 500;
|
|
510
|
+
line-height: 150%;
|
|
511
|
+
font-size: var(--sl-text-sm);
|
|
512
|
+
|
|
513
|
+
span {
|
|
514
|
+
padding-left: var(--sl-button-icon-offset);
|
|
515
|
+
padding-right: var(--sl-button-icon-offset);
|
|
502
516
|
font-size: var(--sl-text-sm);
|
|
503
|
-
|
|
504
|
-
span {
|
|
505
|
-
padding-left: var(--sl-button-icon-offset);
|
|
506
|
-
padding-right: var(--sl-button-icon-offset);
|
|
507
|
-
font-size: var(--sl-text-sm);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
&.stldocs-button-icon {
|
|
511
|
-
> svg {
|
|
512
|
-
margin: 0;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
517
|
}
|
|
516
518
|
|
|
517
|
-
|
|
519
|
+
&.stldocs-button-icon {
|
|
518
520
|
> svg {
|
|
519
521
|
margin: 0;
|
|
520
522
|
}
|
|
521
523
|
}
|
|
524
|
+
}
|
|
522
525
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
+
.stldocs-button-icon {
|
|
527
|
+
> svg {
|
|
528
|
+
margin: 0;
|
|
526
529
|
}
|
|
530
|
+
}
|
|
527
531
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
font-weight: 400;
|
|
532
|
+
.stldocs-button-primary {
|
|
533
|
+
background-color: var(--stldocs-color-text);
|
|
534
|
+
color: var(--stldocs-color-text-invert);
|
|
535
|
+
}
|
|
533
536
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
537
|
+
.stldocs-button-secondary {
|
|
538
|
+
background-color: var(--stldocs-color-bg-ui);
|
|
539
|
+
border: 1px solid var(--stldocs-color-hairline);
|
|
540
|
+
border-radius: var(--stldocs-button-border-radius);
|
|
541
|
+
font-weight: 400;
|
|
538
542
|
|
|
539
|
-
|
|
540
|
-
border:
|
|
541
|
-
color: var(--stldocs-color-text-secondary);
|
|
542
|
-
background-color: transparent;
|
|
543
|
+
&:hover {
|
|
544
|
+
border-color: var(--stldocs-color-hairline-shade);
|
|
543
545
|
}
|
|
546
|
+
}
|
|
544
547
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
user-select: none;
|
|
548
|
+
.stldocs-button-tertiary {
|
|
549
|
+
border: none;
|
|
550
|
+
color: var(--stldocs-color-text-secondary);
|
|
551
|
+
background-color: transparent;
|
|
552
|
+
}
|
|
551
553
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
554
|
+
.stldocs-root .stldocs-expand-toggle {
|
|
555
|
+
font-size: var(--stldocs-font-size-body);
|
|
556
|
+
display: flex;
|
|
557
|
+
flex-grow: 1;
|
|
558
|
+
justify-content: flex-end;
|
|
559
|
+
user-select: none;
|
|
560
|
+
|
|
561
|
+
&[data-stldocs-property-toggle-expanded='false'] {
|
|
562
|
+
.stldocs-expand-toggle-content:last-child {
|
|
563
|
+
display: none;
|
|
556
564
|
}
|
|
565
|
+
}
|
|
557
566
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
567
|
+
&[data-stldocs-property-toggle-expanded='true'] {
|
|
568
|
+
.stldocs-expand-toggle-content:first-child {
|
|
569
|
+
display: none;
|
|
562
570
|
}
|
|
571
|
+
}
|
|
563
572
|
|
|
564
|
-
|
|
565
|
-
|
|
573
|
+
.stldocs-expand-toggle-content {
|
|
574
|
+
cursor: pointer;
|
|
566
575
|
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
576
|
+
.stldocs-icon {
|
|
577
|
+
vertical-align: middle;
|
|
570
578
|
}
|
|
571
579
|
}
|
|
572
580
|
}
|