@charcoal-ui/styled 3.3.0-beta.0 → 3.4.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@charcoal-ui/styled",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"typescript": "^4.9.5"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@charcoal-ui/foundation": "^3.
|
|
36
|
-
"@charcoal-ui/theme": "^3.
|
|
37
|
-
"@charcoal-ui/utils": "^3.
|
|
35
|
+
"@charcoal-ui/foundation": "^3.4.0",
|
|
36
|
+
"@charcoal-ui/theme": "^3.4.0",
|
|
37
|
+
"@charcoal-ui/utils": "^3.4.0",
|
|
38
38
|
"warning": "^4.0.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"url": "https://github.com/pixiv/charcoal.git",
|
|
54
54
|
"directory": "packages/styled"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "7dfd71a612eea1c78e4b4978367ba99af72394cc"
|
|
57
57
|
}
|
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Storyshots styled Example 1`] = `
|
|
4
|
+
.c1 {
|
|
5
|
+
background-color: var(--charcoal-surface3);
|
|
6
|
+
color: var(--charcoal-text4);
|
|
7
|
+
font-size: 32px;
|
|
8
|
+
line-height: 40px;
|
|
9
|
+
font-family: monospace;
|
|
10
|
+
display: flow-root;
|
|
11
|
+
margin-top: 24px;
|
|
12
|
+
margin-bottom: 24px;
|
|
13
|
+
padding-top: 64px;
|
|
14
|
+
padding-left: 64px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.c1::before {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 0;
|
|
20
|
+
height: 0;
|
|
21
|
+
content: '';
|
|
22
|
+
margin-top: -4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.c1::after {
|
|
26
|
+
display: block;
|
|
27
|
+
width: 0;
|
|
28
|
+
height: 0;
|
|
29
|
+
content: '';
|
|
30
|
+
margin-bottom: -4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.c0 {
|
|
34
|
+
background-color: var(--charcoal-surface2);
|
|
35
|
+
color: var(--charcoal-text2);
|
|
36
|
+
font-size: 20px;
|
|
37
|
+
line-height: 28px;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
padding-top: 36px;
|
|
40
|
+
padding-bottom: 36px;
|
|
41
|
+
padding-right: 40px;
|
|
42
|
+
padding-left: 40px;
|
|
43
|
+
margin-top: 24px;
|
|
44
|
+
margin-bottom: 24px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.c2 {
|
|
48
|
+
background-color: var(--charcoal-surface2);
|
|
49
|
+
padding-top: 40px;
|
|
50
|
+
padding-bottom: 40px;
|
|
51
|
+
padding-right: 40px;
|
|
52
|
+
padding-left: 40px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.c3 {
|
|
56
|
+
background-color: var(--charcoal-surface4);
|
|
57
|
+
color: var(--charcoal-text5);
|
|
58
|
+
font-size: 20px;
|
|
59
|
+
line-height: 28px;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
display: flow-root;
|
|
62
|
+
height: 40px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.c3::before {
|
|
66
|
+
display: block;
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
content: '';
|
|
70
|
+
margin-top: -4px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.c3::after {
|
|
74
|
+
display: block;
|
|
75
|
+
width: 0;
|
|
76
|
+
height: 0;
|
|
77
|
+
content: '';
|
|
78
|
+
margin-bottom: -4px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.c4 {
|
|
82
|
+
background-color: var(--charcoal-surface3);
|
|
83
|
+
color: var(--charcoal-text1);
|
|
84
|
+
font-size: 16px;
|
|
85
|
+
line-height: 24px;
|
|
86
|
+
display: flow-root;
|
|
87
|
+
width: 392px;
|
|
88
|
+
margin-top: 24px;
|
|
89
|
+
margin-bottom: 24px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.c4::before {
|
|
93
|
+
display: block;
|
|
94
|
+
width: 0;
|
|
95
|
+
height: 0;
|
|
96
|
+
content: '';
|
|
97
|
+
margin-top: -4px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.c4::after {
|
|
101
|
+
display: block;
|
|
102
|
+
width: 0;
|
|
103
|
+
height: 0;
|
|
104
|
+
content: '';
|
|
105
|
+
margin-bottom: -4px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.c5 {
|
|
109
|
+
height: 64px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.c6 {
|
|
113
|
+
background-color: var(--charcoal-surface4);
|
|
114
|
+
color: var(--charcoal-text5);
|
|
115
|
+
font-size: 20px;
|
|
116
|
+
line-height: 28px;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
margin-top: 64px;
|
|
119
|
+
margin-bottom: 24px;
|
|
120
|
+
padding-top: 60px;
|
|
121
|
+
padding-bottom: 60px;
|
|
122
|
+
padding-right: 64px;
|
|
123
|
+
padding-left: 64px;
|
|
124
|
+
-webkit-transition: 0.2s color,0.2s background-color;
|
|
125
|
+
transition: 0.2s color,0.2s background-color;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.c6:hover:not(:disabled):not([aria-disabled]),
|
|
129
|
+
.c6:hover[aria-disabled=false] {
|
|
130
|
+
background-color: var(--charcoal-surface4-hover);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.c6:active:not(:disabled):not([aria-disabled]),
|
|
134
|
+
.c6:active[aria-disabled=false] {
|
|
135
|
+
background-color: var(--charcoal-surface4-press);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.c6:hover:not(:disabled):not([aria-disabled]),
|
|
139
|
+
.c6:hover[aria-disabled=false] {
|
|
140
|
+
color: var(--charcoal-text5-hover);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.c6:active:not(:disabled):not([aria-disabled]),
|
|
144
|
+
.c6:active[aria-disabled=false] {
|
|
145
|
+
color: var(--charcoal-text5-press);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.c8 {
|
|
149
|
+
background-color: var(--charcoal-surface3);
|
|
150
|
+
font-size: 16px;
|
|
151
|
+
line-height: 24px;
|
|
152
|
+
font-weight: bold;
|
|
153
|
+
display: flow-root;
|
|
154
|
+
margin-top: 24px;
|
|
155
|
+
margin-bottom: 24px;
|
|
156
|
+
padding-top: 24px;
|
|
157
|
+
padding-bottom: 24px;
|
|
158
|
+
padding-right: 24px;
|
|
159
|
+
padding-left: 24px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.c8::before {
|
|
163
|
+
display: block;
|
|
164
|
+
width: 0;
|
|
165
|
+
height: 0;
|
|
166
|
+
content: '';
|
|
167
|
+
margin-top: -4px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.c8::after {
|
|
171
|
+
display: block;
|
|
172
|
+
width: 0;
|
|
173
|
+
height: 0;
|
|
174
|
+
content: '';
|
|
175
|
+
margin-bottom: -4px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.c7 {
|
|
179
|
+
background-color: var(--charcoal-surface3);
|
|
180
|
+
font-size: 16px;
|
|
181
|
+
line-height: 24px;
|
|
182
|
+
font-weight: bold;
|
|
183
|
+
padding-top: 20px;
|
|
184
|
+
padding-bottom: 20px;
|
|
185
|
+
padding-right: 24px;
|
|
186
|
+
padding-left: 24px;
|
|
187
|
+
margin-top: 24px;
|
|
188
|
+
margin-bottom: 24px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.c9 {
|
|
192
|
+
background-color: var(--charcoal-surface3);
|
|
193
|
+
font-size: 16px;
|
|
194
|
+
line-height: 24px;
|
|
195
|
+
font-weight: bold;
|
|
196
|
+
padding-top: 24px;
|
|
197
|
+
padding-bottom: 24px;
|
|
198
|
+
padding-right: 24px;
|
|
199
|
+
padding-left: 24px;
|
|
200
|
+
margin-top: 24px;
|
|
201
|
+
margin-bottom: 24px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.c10 {
|
|
205
|
+
background-color: var(--charcoal-surface3);
|
|
206
|
+
color: var(--charcoal-text2);
|
|
207
|
+
font-size: 20px;
|
|
208
|
+
line-height: 28px;
|
|
209
|
+
font-weight: bold;
|
|
210
|
+
display: flow-root;
|
|
211
|
+
width: 288px;
|
|
212
|
+
height: 64px;
|
|
213
|
+
margin-top: 24px;
|
|
214
|
+
margin-bottom: 24px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.c10::before {
|
|
218
|
+
display: block;
|
|
219
|
+
width: 0;
|
|
220
|
+
height: 0;
|
|
221
|
+
content: '';
|
|
222
|
+
margin-top: -4px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.c10::after {
|
|
226
|
+
display: block;
|
|
227
|
+
width: 0;
|
|
228
|
+
height: 0;
|
|
229
|
+
content: '';
|
|
230
|
+
margin-bottom: -4px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.c11 {
|
|
234
|
+
display: grid;
|
|
235
|
+
grid-auto-flow: column;
|
|
236
|
+
-webkit-box-pack: start;
|
|
237
|
+
-webkit-justify-content: start;
|
|
238
|
+
-ms-flex-pack: start;
|
|
239
|
+
justify-content: start;
|
|
240
|
+
gap: 16px;
|
|
241
|
+
margin-top: 24px;
|
|
242
|
+
margin-bottom: 24px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.c12 {
|
|
246
|
+
font: inherit;
|
|
247
|
+
-webkit-appearance: none;
|
|
248
|
+
-moz-appearance: none;
|
|
249
|
+
appearance: none;
|
|
250
|
+
border-style: none;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
background-color: var(--charcoal-brand);
|
|
253
|
+
color: var(--charcoal-text5);
|
|
254
|
+
font-size: 14px;
|
|
255
|
+
line-height: 22px;
|
|
256
|
+
font-weight: bold;
|
|
257
|
+
display: flow-root;
|
|
258
|
+
height: 40px;
|
|
259
|
+
padding-right: 24px;
|
|
260
|
+
padding-left: 24px;
|
|
261
|
+
border-radius: 999999px;
|
|
262
|
+
-webkit-transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
263
|
+
transition: 0.2s color,0.2s background-color,0.2s box-shadow;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.c12:focus {
|
|
267
|
+
outline: none;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.c12:hover:not(:disabled):not([aria-disabled]),
|
|
271
|
+
.c12:hover[aria-disabled=false] {
|
|
272
|
+
background-color: var(--charcoal-brand-hover);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.c12:active:not(:disabled):not([aria-disabled]),
|
|
276
|
+
.c12:active[aria-disabled=false] {
|
|
277
|
+
background-color: var(--charcoal-brand-press);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.c12:hover:not(:disabled):not([aria-disabled]),
|
|
281
|
+
.c12:hover[aria-disabled=false] {
|
|
282
|
+
color: var(--charcoal-text5-hover);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.c12:active:not(:disabled):not([aria-disabled]),
|
|
286
|
+
.c12:active[aria-disabled=false] {
|
|
287
|
+
color: var(--charcoal-text5-press);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.c12::before {
|
|
291
|
+
display: block;
|
|
292
|
+
width: 0;
|
|
293
|
+
height: 0;
|
|
294
|
+
content: '';
|
|
295
|
+
margin-top: -4px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.c12::after {
|
|
299
|
+
display: block;
|
|
300
|
+
width: 0;
|
|
301
|
+
height: 0;
|
|
302
|
+
content: '';
|
|
303
|
+
margin-bottom: -4px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.c12:disabled,
|
|
307
|
+
.c12[aria-disabled]:not([aria-disabled=false]) {
|
|
308
|
+
opacity: 0.32;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
312
|
+
.c12[aria-disabled=false]:focus,
|
|
313
|
+
.c12:not(:disabled):not([aria-disabled]):active,
|
|
314
|
+
.c12[aria-disabled=false]:active {
|
|
315
|
+
outline: none;
|
|
316
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.c12:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
320
|
+
.c12[aria-disabled=false]:focus:not(:focus-visible),
|
|
321
|
+
.c12:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
322
|
+
.c12[aria-disabled=false]:active:not(:focus-visible) {
|
|
323
|
+
outline: none;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
327
|
+
.c12[aria-disabled=false]:focus-visible {
|
|
328
|
+
outline: none;
|
|
329
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.c12:disabled,
|
|
333
|
+
.c12[aria-disabled]:not([aria-disabled=false]) {
|
|
334
|
+
cursor: unset;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.c13 {
|
|
338
|
+
font: inherit;
|
|
339
|
+
-webkit-appearance: none;
|
|
340
|
+
-moz-appearance: none;
|
|
341
|
+
appearance: none;
|
|
342
|
+
border-style: none;
|
|
343
|
+
height: 40px;
|
|
344
|
+
width: 184px;
|
|
345
|
+
padding-top: 0px;
|
|
346
|
+
padding-bottom: 0px;
|
|
347
|
+
padding-right: 8px;
|
|
348
|
+
padding-left: 8px;
|
|
349
|
+
border-radius: 4px;
|
|
350
|
+
background-color: var(--charcoal-surface3);
|
|
351
|
+
color: var(--charcoal-text2);
|
|
352
|
+
font-size: 14px;
|
|
353
|
+
line-height: 22px;
|
|
354
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
355
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.c13:focus {
|
|
359
|
+
outline: none;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.c13:hover:not(:disabled):not([aria-disabled]),
|
|
363
|
+
.c13:hover[aria-disabled=false] {
|
|
364
|
+
background-color: var(--charcoal-surface3-hover);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.c13:disabled,
|
|
368
|
+
.c13[aria-disabled]:not([aria-disabled=false]) {
|
|
369
|
+
opacity: 0.32;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.c13:not(:disabled):not([aria-disabled]):focus,
|
|
373
|
+
.c13[aria-disabled=false]:focus,
|
|
374
|
+
.c13:not(:disabled):not([aria-disabled]):active,
|
|
375
|
+
.c13[aria-disabled=false]:active {
|
|
376
|
+
outline: none;
|
|
377
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.c13:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
381
|
+
.c13[aria-disabled=false]:focus:not(:focus-visible),
|
|
382
|
+
.c13:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
383
|
+
.c13[aria-disabled=false]:active:not(:focus-visible) {
|
|
384
|
+
outline: none;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.c13:not(:disabled):not([aria-disabled]):focus-visible,
|
|
388
|
+
.c13[aria-disabled=false]:focus-visible {
|
|
389
|
+
outline: none;
|
|
390
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.c14 {
|
|
394
|
+
font: inherit;
|
|
395
|
+
-webkit-appearance: none;
|
|
396
|
+
-moz-appearance: none;
|
|
397
|
+
appearance: none;
|
|
398
|
+
border-style: none;
|
|
399
|
+
height: 40px;
|
|
400
|
+
width: 184px;
|
|
401
|
+
padding-top: 0px;
|
|
402
|
+
padding-bottom: 0px;
|
|
403
|
+
padding-right: 8px;
|
|
404
|
+
padding-left: 8px;
|
|
405
|
+
border-radius: 4px;
|
|
406
|
+
background-color: var(--charcoal-surface3);
|
|
407
|
+
color: var(--charcoal-text2);
|
|
408
|
+
font-size: 14px;
|
|
409
|
+
line-height: 22px;
|
|
410
|
+
-webkit-transition: 0.2s background-color,0.2s box-shadow;
|
|
411
|
+
transition: 0.2s background-color,0.2s box-shadow;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.c14:focus {
|
|
415
|
+
outline: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.c14:hover:not(:disabled):not([aria-disabled]),
|
|
419
|
+
.c14:hover[aria-disabled=false] {
|
|
420
|
+
background-color: var(--charcoal-surface3-hover);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.c14:disabled,
|
|
424
|
+
.c14[aria-disabled]:not([aria-disabled=false]) {
|
|
425
|
+
opacity: 0.32;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.c14:not(:disabled):not([aria-disabled]):focus,
|
|
429
|
+
.c14[aria-disabled=false]:focus,
|
|
430
|
+
.c14:not(:disabled):not([aria-disabled]):active,
|
|
431
|
+
.c14[aria-disabled=false]:active {
|
|
432
|
+
outline: none;
|
|
433
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.c14:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
437
|
+
.c14[aria-disabled=false]:focus:not(:focus-visible),
|
|
438
|
+
.c14:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
439
|
+
.c14[aria-disabled=false]:active:not(:focus-visible) {
|
|
440
|
+
outline: none;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.c14:not(:disabled):not([aria-disabled]):focus-visible,
|
|
444
|
+
.c14[aria-disabled=false]:focus-visible {
|
|
445
|
+
outline: none;
|
|
446
|
+
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.c14.c14:not(:disabled):not([aria-disabled]),
|
|
450
|
+
.c14.c14[aria-disabled=false] {
|
|
451
|
+
box-shadow: 0 0 0 4px rgba(255,43,0,0.32);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.c15 {
|
|
455
|
+
background-color: var(--charcoal-background1);
|
|
456
|
+
color: var(--charcoal-text2);
|
|
457
|
+
font-size: 14px;
|
|
458
|
+
line-height: 22px;
|
|
459
|
+
width: 392px;
|
|
460
|
+
margin-top: 40px;
|
|
461
|
+
margin-bottom: 40px;
|
|
462
|
+
padding-top: 20px;
|
|
463
|
+
padding-bottom: 20px;
|
|
464
|
+
padding-right: 24px;
|
|
465
|
+
padding-left: 24px;
|
|
466
|
+
border: solid 1px var(--charcoal-border-default);
|
|
467
|
+
border-radius: 8px;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.c16 {
|
|
471
|
+
position: relative;
|
|
472
|
+
z-index: 0;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
color: var(--charcoal-text5);
|
|
475
|
+
width: 184px;
|
|
476
|
+
padding-top: 36px;
|
|
477
|
+
padding-bottom: 36px;
|
|
478
|
+
padding-right: 40px;
|
|
479
|
+
padding-left: 40px;
|
|
480
|
+
margin-top: 24px;
|
|
481
|
+
margin-bottom: 24px;
|
|
482
|
+
font-size: 20px;
|
|
483
|
+
line-height: 28px;
|
|
484
|
+
font-weight: bold;
|
|
485
|
+
border-radius: 8px;
|
|
486
|
+
-webkit-transition: 0.2s color;
|
|
487
|
+
transition: 0.2s color;
|
|
488
|
+
text-align: center;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.c16::before {
|
|
492
|
+
z-index: -1;
|
|
493
|
+
content: '';
|
|
494
|
+
display: block;
|
|
495
|
+
position: absolute;
|
|
496
|
+
width: 100%;
|
|
497
|
+
height: 100%;
|
|
498
|
+
top: 0;
|
|
499
|
+
left: 0;
|
|
500
|
+
-webkit-transition: 0.2s background-color;
|
|
501
|
+
transition: 0.2s background-color;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.c16::after {
|
|
505
|
+
z-index: -2;
|
|
506
|
+
content: '';
|
|
507
|
+
display: block;
|
|
508
|
+
position: absolute;
|
|
509
|
+
width: 100%;
|
|
510
|
+
height: 100%;
|
|
511
|
+
top: 0;
|
|
512
|
+
left: 0;
|
|
513
|
+
background-color: #d1ff1a;
|
|
514
|
+
background-image: linear-gradient(to right,#d1ff1a 0%,#1ad1ff 100%);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.c16:hover:not(:disabled):not([aria-disabled])::before,
|
|
518
|
+
.c16:hover[aria-disabled=false]::before {
|
|
519
|
+
background-color: rgba(0,0,0,0.04);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.c16:active:not(:disabled):not([aria-disabled])::before,
|
|
523
|
+
.c16:active[aria-disabled=false]::before {
|
|
524
|
+
background-color: rgba(0,0,0,0.16);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.c16:hover:not(:disabled):not([aria-disabled]),
|
|
528
|
+
.c16:hover[aria-disabled=false] {
|
|
529
|
+
color: var(--charcoal-text5-hover);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.c16:active:not(:disabled):not([aria-disabled]),
|
|
533
|
+
.c16:active[aria-disabled=false] {
|
|
534
|
+
color: var(--charcoal-text5-press);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.c17 {
|
|
538
|
+
background-color: #d1ff1a;
|
|
539
|
+
background-image: linear-gradient(to right,#d1ff1a 0%,#1ad1ff 100%);
|
|
540
|
+
color: var(--charcoal-text5);
|
|
541
|
+
width: 184px;
|
|
542
|
+
margin-top: 24px;
|
|
543
|
+
margin-bottom: 24px;
|
|
544
|
+
font-size: 20px;
|
|
545
|
+
line-height: 28px;
|
|
546
|
+
font-weight: bold;
|
|
547
|
+
display: flow-root;
|
|
548
|
+
border-radius: 8px;
|
|
549
|
+
-webkit-transition: 0.2s color;
|
|
550
|
+
transition: 0.2s color;
|
|
551
|
+
padding-top: 40px;
|
|
552
|
+
padding-bottom: 40px;
|
|
553
|
+
padding-right: 40px;
|
|
554
|
+
padding-left: 40px;
|
|
555
|
+
text-align: center;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.c17:hover:not(:disabled):not([aria-disabled]),
|
|
559
|
+
.c17:hover[aria-disabled=false] {
|
|
560
|
+
background-color: #c9f519;
|
|
561
|
+
background-image: linear-gradient(to right,#c9f519 0%,#19c9f5 100%);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.c17:active:not(:disabled):not([aria-disabled]),
|
|
565
|
+
.c17:active[aria-disabled=false] {
|
|
566
|
+
background-color: #b0d616;
|
|
567
|
+
background-image: linear-gradient(to right,#b0d616 0%,#16b0d6 100%);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.c17:hover:not(:disabled):not([aria-disabled]),
|
|
571
|
+
.c17:hover[aria-disabled=false] {
|
|
572
|
+
color: var(--charcoal-text5-hover);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.c17:active:not(:disabled):not([aria-disabled]),
|
|
576
|
+
.c17:active[aria-disabled=false] {
|
|
577
|
+
color: var(--charcoal-text5-press);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.c17::before {
|
|
581
|
+
display: block;
|
|
582
|
+
width: 0;
|
|
583
|
+
height: 0;
|
|
584
|
+
content: '';
|
|
585
|
+
margin-top: -4px;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.c17::after {
|
|
589
|
+
display: block;
|
|
590
|
+
width: 0;
|
|
591
|
+
height: 0;
|
|
592
|
+
content: '';
|
|
593
|
+
margin-bottom: -4px;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.c18 {
|
|
597
|
+
width: 288px;
|
|
598
|
+
margin-top: 24px;
|
|
599
|
+
margin-bottom: 24px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.c19 {
|
|
603
|
+
display: inline-block;
|
|
604
|
+
width: 100%;
|
|
605
|
+
background-color: var(--charcoal-surface4);
|
|
606
|
+
color: var(--charcoal-text5);
|
|
607
|
+
padding-top: 16px;
|
|
608
|
+
padding-bottom: 16px;
|
|
609
|
+
padding-right: 16px;
|
|
610
|
+
padding-left: 16px;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.c20 {
|
|
614
|
+
--charcoal-text1: #ffff00;
|
|
615
|
+
--charcoal-text1-hover: #f5f500;
|
|
616
|
+
--charcoal-text1-press: #d6d600;
|
|
617
|
+
background-color: var(--charcoal-surface4);
|
|
618
|
+
color: var(--charcoal-text1);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
<div
|
|
622
|
+
data-dark={false}
|
|
623
|
+
>
|
|
624
|
+
<div
|
|
625
|
+
className=""
|
|
626
|
+
>
|
|
627
|
+
<div
|
|
628
|
+
className="c0"
|
|
629
|
+
>
|
|
630
|
+
Sample
|
|
631
|
+
</div>
|
|
632
|
+
<div
|
|
633
|
+
className="c1"
|
|
634
|
+
>
|
|
635
|
+
Left Top Padding
|
|
636
|
+
</div>
|
|
637
|
+
<div
|
|
638
|
+
className="c2"
|
|
639
|
+
>
|
|
640
|
+
<div
|
|
641
|
+
className="c3"
|
|
642
|
+
>
|
|
643
|
+
Nested
|
|
644
|
+
</div>
|
|
645
|
+
</div>
|
|
646
|
+
<div
|
|
647
|
+
className="c4"
|
|
648
|
+
>
|
|
649
|
+
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem dolores, recusandae quidem mollitia eum non vel architecto possimus repudiandae quis molestias neque facilis rem dolorum voluptatem impedit nemo praesentium voluptas.
|
|
650
|
+
</div>
|
|
651
|
+
<div
|
|
652
|
+
className="c4 c5"
|
|
653
|
+
>
|
|
654
|
+
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Autem dolores, recusandae quidem mollitia eum non vel architecto possimus repudiandae quis molestias neque facilis rem dolorum voluptatem impedit nemo praesentium voluptas.
|
|
655
|
+
</div>
|
|
656
|
+
<div
|
|
657
|
+
className="c6"
|
|
658
|
+
>
|
|
659
|
+
With effects
|
|
660
|
+
</div>
|
|
661
|
+
<div
|
|
662
|
+
className="c7"
|
|
663
|
+
>
|
|
664
|
+
Without half-leading
|
|
665
|
+
</div>
|
|
666
|
+
<div
|
|
667
|
+
className="c8"
|
|
668
|
+
>
|
|
669
|
+
Without half-leading (No optimization)
|
|
670
|
+
</div>
|
|
671
|
+
<div
|
|
672
|
+
className="c9"
|
|
673
|
+
>
|
|
674
|
+
With half-leading
|
|
675
|
+
</div>
|
|
676
|
+
<div
|
|
677
|
+
className="c10"
|
|
678
|
+
>
|
|
679
|
+
Fixed size box
|
|
680
|
+
</div>
|
|
681
|
+
<div
|
|
682
|
+
className="c11"
|
|
683
|
+
>
|
|
684
|
+
<button
|
|
685
|
+
className="c12"
|
|
686
|
+
>
|
|
687
|
+
Button
|
|
688
|
+
</button>
|
|
689
|
+
<button
|
|
690
|
+
className="c12"
|
|
691
|
+
disabled={true}
|
|
692
|
+
>
|
|
693
|
+
Disabled
|
|
694
|
+
</button>
|
|
695
|
+
</div>
|
|
696
|
+
<div
|
|
697
|
+
className="c11"
|
|
698
|
+
>
|
|
699
|
+
<input
|
|
700
|
+
className="c13"
|
|
701
|
+
type="text"
|
|
702
|
+
value="text field"
|
|
703
|
+
/>
|
|
704
|
+
<input
|
|
705
|
+
className="c13"
|
|
706
|
+
disabled={true}
|
|
707
|
+
type="text"
|
|
708
|
+
value="disabled"
|
|
709
|
+
/>
|
|
710
|
+
<input
|
|
711
|
+
className="c14"
|
|
712
|
+
type="text"
|
|
713
|
+
value="invalid"
|
|
714
|
+
/>
|
|
715
|
+
</div>
|
|
716
|
+
<div
|
|
717
|
+
className="c15"
|
|
718
|
+
>
|
|
719
|
+
Border
|
|
720
|
+
</div>
|
|
721
|
+
<div
|
|
722
|
+
className="c16"
|
|
723
|
+
>
|
|
724
|
+
Gradient
|
|
725
|
+
</div>
|
|
726
|
+
<div
|
|
727
|
+
className="c17"
|
|
728
|
+
>
|
|
729
|
+
Gradient (Warning)
|
|
730
|
+
</div>
|
|
731
|
+
<div
|
|
732
|
+
css="
|
|
733
|
+
display: flex;
|
|
734
|
+
"
|
|
735
|
+
>
|
|
736
|
+
<div
|
|
737
|
+
css={[Function]}
|
|
738
|
+
>
|
|
739
|
+
Tailwind like
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
<div
|
|
743
|
+
className="c18"
|
|
744
|
+
>
|
|
745
|
+
<div
|
|
746
|
+
className="c19"
|
|
747
|
+
>
|
|
748
|
+
Full width
|
|
749
|
+
</div>
|
|
750
|
+
</div>
|
|
751
|
+
<div
|
|
752
|
+
className="c20"
|
|
753
|
+
>
|
|
754
|
+
This is actually text1 !
|
|
755
|
+
</div>
|
|
756
|
+
</div>
|
|
757
|
+
</div>
|
|
758
|
+
`;
|
|
759
|
+
|
|
760
|
+
exports[`Storyshots styled Tailwind Like 1`] = `
|
|
761
|
+
<div
|
|
762
|
+
data-dark={false}
|
|
763
|
+
>
|
|
764
|
+
<div
|
|
765
|
+
css="
|
|
766
|
+
display: flex;
|
|
767
|
+
"
|
|
768
|
+
>
|
|
769
|
+
<div
|
|
770
|
+
css={[Function]}
|
|
771
|
+
>
|
|
772
|
+
Tailwind like
|
|
773
|
+
</div>
|
|
774
|
+
</div>
|
|
775
|
+
</div>
|
|
776
|
+
`;
|