claritas-web-framework 8.5.7 → 8.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +10 -10
- package/README.md +1 -1
- package/dist/index.css +1 -1
- package/index.html +20 -20
- package/index.js +2 -2
- package/package.json +33 -33
- package/sass/_functions.scss +55 -55
- package/sass/_helpers.scss +8 -8
- package/sass/_mixins.scss +12 -12
- package/sass/_modules.scss +30 -30
- package/sass/_reboot.scss +264 -265
- package/sass/_root.scss +56 -56
- package/sass/_utilities.scss +17 -17
- package/sass/_variables.scss +445 -449
- package/sass/helpers/_container.scss +11 -11
- package/sass/helpers/_embed.scss +36 -36
- package/sass/helpers/_grid.scss +53 -53
- package/sass/helpers/_image.scss +5 -5
- package/sass/helpers/_link.scss +15 -15
- package/sass/helpers/_rfs.scss +303 -303
- package/sass/helpers/_screenReader.scss +13 -13
- package/sass/helpers/_wrap.scss +5 -5
- package/sass/index.scss +12 -12
- package/sass/mixins/_breakpoints.scss +133 -133
- package/sass/mixins/_button.scss +116 -116
- package/sass/mixins/_caret.scss +41 -41
- package/sass/mixins/_clearfix.scss +7 -7
- package/sass/mixins/_colors.scss +23 -23
- package/sass/mixins/_container.scss +21 -21
- package/sass/mixins/_gradient.scss +55 -55
- package/sass/mixins/_grid.scss +156 -156
- package/sass/mixins/_group.scss +70 -70
- package/sass/mixins/_list.scss +18 -18
- package/sass/mixins/_screenReader.scss +22 -22
- package/sass/mixins/_wrap.scss +7 -7
- package/sass/modules/_alert.scss +60 -60
- package/sass/modules/_breadcrumbs.scss +43 -43
- package/sass/modules/_button.scss +170 -172
- package/sass/modules/_card.scss +107 -107
- package/sass/modules/_close.scss +59 -59
- package/sass/modules/_details.scss +48 -48
- package/sass/modules/_dialog.scss +47 -47
- package/sass/modules/_dropdown.scss +44 -43
- package/sass/modules/_form.scss +261 -263
- package/sass/modules/_list.scss +78 -78
- package/sass/modules/_loader.scss +183 -183
- package/sass/modules/_modal.scss +45 -45
- package/sass/modules/_nav.scss +136 -136
- package/sass/modules/_pill.scss +61 -61
- package/sass/modules/_table.scss +96 -96
- package/sass/modules/_tabs.scss +88 -93
- package/sass/modules/_tag.scss +72 -72
- package/sass/modules/_tile.scss +101 -101
- package/sass/modules/_tooltip.scss +108 -108
- package/sass/modules/form/_checkbox.scss +78 -78
- package/sass/modules/form/_file.scss +149 -149
- package/sass/modules/form/_formFieldGroup.scss +60 -60
- package/sass/modules/form/_output.scss +6 -6
- package/sass/modules/form/_progress.scss +55 -55
- package/sass/modules/form/_radio.scss +57 -57
- package/sass/modules/form/_range.scss +144 -144
- package/sass/modules/form/_select.scss +22 -22
- package/sass/modules/form/_text.scss +28 -28
- package/sass/modules/form/_textarea.scss +3 -3
- package/sass/modules/form/_toggle.scss +68 -68
- package/sass/utilities/_align.scss +25 -25
- package/sass/utilities/_border.scss +59 -59
- package/sass/utilities/_colors.scss +76 -76
- package/sass/utilities/_display.scss +25 -25
- package/sass/utilities/_flex.scss +65 -65
- package/sass/utilities/_float.scss +17 -17
- package/sass/utilities/_order.scss +23 -23
- package/sass/utilities/_overflow.scss +25 -25
- package/sass/utilities/_pointerEvents.scss +17 -17
- package/sass/utilities/_position.scss +59 -59
- package/sass/utilities/_shadow.scss +7 -7
- package/sass/utilities/_size.scss +118 -118
- package/sass/utilities/_spacing.scss +107 -107
- package/sass/utilities/_translate.scss +15 -15
- package/sass/utilities/_typography.scss +62 -62
- package/sass/utilities/_visibility.scss +17 -17
- package/sass/utilities/_zIndex.scss +15 -15
- package/tests.js +5 -5
- package/webpack.config.js +27 -27
- package/webpack.plugins.js +15 -15
- package/webpack.rules.js +8 -8
package/sass/modules/_nav.scss
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "./../variables" as *;
|
|
3
|
-
@use "./../mixins/list" as *;
|
|
4
|
-
@use "./../mixins/colors" as *;
|
|
5
|
-
|
|
6
|
-
.nav,
|
|
7
|
-
.nav > ul {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
list-style: none;
|
|
11
|
-
align-items: center;
|
|
12
|
-
position: relative;
|
|
13
|
-
|
|
14
|
-
@include make-list-unstyled;
|
|
15
|
-
|
|
16
|
-
& ul {
|
|
17
|
-
@include make-list-unstyled;
|
|
18
|
-
|
|
19
|
-
margin: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
& li {
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
|
|
26
|
-
& ul {
|
|
27
|
-
border-left: var(--nav-item-border-width) var(--nav-item-border-style) var(--nav-item-border-color);
|
|
28
|
-
margin: calc(var(--spacer) * 0.75);
|
|
29
|
-
padding-left: calc(var(--spacer) * 0.75);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
& .nav__label,
|
|
34
|
-
& .nav__title,
|
|
35
|
-
& .nav__item {
|
|
36
|
-
--nav-item-border-width: 1px;
|
|
37
|
-
--nav-item-border-style: solid;
|
|
38
|
-
--nav-item-border-color: transparent;
|
|
39
|
-
--nav-item-active-border-color: transparent;
|
|
40
|
-
--nav-item-border-radius: 0;
|
|
41
|
-
--nav-item-line-height: #{$nav-item-line-height};
|
|
42
|
-
--nav-item-padding-x: #{$nav-item-padding-x};
|
|
43
|
-
--nav-item-padding-y: #{$nav-item-padding-y};
|
|
44
|
-
--nav-item-color: var(--body-color);
|
|
45
|
-
--nav-item-hover-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
46
|
-
--nav-item-focus-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
47
|
-
--nav-item-active-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
48
|
-
--nav-item-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
|
|
49
|
-
--nav-label-hover-color: var(--medium);
|
|
50
|
-
--nav-item-background: hsl(from var(--white) h s l / 0%);
|
|
51
|
-
--nav-item-hover-background: hsl(from var(--white) h s l / 30%);
|
|
52
|
-
--nav-item-focus-background: hsl(from var(--white) h s l / 30%);
|
|
53
|
-
--nav-item-active-background: hsl(from var(--white) h s l / 20%);
|
|
54
|
-
--nav-item-disabled-background: hsl(from var(--white) h s l / 0%);
|
|
55
|
-
|
|
56
|
-
border-width: var(--nav-item-border-width);
|
|
57
|
-
border-style: var(--nav-item-border-style);
|
|
58
|
-
border-color: var(--nav-item-border-color);
|
|
59
|
-
border-radius: var(--nav-item-border-radius);
|
|
60
|
-
padding: var(--nav-item-padding-y) var(--nav-item-padding-x);
|
|
61
|
-
color: var(--nav-item-color);
|
|
62
|
-
background-color: var(--nav-item-background);
|
|
63
|
-
line-height: var(--nav-item-line-height);
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
display: inline-flex;
|
|
66
|
-
text-align: center;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
vertical-align: middle;
|
|
70
|
-
flex-shrink: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
& .nav__label {
|
|
74
|
-
font-size: var(--font-size-small);
|
|
75
|
-
font-weight: bolder;
|
|
76
|
-
color: var(--nav-label-hover-color);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
& .nav__title {
|
|
80
|
-
font-
|
|
81
|
-
font-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
&[
|
|
104
|
-
&:active,
|
|
105
|
-
&.active {
|
|
106
|
-
color: var(--nav-item-active-color);
|
|
107
|
-
background: var(--nav-item-active-background);
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
background: var(--nav-item-hover-background);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
&:disabled,
|
|
115
|
-
&.disabled,
|
|
116
|
-
fieldset:disabled & {
|
|
117
|
-
color: var(--nav-item-disabled-color);
|
|
118
|
-
background: var(--nav-item-disabled-background);
|
|
119
|
-
pointer-events: none;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&.nav--column,
|
|
124
|
-
&.nav--column > ul {
|
|
125
|
-
flex-flow: column nowrap;
|
|
126
|
-
align-items: stretch;
|
|
127
|
-
|
|
128
|
-
& .nav__label,
|
|
129
|
-
& .nav__title,
|
|
130
|
-
& .nav__item {
|
|
131
|
-
text-align: left;
|
|
132
|
-
justify-content: flex-start;
|
|
133
|
-
display: flex;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../variables" as *;
|
|
3
|
+
@use "./../mixins/list" as *;
|
|
4
|
+
@use "./../mixins/colors" as *;
|
|
5
|
+
|
|
6
|
+
.nav,
|
|
7
|
+
.nav > ul {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
list-style: none;
|
|
11
|
+
align-items: center;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
@include make-list-unstyled;
|
|
15
|
+
|
|
16
|
+
& ul {
|
|
17
|
+
@include make-list-unstyled;
|
|
18
|
+
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& li {
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
|
|
26
|
+
& ul {
|
|
27
|
+
border-left: var(--nav-item-border-width) var(--nav-item-border-style) var(--nav-item-border-color);
|
|
28
|
+
margin: calc(var(--spacer) * 0.75);
|
|
29
|
+
padding-left: calc(var(--spacer) * 0.75);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& .nav__label,
|
|
34
|
+
& .nav__title,
|
|
35
|
+
& .nav__item {
|
|
36
|
+
--nav-item-border-width: 1px;
|
|
37
|
+
--nav-item-border-style: solid;
|
|
38
|
+
--nav-item-border-color: transparent;
|
|
39
|
+
--nav-item-active-border-color: transparent;
|
|
40
|
+
--nav-item-border-radius: 0;
|
|
41
|
+
--nav-item-line-height: #{$nav-item-line-height};
|
|
42
|
+
--nav-item-padding-x: #{$nav-item-padding-x};
|
|
43
|
+
--nav-item-padding-y: #{$nav-item-padding-y};
|
|
44
|
+
--nav-item-color: var(--body-color);
|
|
45
|
+
--nav-item-hover-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
46
|
+
--nav-item-focus-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
47
|
+
--nav-item-active-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
|
|
48
|
+
--nav-item-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
|
|
49
|
+
--nav-label-hover-color: var(--medium);
|
|
50
|
+
--nav-item-background: hsl(from var(--white) h s l / 0%);
|
|
51
|
+
--nav-item-hover-background: hsl(from var(--white) h s l / 30%);
|
|
52
|
+
--nav-item-focus-background: hsl(from var(--white) h s l / 30%);
|
|
53
|
+
--nav-item-active-background: hsl(from var(--white) h s l / 20%);
|
|
54
|
+
--nav-item-disabled-background: hsl(from var(--white) h s l / 0%);
|
|
55
|
+
|
|
56
|
+
border-width: var(--nav-item-border-width);
|
|
57
|
+
border-style: var(--nav-item-border-style);
|
|
58
|
+
border-color: var(--nav-item-border-color);
|
|
59
|
+
border-radius: var(--nav-item-border-radius);
|
|
60
|
+
padding: var(--nav-item-padding-y) var(--nav-item-padding-x);
|
|
61
|
+
color: var(--nav-item-color);
|
|
62
|
+
background-color: var(--nav-item-background);
|
|
63
|
+
line-height: var(--nav-item-line-height);
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
text-align: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
vertical-align: middle;
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
& .nav__label {
|
|
74
|
+
font-size: var(--font-size-small);
|
|
75
|
+
font-weight: bolder;
|
|
76
|
+
color: var(--nav-label-hover-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
& .nav__title {
|
|
80
|
+
font-style: $headings-font-style;
|
|
81
|
+
font-weight: $headings-font-weight;
|
|
82
|
+
color: $headings-color;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
& .nav__item {
|
|
86
|
+
text-decoration: none;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
user-select: none;
|
|
89
|
+
outline: 0;
|
|
90
|
+
transition: $form-transition;
|
|
91
|
+
|
|
92
|
+
&:hover {
|
|
93
|
+
color: var(--nav-item-hover-color);
|
|
94
|
+
background: var(--nav-item-hover-background);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:focus-visible {
|
|
98
|
+
color: var(--nav-item-focus-color);
|
|
99
|
+
background: var(--nav-item-focus-background);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-active="true"],
|
|
103
|
+
&[aria-selected="true"],
|
|
104
|
+
&:active,
|
|
105
|
+
&.active {
|
|
106
|
+
color: var(--nav-item-active-color);
|
|
107
|
+
background: var(--nav-item-active-background);
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background: var(--nav-item-hover-background);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:disabled,
|
|
115
|
+
&.disabled,
|
|
116
|
+
fieldset:disabled & {
|
|
117
|
+
color: var(--nav-item-disabled-color);
|
|
118
|
+
background: var(--nav-item-disabled-background);
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.nav--column,
|
|
124
|
+
&.nav--column > ul {
|
|
125
|
+
flex-flow: column nowrap;
|
|
126
|
+
align-items: stretch;
|
|
127
|
+
|
|
128
|
+
& .nav__label,
|
|
129
|
+
& .nav__title,
|
|
130
|
+
& .nav__item {
|
|
131
|
+
text-align: left;
|
|
132
|
+
justify-content: flex-start;
|
|
133
|
+
display: flex;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
package/sass/modules/_pill.scss
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "./../helpers" as *;
|
|
3
|
-
@use "./../variables" as *;
|
|
4
|
-
@use "./../functions" as *;
|
|
5
|
-
@use "./../mixins/group" as *;
|
|
6
|
-
|
|
7
|
-
.pill {
|
|
8
|
-
--pill-color: var(--body-color);
|
|
9
|
-
--pill-border-color: var(--border-color-main);
|
|
10
|
-
--pill-background: var(--white);
|
|
11
|
-
|
|
12
|
-
// Static
|
|
13
|
-
--pill-padding-x: #{$pill-padding-x};
|
|
14
|
-
--pill-padding-y: #{$pill-padding-y};
|
|
15
|
-
--pill-border-width: 1px;
|
|
16
|
-
--pill-border-style: solid;
|
|
17
|
-
--pill-font-weight: #{$pill-font-weight};
|
|
18
|
-
|
|
19
|
-
@include rfs($pill-font-size, --pill-font-size);
|
|
20
|
-
|
|
21
|
-
@include font-size(var(--pill-font-size));
|
|
22
|
-
|
|
23
|
-
color: var(--pill-color);
|
|
24
|
-
padding: var(--pill-padding-y) var(--pill-padding-x);
|
|
25
|
-
border: var(--pill-border-width) var(--pill-border-style) var(--pill-border-color);
|
|
26
|
-
background: var(--pill-background);
|
|
27
|
-
font-weight: var(--pill-font-weight);
|
|
28
|
-
border-radius: var(--border-radius-round);
|
|
29
|
-
min-width: var(--spacer);
|
|
30
|
-
line-height: 1;
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
vertical-align: top;
|
|
36
|
-
justify-content: center;
|
|
37
|
-
height: auto;
|
|
38
|
-
outline: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@each $key, $value in $all-colors {
|
|
42
|
-
.pill--#{$key} {
|
|
43
|
-
--pill-color: #{color-flip($key, $value, $pill-color-flip-threshold, $pill-color-flip-l)};
|
|
44
|
-
--pill-background: var(--#{$key});
|
|
45
|
-
--pill-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.pills {
|
|
50
|
-
@include make-group-row;
|
|
51
|
-
|
|
52
|
-
& .pill {
|
|
53
|
-
&:empty {
|
|
54
|
-
align-self: stretch;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.pills--grouped {
|
|
59
|
-
@include make-grouped-row(".pill");
|
|
60
|
-
}
|
|
61
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../helpers" as *;
|
|
3
|
+
@use "./../variables" as *;
|
|
4
|
+
@use "./../functions" as *;
|
|
5
|
+
@use "./../mixins/group" as *;
|
|
6
|
+
|
|
7
|
+
.pill {
|
|
8
|
+
--pill-color: var(--body-color);
|
|
9
|
+
--pill-border-color: var(--border-color-main);
|
|
10
|
+
--pill-background: var(--white);
|
|
11
|
+
|
|
12
|
+
// Static
|
|
13
|
+
--pill-padding-x: #{$pill-padding-x};
|
|
14
|
+
--pill-padding-y: #{$pill-padding-y};
|
|
15
|
+
--pill-border-width: 1px;
|
|
16
|
+
--pill-border-style: solid;
|
|
17
|
+
--pill-font-weight: #{$pill-font-weight};
|
|
18
|
+
|
|
19
|
+
@include rfs($pill-font-size, --pill-font-size);
|
|
20
|
+
|
|
21
|
+
@include font-size(var(--pill-font-size));
|
|
22
|
+
|
|
23
|
+
color: var(--pill-color);
|
|
24
|
+
padding: var(--pill-padding-y) var(--pill-padding-x);
|
|
25
|
+
border: var(--pill-border-width) var(--pill-border-style) var(--pill-border-color);
|
|
26
|
+
background: var(--pill-background);
|
|
27
|
+
font-weight: var(--pill-font-weight);
|
|
28
|
+
border-radius: var(--border-radius-round);
|
|
29
|
+
min-width: var(--spacer);
|
|
30
|
+
line-height: 1;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
vertical-align: top;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
height: auto;
|
|
38
|
+
outline: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@each $key, $value in $all-colors {
|
|
42
|
+
.pill--#{$key} {
|
|
43
|
+
--pill-color: #{color-flip($key, $value, $pill-color-flip-threshold, $pill-color-flip-l)};
|
|
44
|
+
--pill-background: var(--#{$key});
|
|
45
|
+
--pill-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pills {
|
|
50
|
+
@include make-group-row;
|
|
51
|
+
|
|
52
|
+
& .pill {
|
|
53
|
+
&:empty {
|
|
54
|
+
align-self: stretch;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.pills--grouped {
|
|
59
|
+
@include make-grouped-row(".pill");
|
|
60
|
+
}
|
|
61
|
+
}
|
package/sass/modules/_table.scss
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
@use "./../variables" as *;
|
|
2
|
-
|
|
3
|
-
.table {
|
|
4
|
-
width: 100%;
|
|
5
|
-
|
|
6
|
-
& td,
|
|
7
|
-
& th {
|
|
8
|
-
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
9
|
-
vertical-align: $table-cell-valign;
|
|
10
|
-
border-style: $table-cell-border-style;
|
|
11
|
-
border-color: var(--border-color-main);
|
|
12
|
-
border-width: 0 0 $table-cell-border-width 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
& thead {
|
|
16
|
-
& tr {
|
|
17
|
-
background-color: $table-head-background-color;
|
|
18
|
-
|
|
19
|
-
& > * {
|
|
20
|
-
border-width: 0 0 $table-th-border-width 0;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& tbody {
|
|
26
|
-
& tr {
|
|
27
|
-
background-color: $table-background-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
& tfoot {
|
|
32
|
-
& tr {
|
|
33
|
-
& > * {
|
|
34
|
-
border-width: $table-th-border-width 0 $table-cell-border-width 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.table--small {
|
|
40
|
-
& td,
|
|
41
|
-
& th {
|
|
42
|
-
padding: $table-small-cell-padding-y $table-small-cell-padding-x;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.table--bordered {
|
|
47
|
-
& td,
|
|
48
|
-
& th {
|
|
49
|
-
border-width: $table-cell-border-width;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
& thead {
|
|
53
|
-
& tr {
|
|
54
|
-
& > * {
|
|
55
|
-
border-width: $table-cell-border-width $table-cell-border-width $table-th-border-width
|
|
56
|
-
$table-cell-border-width;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
& tfoot {
|
|
62
|
-
& tr {
|
|
63
|
-
& > * {
|
|
64
|
-
border-width: $table-th-border-width $table-cell-border-width $table-cell-border-width
|
|
65
|
-
$table-cell-border-width;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.table--striped {
|
|
72
|
-
& tbody {
|
|
73
|
-
& tr {
|
|
74
|
-
&:nth-of-type(even) {
|
|
75
|
-
background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:nth-of-type(odd) {
|
|
79
|
-
background-color: hsl(from var(--light) h s l / #{$table-striped-background-opacity});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.table--hover {
|
|
86
|
-
& tbody {
|
|
87
|
-
& tr {
|
|
88
|
-
&:hover {
|
|
89
|
-
& > * {
|
|
90
|
-
background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
@use "./../variables" as *;
|
|
2
|
+
|
|
3
|
+
.table {
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
& td,
|
|
7
|
+
& th {
|
|
8
|
+
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
9
|
+
vertical-align: $table-cell-valign;
|
|
10
|
+
border-style: $table-cell-border-style;
|
|
11
|
+
border-color: var(--border-color-main);
|
|
12
|
+
border-width: 0 0 $table-cell-border-width 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& thead {
|
|
16
|
+
& tr {
|
|
17
|
+
background-color: $table-head-background-color;
|
|
18
|
+
|
|
19
|
+
& > * {
|
|
20
|
+
border-width: 0 0 $table-th-border-width 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& tbody {
|
|
26
|
+
& tr {
|
|
27
|
+
background-color: $table-background-color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
& tfoot {
|
|
32
|
+
& tr {
|
|
33
|
+
& > * {
|
|
34
|
+
border-width: $table-th-border-width 0 $table-cell-border-width 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.table--small {
|
|
40
|
+
& td,
|
|
41
|
+
& th {
|
|
42
|
+
padding: $table-small-cell-padding-y $table-small-cell-padding-x;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.table--bordered {
|
|
47
|
+
& td,
|
|
48
|
+
& th {
|
|
49
|
+
border-width: $table-cell-border-width;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& thead {
|
|
53
|
+
& tr {
|
|
54
|
+
& > * {
|
|
55
|
+
border-width: $table-cell-border-width $table-cell-border-width $table-th-border-width
|
|
56
|
+
$table-cell-border-width;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& tfoot {
|
|
62
|
+
& tr {
|
|
63
|
+
& > * {
|
|
64
|
+
border-width: $table-th-border-width $table-cell-border-width $table-cell-border-width
|
|
65
|
+
$table-cell-border-width;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.table--striped {
|
|
72
|
+
& tbody {
|
|
73
|
+
& tr {
|
|
74
|
+
&:nth-of-type(even) {
|
|
75
|
+
background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:nth-of-type(odd) {
|
|
79
|
+
background-color: hsl(from var(--light) h s l / #{$table-striped-background-opacity});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.table--hover {
|
|
86
|
+
& tbody {
|
|
87
|
+
& tr {
|
|
88
|
+
&:hover {
|
|
89
|
+
& > * {
|
|
90
|
+
background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|