@skewedaspect/sleekspace-ui 0.8.1 → 0.9.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/dist/components/Dropdown/SkDropdown.vue.d.ts +9 -1
- package/dist/components/Dropdown/types.d.ts +2 -1
- package/dist/components/NavBar/SkNavBar.vue.d.ts +9 -1
- package/dist/components/NavBar/context.d.ts +2 -0
- package/dist/components/NavBar/types.d.ts +5 -1
- package/dist/components/Page/SkPage.vue.d.ts +9 -0
- package/dist/components/ScrollArea/SkScrollArea.vue.d.ts +105 -4
- package/dist/composables/useCustomColors.d.ts +18 -56
- package/{src → dist}/global.d.ts +6 -2
- package/dist/sleekspace-ui.css +4253 -1251
- package/dist/sleekspace-ui.es.js +204 -109
- package/dist/sleekspace-ui.umd.js +204 -109
- package/dist/static/classes.d.ts +18 -0
- package/dist/static/components/alert.d.ts +12 -0
- package/dist/static/components/avatar.d.ts +9 -0
- package/dist/static/components/breadcrumbs.d.ts +6 -0
- package/dist/static/components/button.d.ts +13 -0
- package/dist/static/components/card.d.ts +5 -0
- package/dist/static/components/checkbox.d.ts +10 -0
- package/dist/static/components/colorPicker.d.ts +8 -0
- package/dist/static/components/divider.d.ts +8 -0
- package/dist/static/components/dropdown.d.ts +8 -0
- package/dist/static/components/field.d.ts +15 -0
- package/dist/static/components/group.d.ts +5 -0
- package/dist/static/components/input.d.ts +14 -0
- package/dist/static/components/navBar.d.ts +16 -0
- package/dist/static/components/numberInput.d.ts +15 -0
- package/dist/static/components/page.d.ts +9 -0
- package/dist/static/components/pagination.d.ts +5 -0
- package/dist/static/components/panel.d.ts +11 -0
- package/dist/static/components/progress.d.ts +9 -0
- package/dist/static/components/radio.d.ts +11 -0
- package/dist/static/components/select.d.ts +10 -0
- package/dist/static/components/sidebar.d.ts +9 -0
- package/dist/static/components/skeleton.d.ts +11 -0
- package/dist/static/components/slider.d.ts +12 -0
- package/dist/static/components/spinner.d.ts +12 -0
- package/dist/static/components/switchInput.d.ts +10 -0
- package/dist/static/components/table.d.ts +12 -0
- package/dist/static/components/tag.d.ts +8 -0
- package/dist/static/components/tagsInput.d.ts +7 -0
- package/dist/static/components/textarea.d.ts +12 -0
- package/dist/static/components/toolbar.d.ts +12 -0
- package/dist/static/components/tooltip.d.ts +7 -0
- package/dist/static/escape.d.ts +2 -0
- package/dist/static/index.cjs.js +1 -0
- package/dist/static/index.d.ts +68 -0
- package/dist/static/index.es.js +732 -0
- package/dist/static/render.d.ts +12 -0
- package/dist/static/specs.d.ts +2 -0
- package/dist/static/types.d.ts +43 -0
- package/dist/tokens.css +322 -0
- package/dist/types/index.d.ts +36 -0
- package/docs/guides/installation.md +8 -2
- package/docs/guides/pure-css/_meta.yaml +8 -0
- package/docs/guides/pure-css/class-api.md +1070 -0
- package/docs/guides/pure-css/custom-elements.md +574 -0
- package/docs/guides/pure-css/index.md +86 -0
- package/docs/guides/pure-css/limitations.md +152 -0
- package/docs/guides/pure-css/static-helpers.md +1203 -0
- package/llms-full.txt +3736 -261
- package/package.json +16 -5
- package/src/components/Card/SkCard.vue +1 -0
- package/src/components/ContextMenu/SkContextMenuRadioGroup.vue +4 -1
- package/src/components/Dropdown/SkDropdown.vue +20 -3
- package/src/components/Dropdown/SkDropdownRadioGroup.vue +4 -1
- package/src/components/Dropdown/types.ts +2 -1
- package/src/components/NavBar/SkNavBar.vue +14 -4
- package/src/components/NavBar/context.ts +4 -2
- package/src/components/NavBar/types.ts +6 -1
- package/src/components/Page/SkPage.vue +11 -0
- package/src/components/Panel/SkPanel.vue +2 -1
- package/src/components/ScrollArea/SkScrollArea.vue +78 -5
- package/src/components/TreeView/SkTreeView.vue +7 -2
- package/src/composables/useCustomColors.ts +86 -77
- package/src/composables/usePortalContext.test.ts +0 -2
- package/src/shims.d.ts +10 -0
- package/src/static/__tests__/parity.test.ts +717 -0
- package/src/static/__tests__/parityHarness.test.ts +98 -0
- package/src/static/__tests__/parityHarness.ts +260 -0
- package/src/static/classes.test.ts +82 -0
- package/src/static/classes.ts +111 -0
- package/src/static/components/__tests__/helpers.test.ts +837 -0
- package/src/static/components/alert.ts +117 -0
- package/src/static/components/avatar.ts +86 -0
- package/src/static/components/breadcrumbs.ts +28 -0
- package/src/static/components/button.ts +75 -0
- package/src/static/components/card.ts +27 -0
- package/src/static/components/checkbox.ts +48 -0
- package/src/static/components/colorPicker.ts +45 -0
- package/src/static/components/divider.ts +39 -0
- package/src/static/components/dropdown.ts +36 -0
- package/src/static/components/field.ts +86 -0
- package/src/static/components/group.ts +27 -0
- package/src/static/components/input.ts +55 -0
- package/src/static/components/navBar.ts +94 -0
- package/src/static/components/numberInput.ts +64 -0
- package/src/static/components/page.ts +31 -0
- package/src/static/components/pagination.ts +27 -0
- package/src/static/components/panel.ts +33 -0
- package/src/static/components/progress.ts +31 -0
- package/src/static/components/radio.ts +53 -0
- package/src/static/components/select.ts +51 -0
- package/src/static/components/sidebar.ts +85 -0
- package/src/static/components/skeleton.ts +66 -0
- package/src/static/components/slider.ts +50 -0
- package/src/static/components/spinner.ts +94 -0
- package/src/static/components/switchInput.ts +49 -0
- package/src/static/components/table.ts +88 -0
- package/src/static/components/tag.ts +76 -0
- package/src/static/components/tagsInput.ts +35 -0
- package/src/static/components/textarea.ts +53 -0
- package/src/static/components/toolbar.ts +74 -0
- package/src/static/components/tooltip.ts +29 -0
- package/src/static/escape.test.ts +53 -0
- package/src/static/escape.ts +28 -0
- package/src/static/generated/defaults.ts +378 -0
- package/src/static/generated/propTypes.ts +425 -0
- package/src/static/index.ts +116 -0
- package/src/static/render.test.ts +83 -0
- package/src/static/render.ts +76 -0
- package/src/static/specs.test.ts +58 -0
- package/src/static/specs.ts +230 -0
- package/src/static/types.ts +176 -0
- package/src/styles/__tests__/testHelpers.ts +97 -0
- package/src/styles/base/_custom-elements.scss +51 -0
- package/src/styles/base/_index.scss +4 -0
- package/src/styles/components/__tests__/componentSelectors.test.ts +2575 -0
- package/src/styles/components/_alert.scss +82 -39
- package/src/styles/components/_avatar.scss +102 -47
- package/src/styles/components/_breadcrumbs.scss +39 -37
- package/src/styles/components/_button.scss +58 -5
- package/src/styles/components/_card.scss +64 -2
- package/src/styles/components/_checkbox.scss +35 -5
- package/src/styles/components/_color-picker.scss +48 -13
- package/src/styles/components/_divider.scss +86 -52
- package/src/styles/components/_dropdown.scss +214 -0
- package/src/styles/components/_field.scss +76 -23
- package/src/styles/components/_group.scss +190 -79
- package/src/styles/components/_index.scss +1 -0
- package/src/styles/components/_input.scss +81 -5
- package/src/styles/components/_menu.scss +1 -1
- package/src/styles/components/_navbar.scss +76 -45
- package/src/styles/components/_number-input.scss +88 -83
- package/src/styles/components/_page.scss +82 -23
- package/src/styles/components/_pagination.scss +240 -212
- package/src/styles/components/_panel.scss +268 -122
- package/src/styles/components/_progress.scss +120 -70
- package/src/styles/components/_radio.scss +35 -5
- package/src/styles/components/_scroll-area.scss +50 -22
- package/src/styles/components/_select.scss +40 -9
- package/src/styles/components/_sidebar.scss +59 -34
- package/src/styles/components/_skeleton.scss +111 -65
- package/src/styles/components/_slider.scss +34 -10
- package/src/styles/components/_spinner.scss +107 -56
- package/src/styles/components/_switch.scss +36 -5
- package/src/styles/components/_table.scss +150 -166
- package/src/styles/components/_tag.scss +244 -154
- package/src/styles/components/_tags-input.scss +46 -12
- package/src/styles/components/_textarea.scss +36 -5
- package/src/styles/components/_toolbar.scss +85 -31
- package/src/styles/components/_tooltip.scss +172 -3
- package/src/styles/mixins/_cut-border.scss +18 -4
- package/src/styles/mixins/_dual-selector.scss +192 -0
- package/src/styles/mixins/_index.scss +1 -0
- package/src/styles/mixins/dualSelector.test.ts +151 -0
- package/src/styles/themes/_colorful.scss +25 -0
- package/src/styles/themes/_greyscale.scss +25 -0
- package/src/styles/themes/_shade-scale.scss +39 -0
- package/src/styles/tokens/_semantic-color-kinds.scss +66 -0
- package/src/{types.ts → types/index.ts} +19 -11
- package/web-types.json +970 -137
- package/dist/composables/useCustomColors.test.d.ts +0 -1
- package/dist/composables/useFocusTrap.test.d.ts +0 -1
- package/dist/composables/usePortalContext.test.d.ts +0 -1
- package/dist/styles/mixins/fluidSize.test.d.ts +0 -1
- package/dist/types.d.ts +0 -29
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
//----------------------------------------------------------------------------------------------------------------------
|
|
5
5
|
|
|
6
6
|
@use '../theme/variables' as *;
|
|
7
|
-
@use '../mixins
|
|
7
|
+
@use '../mixins' as *;
|
|
8
8
|
|
|
9
9
|
//----------------------------------------------------------------------------------------------------------------------
|
|
10
10
|
// Design Tokens
|
|
11
11
|
//----------------------------------------------------------------------------------------------------------------------
|
|
12
12
|
|
|
13
|
-
.sk-table
|
|
13
|
+
.sk-table,
|
|
14
|
+
sk-table
|
|
14
15
|
{
|
|
15
16
|
// Default foreground color (uses neutral foreground by default)
|
|
16
17
|
--sk-table-text: var(--sk-neutral-text);
|
|
@@ -24,18 +25,6 @@
|
|
|
24
25
|
--sk-table-stripe-transparency: 85%;
|
|
25
26
|
--sk-table-hover-transparency: 90%;
|
|
26
27
|
--sk-table-hover-glow-transparency: 60%;
|
|
27
|
-
|
|
28
|
-
// Subtle variant opacity tokens
|
|
29
|
-
&.sk-subtle
|
|
30
|
-
{
|
|
31
|
-
// Subtle backgrounds
|
|
32
|
-
--sk-table-header-bg-transparency: 90%;
|
|
33
|
-
--sk-table-footer-bg-transparency: 90%;
|
|
34
|
-
--sk-table-stripe-transparency: 85%;
|
|
35
|
-
|
|
36
|
-
// Subtle border opacity (like subtle buttons)
|
|
37
|
-
--sk-table-border-opacity: 0.15;
|
|
38
|
-
}
|
|
39
28
|
}
|
|
40
29
|
|
|
41
30
|
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -114,7 +103,8 @@
|
|
|
114
103
|
// Base Table Styles
|
|
115
104
|
//----------------------------------------------------------------------------------------------------------------------
|
|
116
105
|
|
|
117
|
-
.sk-table
|
|
106
|
+
.sk-table,
|
|
107
|
+
sk-table
|
|
118
108
|
{
|
|
119
109
|
width: 100%;
|
|
120
110
|
border-collapse: collapse;
|
|
@@ -185,123 +175,106 @@
|
|
|
185
175
|
color: var(--sk-table-text);
|
|
186
176
|
}
|
|
187
177
|
}
|
|
178
|
+
}
|
|
188
179
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
&.sk-striped
|
|
194
|
-
{
|
|
195
|
-
tbody tr:nth-child(even)
|
|
196
|
-
{
|
|
197
|
-
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-stripe-transparency));
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
//------------------------------------------------------------------------------------------------------------------
|
|
202
|
-
// Hoverable Variant (enabled by default via tbody tr:hover above)
|
|
203
|
-
//------------------------------------------------------------------------------------------------------------------
|
|
180
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
181
|
+
// Kind Variants
|
|
182
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
204
183
|
|
|
205
|
-
|
|
184
|
+
@each $kind in $kinds
|
|
185
|
+
{
|
|
186
|
+
@include kind-variant('table', $kind)
|
|
206
187
|
{
|
|
207
|
-
//
|
|
208
|
-
|
|
188
|
+
// Anchor property ensures the selector pair is always emitted by Sass.
|
|
189
|
+
--sk-table-kind: #{ $kind };
|
|
209
190
|
|
|
210
|
-
|
|
211
|
-
// Bordered Variant (adds right borders on cells)
|
|
212
|
-
//------------------------------------------------------------------------------------------------------------------
|
|
213
|
-
|
|
214
|
-
&.sk-bordered
|
|
215
|
-
{
|
|
216
|
-
td,
|
|
217
|
-
th
|
|
191
|
+
@if $kind != 'neutral'
|
|
218
192
|
{
|
|
219
|
-
|
|
193
|
+
--sk-table-text: var(--sk-#{ $kind }-text);
|
|
220
194
|
|
|
221
|
-
|
|
195
|
+
thead
|
|
222
196
|
{
|
|
223
|
-
|
|
197
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-header-bg-transparency));
|
|
198
|
+
|
|
199
|
+
th
|
|
200
|
+
{
|
|
201
|
+
color: var(--sk-table-text);
|
|
202
|
+
}
|
|
224
203
|
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
204
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
205
|
+
tbody
|
|
206
|
+
{
|
|
207
|
+
tr
|
|
208
|
+
{
|
|
209
|
+
&:hover
|
|
210
|
+
{
|
|
211
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-transparency));
|
|
212
|
+
box-shadow: inset 0 0 8px 0 color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-glow-transparency));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
231
216
|
|
|
232
|
-
|
|
233
|
-
{
|
|
234
|
-
&.sk-bordered
|
|
235
|
-
{
|
|
236
|
-
td,
|
|
237
|
-
th
|
|
217
|
+
tfoot
|
|
238
218
|
{
|
|
239
|
-
|
|
219
|
+
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-footer-bg-transparency));
|
|
220
|
+
|
|
221
|
+
td,
|
|
222
|
+
th
|
|
223
|
+
{
|
|
224
|
+
color: var(--sk-table-text);
|
|
225
|
+
}
|
|
240
226
|
}
|
|
241
227
|
}
|
|
242
228
|
}
|
|
229
|
+
}
|
|
243
230
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
231
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
232
|
+
// Variant Variants (subtle)
|
|
233
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
234
|
+
|
|
235
|
+
@include variant-variant('table', 'subtle')
|
|
236
|
+
{
|
|
237
|
+
// Subtle variant opacity tokens
|
|
238
|
+
--sk-table-header-bg-transparency: 90%;
|
|
239
|
+
--sk-table-footer-bg-transparency: 90%;
|
|
240
|
+
--sk-table-stripe-transparency: 85%;
|
|
241
|
+
--sk-table-border-opacity: 0.15;
|
|
247
242
|
|
|
248
|
-
|
|
243
|
+
thead
|
|
249
244
|
{
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
tfoot th
|
|
245
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-header-bg-transparency));
|
|
246
|
+
|
|
247
|
+
th
|
|
254
248
|
{
|
|
255
|
-
|
|
249
|
+
color: var(--sk-neutral-base);
|
|
256
250
|
}
|
|
257
251
|
}
|
|
258
252
|
|
|
259
|
-
|
|
253
|
+
tfoot
|
|
260
254
|
{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
255
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-footer-bg-transparency));
|
|
256
|
+
|
|
257
|
+
td,
|
|
258
|
+
th
|
|
265
259
|
{
|
|
266
|
-
|
|
260
|
+
color: var(--sk-neutral-base);
|
|
267
261
|
}
|
|
268
262
|
}
|
|
269
263
|
|
|
270
|
-
|
|
271
|
-
// Kind Variants
|
|
272
|
-
//------------------------------------------------------------------------------------------------------------------
|
|
273
|
-
|
|
274
|
-
// Kind variants - override colors for non-neutral kinds
|
|
264
|
+
// Subtle variant for kinds
|
|
275
265
|
@each $kind in $kinds
|
|
276
266
|
{
|
|
277
267
|
&.sk-#{ "" + $kind }
|
|
278
268
|
{
|
|
279
|
-
// Only override if not neutral (neutral is the default)
|
|
280
269
|
@if $kind != 'neutral'
|
|
281
270
|
{
|
|
282
|
-
// Set foreground color and border base for this kind
|
|
283
|
-
--sk-table-text: var(--sk-#{ $kind }-text);
|
|
284
|
-
|
|
285
|
-
|
|
286
271
|
thead
|
|
287
272
|
{
|
|
288
273
|
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-header-bg-transparency));
|
|
289
274
|
|
|
290
275
|
th
|
|
291
276
|
{
|
|
292
|
-
color: var(--sk-
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
tbody
|
|
297
|
-
{
|
|
298
|
-
tr
|
|
299
|
-
{
|
|
300
|
-
&:hover
|
|
301
|
-
{
|
|
302
|
-
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-transparency));
|
|
303
|
-
box-shadow: inset 0 0 8px 0 color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-hover-glow-transparency));
|
|
304
|
-
}
|
|
277
|
+
color: var(--sk-#{ $kind }-base);
|
|
305
278
|
}
|
|
306
279
|
}
|
|
307
280
|
|
|
@@ -312,95 +285,106 @@
|
|
|
312
285
|
td,
|
|
313
286
|
th
|
|
314
287
|
{
|
|
315
|
-
color: var(--sk-
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&.sk-striped
|
|
320
|
-
{
|
|
321
|
-
tbody tr:nth-child(even)
|
|
322
|
-
{
|
|
323
|
-
background-color: color-mix(in oklch, var(--sk-#{ $kind }-base), transparent var(--sk-table-stripe-transparency));
|
|
288
|
+
color: var(--sk-#{ $kind }-base);
|
|
324
289
|
}
|
|
325
290
|
}
|
|
326
291
|
}
|
|
327
292
|
}
|
|
328
293
|
}
|
|
294
|
+
}
|
|
329
295
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
296
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
297
|
+
// Boolean Modifiers
|
|
298
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
333
299
|
|
|
334
|
-
|
|
300
|
+
// Striped rows
|
|
301
|
+
@include bool-modifier('table', 'striped')
|
|
302
|
+
{
|
|
303
|
+
tbody tr:nth-child(even)
|
|
335
304
|
{
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-header-bg-transparency));
|
|
305
|
+
background-color: color-mix(in oklch, var(--sk-neutral-base), transparent var(--sk-table-stripe-transparency));
|
|
306
|
+
}
|
|
307
|
+
}
|
|
340
308
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
309
|
+
// Bordered cells (column separators). Paired with `sk-no-inner-borders` to cancel — the
|
|
310
|
+
// Vue component emits both classes by default (bordered=true, innerBorders=false), so
|
|
311
|
+
// the default render shows no column separators. The cancel lives in its own selector
|
|
312
|
+
// below so source order wins on equal specificity.
|
|
313
|
+
@include bool-modifier('table', 'bordered')
|
|
314
|
+
{
|
|
315
|
+
td,
|
|
316
|
+
th
|
|
317
|
+
{
|
|
318
|
+
border-right: 1px solid var(--sk-table-border-color);
|
|
347
319
|
|
|
348
|
-
|
|
320
|
+
&:last-child
|
|
349
321
|
{
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
td,
|
|
353
|
-
th
|
|
354
|
-
{
|
|
355
|
-
// Subtle footers use base color, not computed foreground
|
|
356
|
-
color: var(--sk-neutral-base);
|
|
357
|
-
}
|
|
322
|
+
border-right: none;
|
|
358
323
|
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
359
326
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
327
|
+
// Cancels the column separators added by `sk-bordered`. Emitted when `innerBorders=false`
|
|
328
|
+
// (the default), so the common case of `bordered=true, innerBorders=false` renders cleanly.
|
|
329
|
+
@include bool-modifier('table', 'no-inner-borders')
|
|
330
|
+
{
|
|
331
|
+
td,
|
|
332
|
+
th
|
|
333
|
+
{
|
|
334
|
+
border-right: none;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
364
337
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
338
|
+
// Compact spacing
|
|
339
|
+
@include bool-modifier('table', 'compact')
|
|
340
|
+
{
|
|
341
|
+
thead th,
|
|
342
|
+
tbody td,
|
|
343
|
+
tfoot td,
|
|
344
|
+
tfoot th
|
|
345
|
+
{
|
|
346
|
+
padding: 0.5rem 0.75rem;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
376
349
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
350
|
+
// Comfortable spacing
|
|
351
|
+
@include bool-modifier('table', 'comfortable')
|
|
352
|
+
{
|
|
353
|
+
thead th,
|
|
354
|
+
tbody td,
|
|
355
|
+
tfoot td,
|
|
356
|
+
tfoot th
|
|
357
|
+
{
|
|
358
|
+
padding: 1rem 1.25rem;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
383
361
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
td,
|
|
389
|
-
th
|
|
390
|
-
{
|
|
391
|
-
// Subtle footers use base color, not computed foreground
|
|
392
|
-
color: var(--sk-#{ $kind }-base);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
362
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
363
|
+
// Defaults When Absent
|
|
364
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
395
365
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
366
|
+
// Default kind: neutral
|
|
367
|
+
$_table-kind-not: '';
|
|
368
|
+
@each $kind in $kinds
|
|
369
|
+
{
|
|
370
|
+
$_table-kind-not: $_table-kind-not + ':not(.sk-' + $kind + ')';
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.sk-table:where(#{ $_table-kind-not })
|
|
374
|
+
{
|
|
375
|
+
--sk-table-text: var(--sk-neutral-text);
|
|
376
|
+
--sk-table-border-base: var(--sk-neutral-base);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
380
|
+
// Custom-Element API Defaults (attribute-absence path)
|
|
381
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
382
|
+
|
|
383
|
+
// Default kind: neutral
|
|
384
|
+
@include defaults-when-no-attr('table', 'kind')
|
|
385
|
+
{
|
|
386
|
+
--sk-table-text: var(--sk-neutral-text);
|
|
387
|
+
--sk-table-border-base: var(--sk-neutral-base);
|
|
404
388
|
}
|
|
405
389
|
|
|
406
390
|
//----------------------------------------------------------------------------------------------------------------------
|