@shift-css/core 0.4.0 → 0.6.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/README.md +110 -0
- package/dist/components/badge.css +162 -0
- package/dist/components/button.css +214 -0
- package/dist/components/card.css +185 -0
- package/dist/components/input.css +270 -0
- package/dist/components/menu.css +195 -0
- package/dist/components/modal.css +204 -0
- package/dist/components/prose.css +263 -0
- package/dist/components/skip-link.css +86 -0
- package/dist/components/surface.css +123 -0
- package/dist/components/tooltip.css +153 -0
- package/dist/shift.css +1217 -61
- package/dist/shift.css.map +1 -1
- package/dist/shift.min.css +1 -1
- package/dist/utils/flex.css +303 -0
- package/dist/utils/layout.css +338 -0
- package/dist/utils/spacing.css +587 -0
- package/dist/utils/typography.css +434 -0
- package/dist/utils/visibility.css +177 -0
- package/package.json +22 -2
- package/types/attributes.d.ts +234 -0
- package/types/index.d.ts +44 -0
- package/types/react.d.ts +23 -0
- package/types/vue.d.ts +29 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
[s-flex] {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[s-flex="row"] {
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[s-flex="col"] {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[s-flex="row-reverse"] {
|
|
16
|
+
flex-direction: row-reverse;
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[s-flex="col-reverse"] {
|
|
21
|
+
flex-direction: column-reverse;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[s-flex="center"] {
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[s-flex="stack"] {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[s-flex="between"] {
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
align-items: center;
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[s-flex="end"] {
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
align-items: center;
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[s-flex~="wrap"] {
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[s-flex~="nowrap"] {
|
|
53
|
+
flex-wrap: nowrap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[s-justify="start"] {
|
|
57
|
+
justify-content: flex-start;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[s-justify="end"] {
|
|
61
|
+
justify-content: flex-end;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[s-justify="center"] {
|
|
65
|
+
justify-content: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[s-justify="between"] {
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[s-justify="around"] {
|
|
73
|
+
justify-content: space-around;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[s-justify="evenly"] {
|
|
77
|
+
justify-content: space-evenly;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[s-items="start"] {
|
|
81
|
+
align-items: flex-start;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[s-items="end"] {
|
|
85
|
+
align-items: flex-end;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[s-items="center"] {
|
|
89
|
+
align-items: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[s-items="baseline"] {
|
|
93
|
+
align-items: baseline;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[s-items="stretch"] {
|
|
97
|
+
align-items: stretch;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[s-content="start"] {
|
|
101
|
+
align-content: flex-start;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[s-content="end"] {
|
|
105
|
+
align-content: flex-end;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[s-content="center"] {
|
|
109
|
+
align-content: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[s-content="between"] {
|
|
113
|
+
align-content: space-between;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[s-content="around"] {
|
|
117
|
+
align-content: space-around;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
[s-grid] {
|
|
121
|
+
display: grid;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[s-grid="1"] {
|
|
125
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
126
|
+
display: grid;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[s-grid="2"] {
|
|
130
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
131
|
+
display: grid;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[s-grid="3"] {
|
|
135
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
136
|
+
display: grid;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[s-grid="4"] {
|
|
140
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
141
|
+
display: grid;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
[s-grid="5"] {
|
|
145
|
+
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
146
|
+
display: grid;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[s-grid="6"] {
|
|
150
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
151
|
+
display: grid;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[s-grid="12"] {
|
|
155
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
156
|
+
display: grid;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
[s-grid="auto-fit"] {
|
|
160
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
|
|
161
|
+
display: grid;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[s-grid="auto-fill"] {
|
|
165
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
|
|
166
|
+
display: grid;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[s-grid-rows="1"] {
|
|
170
|
+
grid-template-rows: repeat(1, minmax(0, 1fr));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
[s-grid-rows="2"] {
|
|
174
|
+
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
[s-grid-rows="3"] {
|
|
178
|
+
grid-template-rows: repeat(3, minmax(0, 1fr));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[s-grid-rows="4"] {
|
|
182
|
+
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[s-col-span="1"] {
|
|
186
|
+
grid-column: span 1 / span 1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[s-col-span="2"] {
|
|
190
|
+
grid-column: span 2 / span 2;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[s-col-span="3"] {
|
|
194
|
+
grid-column: span 3 / span 3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[s-col-span="4"] {
|
|
198
|
+
grid-column: span 4 / span 4;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[s-col-span="6"] {
|
|
202
|
+
grid-column: span 6 / span 6;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
[s-col-span="12"] {
|
|
206
|
+
grid-column: span 12 / span 12;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[s-col-span="full"] {
|
|
210
|
+
grid-column: 1 / -1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[s-row-span="1"] {
|
|
214
|
+
grid-row: span 1 / span 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[s-row-span="2"] {
|
|
218
|
+
grid-row: span 2 / span 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[s-row-span="3"] {
|
|
222
|
+
grid-row: span 3 / span 3;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
[s-row-span="full"] {
|
|
226
|
+
grid-row: 1 / -1;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
[s-gap] {
|
|
230
|
+
gap: var(--s-space-4);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
[s-gap="xs"] {
|
|
234
|
+
gap: var(--s-space-1);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
[s-gap="sm"] {
|
|
238
|
+
gap: var(--s-space-2);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
[s-gap="md"] {
|
|
242
|
+
gap: var(--s-space-4);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
[s-gap="lg"] {
|
|
246
|
+
gap: var(--s-space-6);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
[s-gap="xl"] {
|
|
250
|
+
gap: var(--s-space-8);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
[s-gap="none"] {
|
|
254
|
+
gap: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[s-container] {
|
|
258
|
+
width: 100%;
|
|
259
|
+
padding-inline: var(--s-space-4);
|
|
260
|
+
max-width: var(--s-container-max, 80rem);
|
|
261
|
+
margin-inline: auto;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
[s-container="sm"] {
|
|
265
|
+
max-width: 40rem;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
[s-container="md"] {
|
|
269
|
+
max-width: 48rem;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
[s-container="lg"] {
|
|
273
|
+
max-width: 64rem;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[s-container="xl"] {
|
|
277
|
+
max-width: 80rem;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[s-container="full"] {
|
|
281
|
+
max-width: 100%;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[s-container="prose"] {
|
|
285
|
+
max-width: 65ch;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
[s-position="static"] {
|
|
289
|
+
position: static;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
[s-position="relative"] {
|
|
293
|
+
position: relative;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
[s-position="absolute"] {
|
|
297
|
+
position: absolute;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[s-position="fixed"] {
|
|
301
|
+
position: fixed;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[s-position="sticky"] {
|
|
305
|
+
position: sticky;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[s-inset="0"] {
|
|
309
|
+
inset: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
[s-inset="auto"] {
|
|
313
|
+
inset: auto;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
[s-display="block"] {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[s-display="inline"] {
|
|
321
|
+
display: inline;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[s-display="inline-block"] {
|
|
325
|
+
display: inline-block;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
[s-display="contents"] {
|
|
329
|
+
display: contents;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
[s-display="inline-flex"] {
|
|
333
|
+
display: inline-flex;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
[s-display="inline-grid"] {
|
|
337
|
+
display: inline-grid;
|
|
338
|
+
}
|