@graupl/core 1.0.0-beta.10
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/css/base/button.css +2 -0
- package/dist/css/base/button.css.map +1 -0
- package/dist/css/base/form.css +2 -0
- package/dist/css/base/form.css.map +1 -0
- package/dist/css/base/link.css +2 -0
- package/dist/css/base/link.css.map +1 -0
- package/dist/css/base/table.css +2 -0
- package/dist/css/base/table.css.map +1 -0
- package/dist/css/base.css +2 -0
- package/dist/css/base.css.map +1 -0
- package/dist/css/component/accordion.css +5 -0
- package/dist/css/component/accordion.css.map +1 -0
- package/dist/css/component/alert.css +2 -0
- package/dist/css/component/alert.css.map +1 -0
- package/dist/css/component/card.css +2 -0
- package/dist/css/component/card.css.map +1 -0
- package/dist/css/component/carousel.css +2 -0
- package/dist/css/component/carousel.css.map +1 -0
- package/dist/css/component/input-group.css +2 -0
- package/dist/css/component/input-group.css.map +1 -0
- package/dist/css/component/list.css +2 -0
- package/dist/css/component/list.css.map +1 -0
- package/dist/css/component/menu.css +2 -0
- package/dist/css/component/menu.css.map +1 -0
- package/dist/css/component/navigation.css +2 -0
- package/dist/css/component/navigation.css.map +1 -0
- package/dist/css/component.css +5 -0
- package/dist/css/component.css.map +1 -0
- package/dist/css/graupl.css +5 -0
- package/dist/css/graupl.css.map +1 -0
- package/dist/css/init.css +2 -0
- package/dist/css/init.css.map +1 -0
- package/dist/css/layout/columns.css +2 -0
- package/dist/css/layout/columns.css.map +1 -0
- package/dist/css/layout/container.css +2 -0
- package/dist/css/layout/container.css.map +1 -0
- package/dist/css/layout/flex-columns.css +2 -0
- package/dist/css/layout/flex-columns.css.map +1 -0
- package/dist/css/layout.css +5 -0
- package/dist/css/layout.css.map +1 -0
- package/dist/css/normalize.css +2 -0
- package/dist/css/normalize.css.map +1 -0
- package/dist/css/state/focus.css +2 -0
- package/dist/css/state/focus.css.map +1 -0
- package/dist/css/state.css +2 -0
- package/dist/css/state.css.map +1 -0
- package/dist/css/theme/color.css +2 -0
- package/dist/css/theme/color.css.map +1 -0
- package/dist/css/theme/typography.css +2 -0
- package/dist/css/theme/typography.css.map +1 -0
- package/dist/css/theme.css +2 -0
- package/dist/css/theme.css.map +1 -0
- package/dist/css/utilities/alignment.css +2 -0
- package/dist/css/utilities/alignment.css.map +1 -0
- package/dist/css/utilities/background.css +2 -0
- package/dist/css/utilities/background.css.map +1 -0
- package/dist/css/utilities/border.css +2 -0
- package/dist/css/utilities/border.css.map +1 -0
- package/dist/css/utilities/color.css +2 -0
- package/dist/css/utilities/color.css.map +1 -0
- package/dist/css/utilities/container.css +2 -0
- package/dist/css/utilities/container.css.map +1 -0
- package/dist/css/utilities/display.css +2 -0
- package/dist/css/utilities/display.css.map +1 -0
- package/dist/css/utilities/flex.css +2 -0
- package/dist/css/utilities/flex.css.map +1 -0
- package/dist/css/utilities/gradient.css +2 -0
- package/dist/css/utilities/gradient.css.map +1 -0
- package/dist/css/utilities/height.css +2 -0
- package/dist/css/utilities/height.css.map +1 -0
- package/dist/css/utilities/inset.css +2 -0
- package/dist/css/utilities/inset.css.map +1 -0
- package/dist/css/utilities/justification.css +2 -0
- package/dist/css/utilities/justification.css.map +1 -0
- package/dist/css/utilities/list.css +2 -0
- package/dist/css/utilities/list.css.map +1 -0
- package/dist/css/utilities/order.css +2 -0
- package/dist/css/utilities/order.css.map +1 -0
- package/dist/css/utilities/position.css +2 -0
- package/dist/css/utilities/position.css.map +1 -0
- package/dist/css/utilities/ratio.css +2 -0
- package/dist/css/utilities/ratio.css.map +1 -0
- package/dist/css/utilities/spacing.css +2 -0
- package/dist/css/utilities/spacing.css.map +1 -0
- package/dist/css/utilities/typography.css +2 -0
- package/dist/css/utilities/typography.css.map +1 -0
- package/dist/css/utilities/visibility.css +2 -0
- package/dist/css/utilities/visibility.css.map +1 -0
- package/dist/css/utilities/visually-hidden.css +2 -0
- package/dist/css/utilities/visually-hidden.css.map +1 -0
- package/dist/css/utilities/width.css +2 -0
- package/dist/css/utilities/width.css.map +1 -0
- package/dist/css/utilities/z-index.css +2 -0
- package/dist/css/utilities/z-index.css.map +1 -0
- package/dist/css/utilities.css +2 -0
- package/dist/css/utilities.css.map +1 -0
- package/package.json +58 -0
- package/scss/base/button.scss +3 -0
- package/scss/base/form.scss +3 -0
- package/scss/base/link.scss +3 -0
- package/scss/base/table.scss +3 -0
- package/scss/base.scss +3 -0
- package/scss/component/accordion.scss +3 -0
- package/scss/component/alert.scss +3 -0
- package/scss/component/card.scss +3 -0
- package/scss/component/carousel.scss +3 -0
- package/scss/component/input-group.scss +3 -0
- package/scss/component/list.scss +3 -0
- package/scss/component/menu.scss +3 -0
- package/scss/component/navigation.scss +3 -0
- package/scss/component.scss +3 -0
- package/scss/graupl.scss +3 -0
- package/scss/init.scss +3 -0
- package/scss/layout/columns.scss +3 -0
- package/scss/layout/container.scss +3 -0
- package/scss/layout/flex-columns.scss +3 -0
- package/scss/layout.scss +3 -0
- package/scss/normalize.scss +3 -0
- package/scss/state/focus.scss +3 -0
- package/scss/state.scss +3 -0
- package/scss/theme/color.scss +3 -0
- package/scss/theme/typography.scss +3 -0
- package/scss/theme.scss +3 -0
- package/scss/utilities/alignment.scss +3 -0
- package/scss/utilities/background.scss +3 -0
- package/scss/utilities/border.scss +3 -0
- package/scss/utilities/color.scss +3 -0
- package/scss/utilities/container.scss +3 -0
- package/scss/utilities/display.scss +3 -0
- package/scss/utilities/flex.scss +3 -0
- package/scss/utilities/gradient.scss +3 -0
- package/scss/utilities/height.scss +3 -0
- package/scss/utilities/inset.scss +3 -0
- package/scss/utilities/justification.scss +3 -0
- package/scss/utilities/list.scss +3 -0
- package/scss/utilities/order.scss +3 -0
- package/scss/utilities/position.scss +3 -0
- package/scss/utilities/ratio.scss +3 -0
- package/scss/utilities/spacing.scss +3 -0
- package/scss/utilities/typography.scss +3 -0
- package/scss/utilities/visibility.scss +3 -0
- package/scss/utilities/visually-hidden.scss +3 -0
- package/scss/utilities/width.scss +3 -0
- package/scss/utilities/z-index.scss +3 -0
- package/scss/utilities.scss +3 -0
- package/src/js/accordion/Accordion.js +1163 -0
- package/src/js/accordion/AccordionItem.js +496 -0
- package/src/js/accordion/index.js +10 -0
- package/src/js/alert/Alert.js +581 -0
- package/src/js/alert/index.js +11 -0
- package/src/js/carousel/Carousel.js +1427 -0
- package/src/js/carousel/index.js +10 -0
- package/src/js/domHelpers.js +37 -0
- package/src/js/eventHandlers.js +39 -0
- package/src/js/navigation/index.js +36 -0
- package/src/js/storage.js +106 -0
- package/src/js/validate.js +225 -0
- package/src/scss/_defaults.scss +184 -0
- package/src/scss/_index.scss +15 -0
- package/src/scss/_init.scss +6 -0
- package/src/scss/_normalize.scss +197 -0
- package/src/scss/_variables.scss +95 -0
- package/src/scss/base/_index.scss +6 -0
- package/src/scss/base/button/_defaults.scss +49 -0
- package/src/scss/base/button/_index.scss +206 -0
- package/src/scss/base/button/_mixins.scss +104 -0
- package/src/scss/base/button/_variables.scss +252 -0
- package/src/scss/base/form/_defaults.scss +24 -0
- package/src/scss/base/form/_index.scss +227 -0
- package/src/scss/base/form/_variables.scss +245 -0
- package/src/scss/base/link/_defaults.scss +35 -0
- package/src/scss/base/link/_index.scss +245 -0
- package/src/scss/base/link/_variables.scss +370 -0
- package/src/scss/base/table/_defaults.scss +68 -0
- package/src/scss/base/table/_index.scss +314 -0
- package/src/scss/base/table/_variables.scss +309 -0
- package/src/scss/component/_index.scss +10 -0
- package/src/scss/component/accordion/_defaults.scss +40 -0
- package/src/scss/component/accordion/_index.scss +198 -0
- package/src/scss/component/accordion/_variables.scss +356 -0
- package/src/scss/component/alert/_defaults.scss +49 -0
- package/src/scss/component/alert/_index.scss +119 -0
- package/src/scss/component/alert/_variables.scss +200 -0
- package/src/scss/component/card/_defaults.scss +32 -0
- package/src/scss/component/card/_index.scss +212 -0
- package/src/scss/component/card/_variables.scss +216 -0
- package/src/scss/component/carousel/_defaults.scss +43 -0
- package/src/scss/component/carousel/_index.scss +192 -0
- package/src/scss/component/carousel/_variables.scss +104 -0
- package/src/scss/component/input-group/_defaults.scss +30 -0
- package/src/scss/component/input-group/_index.scss +47 -0
- package/src/scss/component/input-group/_variables.scss +66 -0
- package/src/scss/component/list/_defaults.scss +15 -0
- package/src/scss/component/list/_index.scss +52 -0
- package/src/scss/component/list/_variables.scss +236 -0
- package/src/scss/component/menu/_defaults.scss +57 -0
- package/src/scss/component/menu/_index.scss +308 -0
- package/src/scss/component/menu/_variables.scss +642 -0
- package/src/scss/component/navigation/_defaults.scss +23 -0
- package/src/scss/component/navigation/_index.scss +190 -0
- package/src/scss/component/navigation/_variables.scss +290 -0
- package/src/scss/functions/_container.scss +38 -0
- package/src/scss/functions/_important.scss +36 -0
- package/src/scss/functions/_screen.scss +38 -0
- package/src/scss/functions/_theme.scss +39 -0
- package/src/scss/functions/_utility.scss +28 -0
- package/src/scss/layout/_index.scss +5 -0
- package/src/scss/layout/columns/_defaults.scss +24 -0
- package/src/scss/layout/columns/_index.scss +137 -0
- package/src/scss/layout/columns/_variables.scss +55 -0
- package/src/scss/layout/container/_defaults.scss +35 -0
- package/src/scss/layout/container/_index.scss +628 -0
- package/src/scss/layout/container/_variables.scss +114 -0
- package/src/scss/layout/flex-columns/_defaults.scss +28 -0
- package/src/scss/layout/flex-columns/_index.scss +184 -0
- package/src/scss/layout/flex-columns/_variables.scss +30 -0
- package/src/scss/mixins/_animation.scss +15 -0
- package/src/scss/mixins/_container.scss +80 -0
- package/src/scss/mixins/_layer.scss +16 -0
- package/src/scss/mixins/_screen.scss +77 -0
- package/src/scss/mixins/_state.scss +18 -0
- package/src/scss/mixins/_theme.scss +15 -0
- package/src/scss/mixins/_utility.scss +185 -0
- package/src/scss/mixins/_visually-hidden.scss +30 -0
- package/src/scss/state/_index.scss +3 -0
- package/src/scss/state/focus/_defaults.scss +9 -0
- package/src/scss/state/focus/_index.scss +42 -0
- package/src/scss/state/focus/_mixins.scss +13 -0
- package/src/scss/state/focus/_variables.scss +50 -0
- package/src/scss/theme/_index.scss +4 -0
- package/src/scss/theme/color/_defaults.scss +143 -0
- package/src/scss/theme/color/_index.scss +42 -0
- package/src/scss/theme/color/_variables.scss +133 -0
- package/src/scss/theme/typography/_defaults.scss +54 -0
- package/src/scss/theme/typography/_index.scss +120 -0
- package/src/scss/theme/typography/_variables.scss +248 -0
- package/src/scss/utilities/_index.scss +23 -0
- package/src/scss/utilities/_template/_defaults.scss +41 -0
- package/src/scss/utilities/_template/_index.scss +171 -0
- package/src/scss/utilities/_template/_variables.scss +6 -0
- package/src/scss/utilities/alignment/_defaults.scss +76 -0
- package/src/scss/utilities/alignment/_index.scss +336 -0
- package/src/scss/utilities/alignment/_variables.scss +6 -0
- package/src/scss/utilities/background/_defaults.scss +122 -0
- package/src/scss/utilities/background/_index.scss +634 -0
- package/src/scss/utilities/background/_variables.scss +6 -0
- package/src/scss/utilities/border/_defaults.scss +73 -0
- package/src/scss/utilities/border/_index.scss +558 -0
- package/src/scss/utilities/border/_variables.scss +6 -0
- package/src/scss/utilities/color/_defaults.scss +49 -0
- package/src/scss/utilities/color/_index.scss +469 -0
- package/src/scss/utilities/color/_variables.scss +6 -0
- package/src/scss/utilities/container/_defaults.scss +40 -0
- package/src/scss/utilities/container/_index.scss +174 -0
- package/src/scss/utilities/container/_variables.scss +6 -0
- package/src/scss/utilities/display/_defaults.scss +47 -0
- package/src/scss/utilities/display/_index.scss +184 -0
- package/src/scss/utilities/display/_variables.scss +6 -0
- package/src/scss/utilities/flex/_defaults.scss +99 -0
- package/src/scss/utilities/flex/_index.scss +486 -0
- package/src/scss/utilities/flex/_variables.scss +6 -0
- package/src/scss/utilities/gradient/_defaults.scss +70 -0
- package/src/scss/utilities/gradient/_index.scss +696 -0
- package/src/scss/utilities/gradient/_variables.scss +29 -0
- package/src/scss/utilities/height/_defaults.scss +54 -0
- package/src/scss/utilities/height/_index.scss +525 -0
- package/src/scss/utilities/height/_variables.scss +6 -0
- package/src/scss/utilities/inset/_defaults.scss +55 -0
- package/src/scss/utilities/inset/_index.scss +258 -0
- package/src/scss/utilities/inset/_variables.scss +6 -0
- package/src/scss/utilities/justification/_defaults.scss +73 -0
- package/src/scss/utilities/justification/_index.scss +333 -0
- package/src/scss/utilities/justification/_variables.scss +6 -0
- package/src/scss/utilities/list/_defaults.scss +53 -0
- package/src/scss/utilities/list/_index.scss +253 -0
- package/src/scss/utilities/list/_variables.scss +6 -0
- package/src/scss/utilities/order/_defaults.scss +36 -0
- package/src/scss/utilities/order/_index.scss +246 -0
- package/src/scss/utilities/order/_variables.scss +6 -0
- package/src/scss/utilities/position/_defaults.scss +41 -0
- package/src/scss/utilities/position/_index.scss +178 -0
- package/src/scss/utilities/position/_variables.scss +6 -0
- package/src/scss/utilities/ratio/_defaults.scss +42 -0
- package/src/scss/utilities/ratio/_index.scss +188 -0
- package/src/scss/utilities/ratio/_variables.scss +9 -0
- package/src/scss/utilities/spacing/_defaults.scss +64 -0
- package/src/scss/utilities/spacing/_index.scss +970 -0
- package/src/scss/utilities/spacing/_variables.scss +6 -0
- package/src/scss/utilities/typography/_defaults.scss +58 -0
- package/src/scss/utilities/typography/_index.scss +1089 -0
- package/src/scss/utilities/typography/_variables.scss +6 -0
- package/src/scss/utilities/visibility/_defaults.scss +39 -0
- package/src/scss/utilities/visibility/_index.scss +173 -0
- package/src/scss/utilities/visibility/_variables.scss +6 -0
- package/src/scss/utilities/visually-hidden/_defaults.scss +29 -0
- package/src/scss/utilities/visually-hidden/_index.scss +189 -0
- package/src/scss/utilities/visually-hidden/_variables.scss +6 -0
- package/src/scss/utilities/width/_defaults.scss +54 -0
- package/src/scss/utilities/width/_index.scss +525 -0
- package/src/scss/utilities/width/_variables.scss +6 -0
- package/src/scss/utilities/z-index/_defaults.scss +40 -0
- package/src/scss/utilities/z-index/_index.scss +173 -0
- package/src/scss/utilities/z-index/_variables.scss +6 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
// @graupl/core table base styles.
|
|
2
|
+
//
|
|
3
|
+
// This module provides the base styles for tables.
|
|
4
|
+
//
|
|
5
|
+
// The following selectors are generated by default:
|
|
6
|
+
// - `table`: The table component.
|
|
7
|
+
// - `caption`: The table caption component.
|
|
8
|
+
// - `th`: The table header cell component.
|
|
9
|
+
// - `td`: The table cell component.
|
|
10
|
+
// - `tr`: The table row component.
|
|
11
|
+
// - `tbody`: The table body component.
|
|
12
|
+
// - `.bordered`: A component modifier to make the table component bordered.
|
|
13
|
+
// - `.collapsed`: A component modifier to make the table component's border collapsed.
|
|
14
|
+
// - `.striped-columns`: A component modifier to make the table component's columns striped.
|
|
15
|
+
// - `.striped-rows`: A component modifier to make the table component's rows striped.
|
|
16
|
+
// - `.hoverable`: A component modifier to make the table component's rows change colour on hover.
|
|
17
|
+
// - `.highlight`: A component modifier to highlight table components.
|
|
18
|
+
// - `.responsive-table`: A component modifier to make the table component responsive.
|
|
19
|
+
// - `.primary`: A component modifier to apply the primary colour to the table component.
|
|
20
|
+
// - `.secondary`: A component modifier to apply the secondary colour to the table component.
|
|
21
|
+
// - `.tertiary`: A component modifier to apply the tertiary colour to the table component.
|
|
22
|
+
//
|
|
23
|
+
// The following custom properties control the generated selectors:
|
|
24
|
+
// - `--graupl-table-caption-side`: The caption side of the table component.
|
|
25
|
+
// - `--graupl-table-caption-padding-x`: The horizontal padding of the table caption component.
|
|
26
|
+
// - `--graupl-table-caption-padding-y`: The vertical padding of the table caption component.
|
|
27
|
+
// - `--graupl-table-caption-padding`: The padding of the table caption component (combines x and y padding).
|
|
28
|
+
// - `--graupl-table-header-font-weight`: The font weight of the table header component.
|
|
29
|
+
// - `--graupl-table-header-padding-x`: The horizontal padding of the table header component.
|
|
30
|
+
// - `--graupl-table-header-padding-y`: The vertical padding of the table header component.
|
|
31
|
+
// - `--graupl-table-header-padding`: The padding of the table header component (combines x and y padding).
|
|
32
|
+
// - `--graupl-table-header-background`: The background colour of the table header component.
|
|
33
|
+
// - `--graupl-table-header-color`: The text colour of the table header component.
|
|
34
|
+
// - `--graupl-table-cell-padding-x`: The horizontal padding of the table cell component.
|
|
35
|
+
// - `--graupl-table-cell-padding-y`: The vertical padding of the table cell component.
|
|
36
|
+
// - `--graupl-table-cell-padding`: The padding of the table cell component (combines x and y padding).
|
|
37
|
+
// - `--graupl-table-cell-background`: The background colour of the table cell component.
|
|
38
|
+
// - `--graupl-table-cell-color`: The text colour of the table cell component.
|
|
39
|
+
// - `--graupl-table-border-top-width`: The top border width of the table component.
|
|
40
|
+
// - `--graupl-table-border-right-width`: The right border width of the table component.
|
|
41
|
+
// - `--graupl-table-border-bottom-width`: The bottom border width of the table component.
|
|
42
|
+
// - `--graupl-table-border-left-width`: The left border width of the table component.
|
|
43
|
+
// - `--graupl-table-border-width`: The border width of the table component (combines top, right, bottom, and left widths).
|
|
44
|
+
// - `--graupl-table-border-top-style`: The top border style of the table component.
|
|
45
|
+
// - `--graupl-table-border-right-style`: The right border style of the table component.
|
|
46
|
+
// - `--graupl-table-border-bottom-style`: The bottom border style of the table component.
|
|
47
|
+
// - `--graupl-table-border-left-style`: The left border style of the table component.
|
|
48
|
+
// - `--graupl-table-border-style`: The border style of the table component (combines top, right, bottom, and left styles).
|
|
49
|
+
// - `--graupl-table-border-top-left-radius`: The top left border radius of the table component.
|
|
50
|
+
// - `--graupl-table-border-top-right-radius`: The top right border radius of the table component.
|
|
51
|
+
// - `--graupl-table-border-bottom-right-radius`: The bottom right border radius of the table component.
|
|
52
|
+
// - `--graupl-table-border-bottom-left-radius`: The bottom left border radius of the table component.
|
|
53
|
+
// - `--graupl-table-border-radius`: The border radius of the table component (combines top left, top right, bottom right, and bottom left radii).
|
|
54
|
+
// - `--graupl-table-border-color`: The border colour of the table component.
|
|
55
|
+
// - `--graupl-table-cell-border-top-width`: The top border width of the table cell component.
|
|
56
|
+
// - `--graupl-table-cell-border-right-width`: The right border width of the table cell component.
|
|
57
|
+
// - `--graupl-table-cell-border-bottom-width`: The bottom border width of the table cell component.
|
|
58
|
+
// - `--graupl-table-cell-border-left-width`: The left border width of the table cell component.
|
|
59
|
+
// - `--graupl-table-cell-border-width`: The border width of the table cell component (combines top, right, bottom, and left widths).
|
|
60
|
+
// - `--graupl-table-cell-border-top-style`: The top border style of the table cell component.
|
|
61
|
+
// - `--graupl-table-cell-border-right-style`: The right border style of the table cell component.
|
|
62
|
+
// - `--graupl-table-cell-border-bottom-style`: The bottom border style of the table cell component.
|
|
63
|
+
// - `--graupl-table-cell-border-left-style`: The left border style of the table cell component.
|
|
64
|
+
// - `--graupl-table-cell-border-style`: The border style of the table cell component (combines top, right, bottom, and left styles).
|
|
65
|
+
// - `--graupl-table-cell-border-top-left-radius`: The top left border radius of the table cell component.
|
|
66
|
+
// - `--graupl-table-cell-border-top-right-radius`: The top right border radius of the table cell component.
|
|
67
|
+
// - `--graupl-table-cell-border-bottom-right-radius`: The bottom right border radius of the table cell component.
|
|
68
|
+
// - `--graupl-table-cell-border-bottom-left-radius`: The bottom left border radius of the table cell component.
|
|
69
|
+
// - `--graupl-table-cell-border-radius`: The border radius of the table cell component (combines top left, top right, bottom right, and bottom left radii).
|
|
70
|
+
// - `--graupl-table-cell-border-color`: The border colour of the table cell component.
|
|
71
|
+
// - `--graupl-table-header-border-top-width`: The top border width of the table header component.
|
|
72
|
+
// - `--graupl-table-header-border-right-width`: The right border width of the table header component.
|
|
73
|
+
// - `--graupl-table-header-border-bottom-width`: The bottom border width of the table header component.
|
|
74
|
+
// - `--graupl-table-header-border-left-width`: The left border width of the table header component.
|
|
75
|
+
// - `--graupl-table-header-border-width`: The border width of the table header component (combines top, right, bottom, and left widths).
|
|
76
|
+
// - `--graupl-table-header-border-top-style`: The top border style of the table header component.
|
|
77
|
+
// - `--graupl-table-header-border-right-style`: The right border style of the table header component.
|
|
78
|
+
// - `--graupl-table-header-border-bottom-style`: The bottom border style of the table header component.
|
|
79
|
+
// - `--graupl-table-header-border-left-style`: The left border style of the table header component.
|
|
80
|
+
// - `--graupl-table-header-border-style`: The border style of the table header component (combines top, right, bottom, and left styles).
|
|
81
|
+
// - `--graupl-table-header-border-top-left-radius`: The top left border radius of the table header component.
|
|
82
|
+
// - `--graupl-table-header-border-top-right-radius`: The top right border radius of the table header component.
|
|
83
|
+
// - `--graupl-table-header-border-bottom-right-radius`: The bottom right border radius of the table header component.
|
|
84
|
+
// - `--graupl-table-header-border-bottom-left-radius`: The bottom left border radius of the table header component.
|
|
85
|
+
// - `--graupl-table-header-border-radius`: The border radius of the table header component (combines top left, top right, bottom right, and bottom left radii).
|
|
86
|
+
// - `--graupl-table-header-border-color`: The border colour of the table header component.
|
|
87
|
+
// - `--graupl-table-striped-background`: The background colour of the striped table component modifier.
|
|
88
|
+
// - `--graupl-table-striped-color`: The text colour of the striped table component modifier.
|
|
89
|
+
// - `--graupl-table-hover-background`: The background colour of the hoverable table component modifier.
|
|
90
|
+
// - `--graupl-table-hover-color`: The text colour of the hoverable table component modifier.
|
|
91
|
+
// - `--graupl-table-highlight-background`: The background colour of the highlighted table component modifier.
|
|
92
|
+
// - `--graupl-table-highlight-color`: The text colour of the highlighted table component modifier.
|
|
93
|
+
//
|
|
94
|
+
// The following variables control the generated selectors:
|
|
95
|
+
// - `$selector-base`: The selector base for the component.
|
|
96
|
+
// - `$modifier-selector-base`: The selector base for component modifiers.
|
|
97
|
+
// - `$table-selector-base`: The selector base for the table component.
|
|
98
|
+
// - `$table-selector`: The selector for the table component.
|
|
99
|
+
// - `$table-caption-selector-base`: The selector base for the table caption component.
|
|
100
|
+
// - `$table-caption-selector`: The selector for the table caption component.
|
|
101
|
+
// - `$table-header-selector-base`: The selector base for the table header cell component.
|
|
102
|
+
// - `$table-header-selector`: The selector for the table header cell component.
|
|
103
|
+
// - `$table-cell-selector-base`: The selector base for the table cell component.
|
|
104
|
+
// - `$table-cell-selector`: The selector for the table cell component.
|
|
105
|
+
// - `$table-row-selector-base`: The selector base for the table row component.
|
|
106
|
+
// - `$table-row-selector`: The selector for the table row component.
|
|
107
|
+
// - `$table-body-selector-base`: The selector base for the table body component.
|
|
108
|
+
// - `$table-body-selector`: The selector for the table body component.
|
|
109
|
+
// - `$table-theme-prefix-selector-base`: The selector base for the themed table component modifiers.
|
|
110
|
+
// - `$table-theme-prefix-selector`: The selector prefix for the themed table component modifiers.
|
|
111
|
+
// - `$table-bordered-selector-base`: The selector base for the bordered table component modifier.
|
|
112
|
+
// - `$table-bordered-selector`: The selector for the bordered table component modifier.
|
|
113
|
+
// - `$table-collapsed-selector-base`: The selector base for the collapsed table component modifier.
|
|
114
|
+
// - `$table-collapsed-selector`: The selector for the collapsed table component modifier.
|
|
115
|
+
// - `$table-striped-columns-selector-base`: The selector base for the striped columns table component modifier.
|
|
116
|
+
// - `$table-striped-columns-selector`: The selector for the striped columns table component modifier.
|
|
117
|
+
// - `$table-striped-rows-selector-base`: The selector base for the striped rows table component modifier.
|
|
118
|
+
// - `$table-striped-rows-selector`: The selector for the striped rows table component modifier.
|
|
119
|
+
// - `$table-hoverable-selector-base`: The selector base for the hoverable table component modifier.
|
|
120
|
+
// - `$table-hoverable-selector`: The selector for the hoverable table component modifier.
|
|
121
|
+
// - `$table-highlight-selector-base`: The selector base for the highlighted table component modifier.
|
|
122
|
+
// - `$table-highlight-selector`: The selector for the highlighted table component modifier.
|
|
123
|
+
// - `$table-responsive-selector-base`: The selector base for the responsive table component modifier.
|
|
124
|
+
// - `$table-responsive-selector`: The selector for the responsive table component modifier.
|
|
125
|
+
//
|
|
126
|
+
// @example
|
|
127
|
+
// <table class="table bordered">
|
|
128
|
+
// <caption>Table Caption</caption>
|
|
129
|
+
// <thead>
|
|
130
|
+
// <tr>
|
|
131
|
+
// <th>Header 1</th>
|
|
132
|
+
// <th>Header 2</th>
|
|
133
|
+
// </tr>
|
|
134
|
+
// </thead>
|
|
135
|
+
// <tbody>
|
|
136
|
+
// <tr>
|
|
137
|
+
// <td>Cell 1</td>
|
|
138
|
+
// <td>Cell 2</td>
|
|
139
|
+
// </tr>
|
|
140
|
+
// <tr>
|
|
141
|
+
// <td>Cell 3</td>
|
|
142
|
+
// <td>Cell 4</td>
|
|
143
|
+
// </tr>
|
|
144
|
+
// </tbody>
|
|
145
|
+
// </table>
|
|
146
|
+
|
|
147
|
+
@use "defaults";
|
|
148
|
+
@use "variables" as *;
|
|
149
|
+
@use "../../mixins/layer" as *;
|
|
150
|
+
@use "../../defaults" as root-defaults;
|
|
151
|
+
@use "../../functions/theme";
|
|
152
|
+
|
|
153
|
+
@include layer(base) {
|
|
154
|
+
// table
|
|
155
|
+
#{defaults.$table-selector-base}#{defaults.$table-selector} {
|
|
156
|
+
border-radius: $table-border-radius;
|
|
157
|
+
|
|
158
|
+
// caption
|
|
159
|
+
#{defaults.$table-caption-selector-base}#{defaults.$table-caption-selector} {
|
|
160
|
+
padding: $table-caption-padding;
|
|
161
|
+
caption-side: $table-caption-side;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// th
|
|
165
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
166
|
+
padding: $table-header-padding;
|
|
167
|
+
border-radius: $table-header-border-radius;
|
|
168
|
+
font-weight: $table-header-font-weight;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// td, tbody th
|
|
172
|
+
#{defaults.$table-cell-selector-base}#{defaults.$table-cell-selector},
|
|
173
|
+
#{defaults.$table-body-selector-base}#{defaults.$table-body-selector}
|
|
174
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
175
|
+
padding: $table-cell-padding;
|
|
176
|
+
border-radius: $table-cell-border-radius;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// &.collapsed
|
|
180
|
+
&#{defaults.$table-collapsed-selector-base}#{defaults.$table-collapsed-selector} {
|
|
181
|
+
border-collapse: collapse;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// &.bordered
|
|
185
|
+
&#{defaults.$table-bordered-selector-base}#{defaults.$table-bordered-selector} {
|
|
186
|
+
// A bordered table can't actually have rounded corners.
|
|
187
|
+
--#{root-defaults.$prefix}table-border-radius: 0;
|
|
188
|
+
--#{root-defaults.$prefix}table-cell-border-radius: 0;
|
|
189
|
+
--#{root-defaults.$prefix}table-header-border-radius: 0;
|
|
190
|
+
|
|
191
|
+
border-collapse: collapse;
|
|
192
|
+
border-width: $table-border-width;
|
|
193
|
+
border-style: $table-border-style;
|
|
194
|
+
|
|
195
|
+
// td
|
|
196
|
+
#{defaults.$table-cell-selector-base}#{defaults.$table-cell-selector} {
|
|
197
|
+
border-width: $table-cell-border-width;
|
|
198
|
+
border-style: $table-cell-border-style;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// th
|
|
202
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
203
|
+
border-width: $table-header-border-width;
|
|
204
|
+
border-style: $table-header-border-style;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// .responsive-table
|
|
210
|
+
#{defaults.$table-responsive-selector-base}#{defaults.$table-responsive-selector} {
|
|
211
|
+
display: block;
|
|
212
|
+
width: 100%;
|
|
213
|
+
overflow: scroll hidden;
|
|
214
|
+
|
|
215
|
+
// table
|
|
216
|
+
#{defaults.$table-selector-base}#{defaults.$table-selector} {
|
|
217
|
+
width: 100%;
|
|
218
|
+
margin-bottom: 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@include layer(theme) {
|
|
224
|
+
// table
|
|
225
|
+
#{defaults.$table-selector-base}#{defaults.$table-selector} {
|
|
226
|
+
@each $variant in theme.variants() {
|
|
227
|
+
// e.g. &.primary, &.secondary, &.tertiary,
|
|
228
|
+
// e.g. .primary, .secondary, .tertiary
|
|
229
|
+
&#{defaults.$table-theme-prefix-selector-base}#{defaults.$table-theme-prefix-selector}#{$variant},
|
|
230
|
+
#{defaults.$table-theme-prefix-selector-base}#{defaults.$table-theme-prefix-selector}#{$variant} {
|
|
231
|
+
@each $prop, $key in defaults.$table-theme-map {
|
|
232
|
+
--#{root-defaults.$prefix}table-#{$prop}: #{theme.get(
|
|
233
|
+
$variant,
|
|
234
|
+
$key
|
|
235
|
+
)};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// th
|
|
241
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
242
|
+
background: $table-header-background;
|
|
243
|
+
color: $table-header-color;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// td, tbody th
|
|
247
|
+
#{defaults.$table-cell-selector-base}#{defaults.$table-cell-selector},
|
|
248
|
+
#{defaults.$table-body-selector-base}#{defaults.$table-body-selector}
|
|
249
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
250
|
+
background: $table-cell-background;
|
|
251
|
+
color: $table-cell-color;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// &.bordered
|
|
255
|
+
&#{defaults.$table-bordered-selector-base}#{defaults.$table-bordered-selector} {
|
|
256
|
+
border-color: $table-border-color;
|
|
257
|
+
|
|
258
|
+
// td
|
|
259
|
+
#{defaults.$table-cell-selector-base}#{defaults.$table-cell-selector} {
|
|
260
|
+
border-color: $table-cell-border-color;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// th
|
|
264
|
+
#{defaults.$table-header-selector-base}#{defaults.$table-header-selector} {
|
|
265
|
+
border-color: $table-header-border-color;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// &.striped-columns
|
|
270
|
+
&#{defaults.$table-striped-columns-selector-base}#{defaults.$table-striped-columns-selector} {
|
|
271
|
+
// tbody tr:nth-child(odd) > *
|
|
272
|
+
#{defaults.$table-body-selector-base}#{defaults.$table-body-selector}
|
|
273
|
+
#{defaults.$table-row-selector-base}#{defaults.$table-row-selector}:nth-child(
|
|
274
|
+
odd
|
|
275
|
+
)
|
|
276
|
+
> * {
|
|
277
|
+
background: $table-striped-background;
|
|
278
|
+
color: $table-striped-color;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// &.striped-rows
|
|
283
|
+
&#{defaults.$table-striped-rows-selector-base}#{defaults.$table-striped-rows-selector} {
|
|
284
|
+
// tbody tr > :nth-child(odd)
|
|
285
|
+
#{defaults.$table-body-selector-base}#{defaults.$table-body-selector}
|
|
286
|
+
#{defaults.$table-row-selector-base}#{defaults.$table-row-selector}
|
|
287
|
+
> :nth-child(odd) {
|
|
288
|
+
background: $table-striped-background;
|
|
289
|
+
color: $table-striped-color;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// &.hoverable
|
|
294
|
+
&#{defaults.$table-hoverable-selector-base}#{defaults.$table-hoverable-selector} {
|
|
295
|
+
// tbody tr:hover > *
|
|
296
|
+
#{defaults.$table-body-selector-base}#{defaults.$table-body-selector}
|
|
297
|
+
#{defaults.$table-row-selector-base}#{defaults.$table-row-selector}:hover
|
|
298
|
+
> * {
|
|
299
|
+
background: $table-hover-background;
|
|
300
|
+
color: $table-hover-color;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// &.highlight
|
|
305
|
+
#{defaults.$table-highlight-selector-base}#{defaults.$table-highlight-selector} {
|
|
306
|
+
--#{root-defaults.$prefix}table-cell-background: #{$table-highlight-background};
|
|
307
|
+
--#{root-defaults.$prefix}table-cell-color: #{$table-highlight-color};
|
|
308
|
+
--#{root-defaults.$prefix}table-header-background: #{$table-highlight-background};
|
|
309
|
+
--#{root-defaults.$prefix}table-header-color: #{$table-highlight-color};
|
|
310
|
+
--#{root-defaults.$prefix}table-striped-background: #{$table-highlight-background};
|
|
311
|
+
--#{root-defaults.$prefix}table-striped-color: #{$table-highlight-color};
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// @graupl/core table base variables.
|
|
2
|
+
//
|
|
3
|
+
// These values are to be used to directly style bases and provide a
|
|
4
|
+
// cleaner way to reference custom properties.
|
|
5
|
+
|
|
6
|
+
@use "defaults";
|
|
7
|
+
@use "../../defaults" as root-defaults;
|
|
8
|
+
@use "../../variables" as root-variables;
|
|
9
|
+
@use "../../theme/typography/variables" as typography;
|
|
10
|
+
@use "../../theme/color/variables" as color;
|
|
11
|
+
@use "../../functions/theme";
|
|
12
|
+
@use "sass:map";
|
|
13
|
+
|
|
14
|
+
// Table caption properties.
|
|
15
|
+
$table-caption-side: var(
|
|
16
|
+
--#{root-defaults.$prefix}table-caption-side,
|
|
17
|
+
#{defaults.$table-caption-side}
|
|
18
|
+
);
|
|
19
|
+
$table-caption-padding-x: var(
|
|
20
|
+
--#{root-defaults.$prefix}table-caption-padding-x,
|
|
21
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
22
|
+
);
|
|
23
|
+
$table-caption-padding-y: var(
|
|
24
|
+
--#{root-defaults.$prefix}table-caption-padding-y,
|
|
25
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
26
|
+
);
|
|
27
|
+
$table-caption-padding: $table-caption-padding-y $table-caption-padding-x;
|
|
28
|
+
|
|
29
|
+
// Table header properties.
|
|
30
|
+
$table-header-font-weight: var(
|
|
31
|
+
--#{root-defaults.$prefix}table-header-font-weight,
|
|
32
|
+
#{typography.$font-weight-bold}
|
|
33
|
+
);
|
|
34
|
+
$table-header-padding-x: var(
|
|
35
|
+
--#{root-defaults.$prefix}table-header-padding-x,
|
|
36
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
37
|
+
);
|
|
38
|
+
$table-header-padding-y: var(
|
|
39
|
+
--#{root-defaults.$prefix}table-header-padding-y,
|
|
40
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
41
|
+
);
|
|
42
|
+
$table-header-padding: $table-header-padding-y $table-header-padding-x;
|
|
43
|
+
$table-header-background: var(
|
|
44
|
+
--#{root-defaults.$prefix}table-header-background,
|
|
45
|
+
#{color.$background}
|
|
46
|
+
);
|
|
47
|
+
$table-header-color: var(
|
|
48
|
+
--#{root-defaults.$prefix}table-header-color,
|
|
49
|
+
#{color.$color}
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
// Table cell properties.
|
|
53
|
+
$table-cell-padding-x: var(
|
|
54
|
+
--#{root-defaults.$prefix}table-cell-padding-x,
|
|
55
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
56
|
+
);
|
|
57
|
+
$table-cell-padding-y: var(
|
|
58
|
+
--#{root-defaults.$prefix}table-cell-padding-y,
|
|
59
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
60
|
+
);
|
|
61
|
+
$table-cell-padding: $table-cell-padding-y $table-cell-padding-x;
|
|
62
|
+
$table-cell-background: var(
|
|
63
|
+
--#{root-defaults.$prefix}table-cell-background,
|
|
64
|
+
#{color.$background}
|
|
65
|
+
);
|
|
66
|
+
$table-cell-color: var(
|
|
67
|
+
--#{root-defaults.$prefix}table-cell-color,
|
|
68
|
+
#{color.$color}
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
// Table border properties.
|
|
72
|
+
$table-border-top-width: var(
|
|
73
|
+
--#{root-defaults.$prefix}table-border-top-width,
|
|
74
|
+
#{root-variables.$border-top-width}
|
|
75
|
+
);
|
|
76
|
+
$table-border-right-width: var(
|
|
77
|
+
--#{root-defaults.$prefix}table-border-right-width,
|
|
78
|
+
#{root-variables.$border-right-width}
|
|
79
|
+
);
|
|
80
|
+
$table-border-bottom-width: var(
|
|
81
|
+
--#{root-defaults.$prefix}table-border-bottom-width,
|
|
82
|
+
#{root-variables.$border-bottom-width}
|
|
83
|
+
);
|
|
84
|
+
$table-border-left-width: var(
|
|
85
|
+
--#{root-defaults.$prefix}table-border-left-width,
|
|
86
|
+
#{root-variables.$border-left-width}
|
|
87
|
+
);
|
|
88
|
+
$table-border-width: var(
|
|
89
|
+
--#{root-defaults.$prefix}table-border-width,
|
|
90
|
+
#{$table-border-top-width} #{$table-border-right-width}
|
|
91
|
+
#{$table-border-bottom-width} #{$table-border-left-width}
|
|
92
|
+
);
|
|
93
|
+
$table-border-top-style: var(
|
|
94
|
+
--#{root-defaults.$prefix}table-border-top-style,
|
|
95
|
+
#{root-variables.$border-top-style}
|
|
96
|
+
);
|
|
97
|
+
$table-border-right-style: var(
|
|
98
|
+
--#{root-defaults.$prefix}table-border-right-style,
|
|
99
|
+
#{root-variables.$border-right-style}
|
|
100
|
+
);
|
|
101
|
+
$table-border-bottom-style: var(
|
|
102
|
+
--#{root-defaults.$prefix}table-border-bottom-style,
|
|
103
|
+
#{root-variables.$border-bottom-style}
|
|
104
|
+
);
|
|
105
|
+
$table-border-left-style: var(
|
|
106
|
+
--#{root-defaults.$prefix}table-border-left-style,
|
|
107
|
+
#{root-variables.$border-left-style}
|
|
108
|
+
);
|
|
109
|
+
$table-border-style: var(
|
|
110
|
+
--#{root-defaults.$prefix}table-border-style,
|
|
111
|
+
#{$table-border-top-style} #{$table-border-right-style}
|
|
112
|
+
#{$table-border-bottom-style} #{$table-border-left-style}
|
|
113
|
+
);
|
|
114
|
+
$table-border-top-left-radius: var(
|
|
115
|
+
--#{root-defaults.$prefix}table-border-top-left-radius,
|
|
116
|
+
#{root-variables.$border-top-left-radius}
|
|
117
|
+
);
|
|
118
|
+
$table-border-top-right-radius: var(
|
|
119
|
+
--#{root-defaults.$prefix}table-border-top-right-radius,
|
|
120
|
+
#{root-variables.$border-top-right-radius}
|
|
121
|
+
);
|
|
122
|
+
$table-border-bottom-right-radius: var(
|
|
123
|
+
--#{root-defaults.$prefix}table-border-bottom-right-radius,
|
|
124
|
+
#{root-variables.$border-bottom-right-radius}
|
|
125
|
+
);
|
|
126
|
+
$table-border-bottom-left-radius: var(
|
|
127
|
+
--#{root-defaults.$prefix}table-border-bottom-left-radius,
|
|
128
|
+
#{root-variables.$border-bottom-left-radius}
|
|
129
|
+
);
|
|
130
|
+
$table-border-radius: var(
|
|
131
|
+
--#{root-defaults.$prefix}table-border-radius,
|
|
132
|
+
#{$table-border-top-left-radius} #{$table-border-top-right-radius}
|
|
133
|
+
#{$table-border-bottom-right-radius} #{$table-border-bottom-left-radius}
|
|
134
|
+
);
|
|
135
|
+
$table-border-color: var(
|
|
136
|
+
--#{root-defaults.$prefix}table-border-color,
|
|
137
|
+
#{color.$border-color}
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
// Table cell border properties.
|
|
141
|
+
$table-cell-border-top-width: var(
|
|
142
|
+
--#{root-defaults.$prefix}table-cell-border-top-width,
|
|
143
|
+
#{root-variables.$border-top-width}
|
|
144
|
+
);
|
|
145
|
+
$table-cell-border-right-width: var(
|
|
146
|
+
--#{root-defaults.$prefix}table-cell-border-right-width,
|
|
147
|
+
#{root-variables.$border-right-width}
|
|
148
|
+
);
|
|
149
|
+
$table-cell-border-bottom-width: var(
|
|
150
|
+
--#{root-defaults.$prefix}table-cell-border-bottom-width,
|
|
151
|
+
#{root-variables.$border-bottom-width}
|
|
152
|
+
);
|
|
153
|
+
$table-cell-border-left-width: var(
|
|
154
|
+
--#{root-defaults.$prefix}table-cell-border-left-width,
|
|
155
|
+
#{root-variables.$border-left-width}
|
|
156
|
+
);
|
|
157
|
+
$table-cell-border-width: var(
|
|
158
|
+
--#{root-defaults.$prefix}table-cell-border-width,
|
|
159
|
+
#{$table-cell-border-top-width} #{$table-cell-border-right-width}
|
|
160
|
+
#{$table-cell-border-bottom-width} #{$table-cell-border-left-width}
|
|
161
|
+
);
|
|
162
|
+
$table-cell-border-top-style: var(
|
|
163
|
+
--#{root-defaults.$prefix}table-cell-border-top-style,
|
|
164
|
+
#{root-variables.$border-top-style}
|
|
165
|
+
);
|
|
166
|
+
$table-cell-border-right-style: var(
|
|
167
|
+
--#{root-defaults.$prefix}table-cell-border-right-style,
|
|
168
|
+
#{root-variables.$border-right-style}
|
|
169
|
+
);
|
|
170
|
+
$table-cell-border-bottom-style: var(
|
|
171
|
+
--#{root-defaults.$prefix}table-cell-border-bottom-style,
|
|
172
|
+
#{root-variables.$border-bottom-style}
|
|
173
|
+
);
|
|
174
|
+
$table-cell-border-left-style: var(
|
|
175
|
+
--#{root-defaults.$prefix}table-cell-border-left-style,
|
|
176
|
+
#{root-variables.$border-left-style}
|
|
177
|
+
);
|
|
178
|
+
$table-cell-border-style: var(
|
|
179
|
+
--#{root-defaults.$prefix}table-cell-border-style,
|
|
180
|
+
#{$table-cell-border-top-style} #{$table-cell-border-right-style}
|
|
181
|
+
#{$table-cell-border-bottom-style} #{$table-cell-border-left-style}
|
|
182
|
+
);
|
|
183
|
+
$table-cell-border-top-left-radius: var(
|
|
184
|
+
--#{root-defaults.$prefix}table-cell-border-top-left-radius,
|
|
185
|
+
#{root-variables.$border-top-left-radius}
|
|
186
|
+
);
|
|
187
|
+
$table-cell-border-top-right-radius: var(
|
|
188
|
+
--#{root-defaults.$prefix}table-cell-border-top-right-radius,
|
|
189
|
+
#{root-variables.$border-top-right-radius}
|
|
190
|
+
);
|
|
191
|
+
$table-cell-border-bottom-right-radius: var(
|
|
192
|
+
--#{root-defaults.$prefix}table-cell-border-bottom-right-radius,
|
|
193
|
+
#{root-variables.$border-bottom-right-radius}
|
|
194
|
+
);
|
|
195
|
+
$table-cell-border-bottom-left-radius: var(
|
|
196
|
+
--#{root-defaults.$prefix}table-cell-border-bottom-left-radius,
|
|
197
|
+
#{root-variables.$border-bottom-left-radius}
|
|
198
|
+
);
|
|
199
|
+
$table-cell-border-radius: var(
|
|
200
|
+
--#{root-defaults.$prefix}table-cell-border-radius,
|
|
201
|
+
#{$table-cell-border-top-left-radius} #{$table-cell-border-top-right-radius}
|
|
202
|
+
#{$table-cell-border-bottom-right-radius}
|
|
203
|
+
#{$table-cell-border-bottom-left-radius}
|
|
204
|
+
);
|
|
205
|
+
$table-cell-border-color: var(
|
|
206
|
+
--#{root-defaults.$prefix}table-cell-border-color,
|
|
207
|
+
#{$table-border-color}
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
// Table header border properties.
|
|
211
|
+
$table-header-border-top-width: var(
|
|
212
|
+
--#{root-defaults.$prefix}table-header-border-top-width,
|
|
213
|
+
#{$table-cell-border-top-width}
|
|
214
|
+
);
|
|
215
|
+
$table-header-border-right-width: var(
|
|
216
|
+
--#{root-defaults.$prefix}table-header-border-right-width,
|
|
217
|
+
#{$table-cell-border-right-width}
|
|
218
|
+
);
|
|
219
|
+
$table-header-border-bottom-width: var(
|
|
220
|
+
--#{root-defaults.$prefix}table-header-border-bottom-width,
|
|
221
|
+
#{$table-cell-border-bottom-width}
|
|
222
|
+
);
|
|
223
|
+
$table-header-border-left-width: var(
|
|
224
|
+
--#{root-defaults.$prefix}table-header-border-left-width,
|
|
225
|
+
#{$table-cell-border-left-width}
|
|
226
|
+
);
|
|
227
|
+
$table-header-border-width: var(
|
|
228
|
+
--#{root-defaults.$prefix}table-header-border-width,
|
|
229
|
+
#{$table-header-border-top-width} #{$table-header-border-right-width}
|
|
230
|
+
#{$table-header-border-bottom-width} #{$table-header-border-left-width}
|
|
231
|
+
);
|
|
232
|
+
$table-header-border-top-style: var(
|
|
233
|
+
--#{root-defaults.$prefix}table-header-border-top-style,
|
|
234
|
+
#{$table-cell-border-top-style}
|
|
235
|
+
);
|
|
236
|
+
$table-header-border-right-style: var(
|
|
237
|
+
--#{root-defaults.$prefix}table-header-border-right-style,
|
|
238
|
+
#{$table-cell-border-right-style}
|
|
239
|
+
);
|
|
240
|
+
$table-header-border-bottom-style: var(
|
|
241
|
+
--#{root-defaults.$prefix}table-header-border-bottom-style,
|
|
242
|
+
#{$table-cell-border-bottom-style}
|
|
243
|
+
);
|
|
244
|
+
$table-header-border-left-style: var(
|
|
245
|
+
--#{root-defaults.$prefix}table-header-border-left-style,
|
|
246
|
+
#{$table-cell-border-left-style}
|
|
247
|
+
);
|
|
248
|
+
$table-header-border-style: var(
|
|
249
|
+
--#{root-defaults.$prefix}table-header-border-style,
|
|
250
|
+
#{$table-header-border-top-style} #{$table-header-border-right-style}
|
|
251
|
+
#{$table-header-border-bottom-style} #{$table-header-border-left-style}
|
|
252
|
+
);
|
|
253
|
+
$table-header-border-top-left-radius: var(
|
|
254
|
+
--#{root-defaults.$prefix}table-header-border-top-left-radius,
|
|
255
|
+
#{$table-cell-border-top-left-radius}
|
|
256
|
+
);
|
|
257
|
+
$table-header-border-top-right-radius: var(
|
|
258
|
+
--#{root-defaults.$prefix}table-header-border-top-right-radius,
|
|
259
|
+
#{$table-cell-border-top-right-radius}
|
|
260
|
+
);
|
|
261
|
+
$table-header-border-bottom-right-radius: var(
|
|
262
|
+
--#{root-defaults.$prefix}table-header-border-bottom-right-radius,
|
|
263
|
+
#{$table-cell-border-bottom-right-radius}
|
|
264
|
+
);
|
|
265
|
+
$table-header-border-bottom-left-radius: var(
|
|
266
|
+
--#{root-defaults.$prefix}table-header-border-bottom-left-radius,
|
|
267
|
+
#{$table-cell-border-bottom-left-radius}
|
|
268
|
+
);
|
|
269
|
+
$table-header-border-radius: var(
|
|
270
|
+
--#{root-defaults.$prefix}table-header-border-radius,
|
|
271
|
+
#{$table-header-border-top-left-radius}
|
|
272
|
+
#{$table-header-border-top-right-radius}
|
|
273
|
+
#{$table-header-border-bottom-right-radius}
|
|
274
|
+
#{$table-header-border-bottom-left-radius}
|
|
275
|
+
);
|
|
276
|
+
$table-header-border-color: var(
|
|
277
|
+
--#{root-defaults.$prefix}table-header-border-color,
|
|
278
|
+
#{$table-border-color}
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
// Table striped properties.
|
|
282
|
+
$table-striped-background: var(
|
|
283
|
+
--#{root-defaults.$prefix}table-striped-background,
|
|
284
|
+
#{theme.get(secondary, 200)}
|
|
285
|
+
);
|
|
286
|
+
$table-striped-color: var(
|
|
287
|
+
--#{root-defaults.$prefix}table-striped-color,
|
|
288
|
+
#{theme.get(secondary, 900)}
|
|
289
|
+
);
|
|
290
|
+
|
|
291
|
+
// Table hover properties.
|
|
292
|
+
$table-hover-background: var(
|
|
293
|
+
--#{root-defaults.$prefix}table-hover-background,
|
|
294
|
+
#{theme.get(secondary, 300)}
|
|
295
|
+
);
|
|
296
|
+
$table-hover-color: var(
|
|
297
|
+
--#{root-defaults.$prefix}table-hover-color,
|
|
298
|
+
#{theme.get(secondary, 900)}
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
// Table highlight properties.
|
|
302
|
+
$table-highlight-background: var(
|
|
303
|
+
--#{root-defaults.$prefix}table-highlight-background,
|
|
304
|
+
#{theme.get(secondary, 500)}
|
|
305
|
+
);
|
|
306
|
+
$table-highlight-color: var(
|
|
307
|
+
--#{root-defaults.$prefix}table-highlight-color,
|
|
308
|
+
#{theme.get(secondary, 100)}
|
|
309
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @graupl/core accordion component default values.
|
|
2
|
+
//
|
|
3
|
+
// Generally, these should not be used directly when styling components unless a static value is needed.
|
|
4
|
+
// They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
|
|
5
|
+
//
|
|
6
|
+
// They should not be used to define direct property values (i.e. font-size, color, etc.).
|
|
7
|
+
// Those should be defined as custom properties in the `_variables.scss` file.
|
|
8
|
+
|
|
9
|
+
@use "sass:map";
|
|
10
|
+
|
|
11
|
+
// Accordion selectors.
|
|
12
|
+
$accordion-selector: ".accordion" !default;
|
|
13
|
+
$accordion-item-selector: ".accordion-item" !default;
|
|
14
|
+
$accordion-item-header-selector: ".accordion-item-header" !default;
|
|
15
|
+
$accordion-item-title-selector: ".accordion-item-title" !default;
|
|
16
|
+
$accordion-item-toggle-selector: ".accordion-item-toggle" !default;
|
|
17
|
+
$accordion-item-content-selector: ".accordion-item-content" !default;
|
|
18
|
+
$accordion-item-body-selector: ".accordion-item-body" !default;
|
|
19
|
+
$accordion-item-footer-selector: ".accordion-item-footer" !default;
|
|
20
|
+
$accordion-item-open-selector: ".show" !default;
|
|
21
|
+
$accordion-item-close-selector: ".hide" !default;
|
|
22
|
+
$accordion-item-transition-selector: ".transitioning" !default;
|
|
23
|
+
$accordion-item-toggle-pseudo-selector: "::after" !default;
|
|
24
|
+
|
|
25
|
+
// Toggle transform properties.
|
|
26
|
+
$accordion-item-toggle-transform: none !default;
|
|
27
|
+
$accordion-item-toggle-visited-transform: $accordion-item-toggle-transform !default;
|
|
28
|
+
$accordion-item-toggle-focus-transform: $accordion-item-toggle-transform !default;
|
|
29
|
+
$accordion-item-toggle-hover-transform: $accordion-item-toggle-transform !default;
|
|
30
|
+
$accordion-item-toggle-active-transform: $accordion-item-toggle-transform !default;
|
|
31
|
+
$accordion-item-toggle-disabled-transform: $accordion-item-toggle-transform !default;
|
|
32
|
+
$accordion-item-toggle-pseudo-transform: none !default;
|
|
33
|
+
$accordion-item-toggle-pseudo-open-transform: rotate(-180deg) !default;
|
|
34
|
+
|
|
35
|
+
// Toggle properties.
|
|
36
|
+
$accordion-item-toggle-pseudo-content: "▼" !default;
|
|
37
|
+
|
|
38
|
+
// Accordion transform properties.
|
|
39
|
+
$accordion-item-content-transform: translateY(-100%) !default;
|
|
40
|
+
$accordion-item-content-open-transform: translateY(0) !default;
|