@oruga-ui/theme-oruga 0.2.2 → 0.3.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.
Files changed (79) hide show
  1. package/README.md +6 -14
  2. package/dist/oruga.css +1722 -203
  3. package/dist/oruga.min.css +1 -1
  4. package/dist/scss/components/_autocomplete.scss +1 -54
  5. package/dist/scss/components/_button.scss +56 -88
  6. package/dist/scss/components/_carousel.scss +70 -97
  7. package/dist/scss/components/_checkbox.scss +57 -83
  8. package/dist/scss/components/_datepicker.scss +141 -242
  9. package/dist/scss/components/_dropdown.scss +71 -157
  10. package/dist/scss/components/_field.scss +16 -38
  11. package/dist/scss/components/_icon.scss +6 -8
  12. package/dist/scss/components/_input.scss +41 -52
  13. package/dist/scss/components/_loading.scss +5 -13
  14. package/dist/scss/components/_menu.scss +28 -64
  15. package/dist/scss/components/_modal.scss +25 -34
  16. package/dist/scss/components/_notification.scss +35 -72
  17. package/dist/scss/components/_pagination.scss +43 -86
  18. package/dist/scss/components/_radio.scss +45 -60
  19. package/dist/scss/components/_select.scss +45 -73
  20. package/dist/scss/components/_sidebar.scss +31 -107
  21. package/dist/scss/components/_skeleton.scss +10 -23
  22. package/dist/scss/components/_slider.scss +56 -110
  23. package/dist/scss/components/_steps.scss +133 -310
  24. package/dist/scss/components/_switch.scss +52 -87
  25. package/dist/scss/components/_table.scss +77 -139
  26. package/dist/scss/components/_tabs.scss +93 -151
  27. package/dist/scss/components/_taginput.scss +37 -101
  28. package/dist/scss/components/_timepicker.scss +26 -50
  29. package/dist/scss/components/_tooltip.scss +120 -216
  30. package/dist/scss/components/_upload.scss +17 -22
  31. package/dist/scss/oruga-build.scss +9 -0
  32. package/dist/scss/oruga.scss +39 -190
  33. package/dist/scss/utils/_animations.scss +11 -9
  34. package/dist/scss/utils/_base.scss +4 -4
  35. package/dist/scss/utils/_helpers.scss +4 -104
  36. package/dist/scss/utils/_root.scss +36 -24
  37. package/dist/scss/utils/_variables.scss +5 -7
  38. package/dist/theme.js +1 -2
  39. package/package.json +25 -25
  40. package/src/assets/scss/components/_autocomplete.scss +1 -54
  41. package/src/assets/scss/components/_button.scss +56 -88
  42. package/src/assets/scss/components/_carousel.scss +70 -97
  43. package/src/assets/scss/components/_checkbox.scss +57 -83
  44. package/src/assets/scss/components/_datepicker.scss +141 -242
  45. package/src/assets/scss/components/_dropdown.scss +71 -157
  46. package/src/assets/scss/components/_field.scss +16 -38
  47. package/src/assets/scss/components/_icon.scss +6 -8
  48. package/src/assets/scss/components/_input.scss +41 -52
  49. package/src/assets/scss/components/_loading.scss +5 -13
  50. package/src/assets/scss/components/_menu.scss +28 -64
  51. package/src/assets/scss/components/_modal.scss +25 -34
  52. package/src/assets/scss/components/_notification.scss +35 -72
  53. package/src/assets/scss/components/_pagination.scss +43 -86
  54. package/src/assets/scss/components/_radio.scss +45 -60
  55. package/src/assets/scss/components/_select.scss +45 -73
  56. package/src/assets/scss/components/_sidebar.scss +31 -107
  57. package/src/assets/scss/components/_skeleton.scss +10 -23
  58. package/src/assets/scss/components/_slider.scss +56 -110
  59. package/src/assets/scss/components/_steps.scss +133 -310
  60. package/src/assets/scss/components/_switch.scss +52 -87
  61. package/src/assets/scss/components/_table.scss +77 -139
  62. package/src/assets/scss/components/_tabs.scss +93 -151
  63. package/src/assets/scss/components/_taginput.scss +37 -101
  64. package/src/assets/scss/components/_timepicker.scss +26 -50
  65. package/src/assets/scss/components/_tooltip.scss +120 -216
  66. package/src/assets/scss/components/_upload.scss +17 -22
  67. package/src/assets/scss/oruga-build.scss +9 -0
  68. package/src/assets/scss/oruga.scss +39 -190
  69. package/src/assets/scss/utils/_animations.scss +11 -9
  70. package/src/assets/scss/utils/_base.scss +4 -4
  71. package/src/assets/scss/utils/_helpers.scss +4 -104
  72. package/src/assets/scss/utils/_root.scss +36 -24
  73. package/src/assets/scss/utils/_variables.scss +5 -7
  74. package/dist/oruga-full.css +0 -3922
  75. package/dist/oruga-full.min.css +0 -1
  76. package/dist/scss/oruga-common.scss +0 -37
  77. package/dist/scss/oruga-full.scss +0 -9
  78. package/src/assets/scss/oruga-common.scss +0 -37
  79. package/src/assets/scss/oruga-full.scss +0 -9
@@ -1,54 +1,54 @@
1
1
  @use "sass:list";
2
2
 
3
3
  /* @docs */
4
- $switch-active-background-color: $primary !default;
4
+ $switch-active-background-color: var(--#{$prefix}primary) !default;
5
5
  $switch-action-background: #f5f5f5 !default;
6
- $switch-background: $grey-light !default;
7
- $switch-border-radius: $base-border-radius !default;
6
+ $switch-background: var(--#{$prefix}grey-light) !default;
7
+ $switch-border-radius: var(--#{$prefix}base-border-radius) !default;
8
8
  $switch-box-shadow:
9
9
  0 3px 1px 0 rgba(0, 0, 0, 0.05),
10
10
  0 2px 2px 0 rgba(0, 0, 0, 0.1),
11
11
  0 3px 3px 0 rgba(0, 0, 0, 0.05) !default;
12
- $switch-disabled-opacity: $base-disabled-opacity !default;
12
+ $switch-disabled-opacity: var(--#{$prefix}base-disabled-opacity) !default;
13
13
  $switch-margin-label: 0.5em !default;
14
14
  $switch-padding: 0.2em !default;
15
- $switch-rounded-border-radius: $base-rounded-border-radius !default;
15
+ $switch-rounded-border-radius: var(
16
+ --#{$prefix}base-border-radius-rounded
17
+ ) !default;
16
18
  $switch-width: 2.75 * 1em !default;
17
19
  /* @docs */
18
20
 
19
21
  .o-switch {
22
+ @include unselectable;
20
23
  cursor: pointer;
21
24
  display: inline-flex;
22
25
  align-items: center;
23
26
  position: relative;
24
27
 
25
- @include unselectable;
28
+ // size variants
29
+ @each $name, $value in $sizes {
30
+ &--#{$name} {
31
+ font-size: var(--#{$prefix}font-size-#{name}, $value);
32
+ }
33
+ }
26
34
 
35
+ // color variants
27
36
  @each $name, $pair in $colors {
28
37
  $color: list.nth($pair, 1);
29
38
  &--#{$name} {
30
39
  .o-switch__check--checked {
31
- @include avariable("background", ("variant-" + #{$name}), $color);
40
+ background: var(--#{$prefix}variant-#{$name}, $color);
32
41
  }
33
42
  }
34
43
  &--#{$name}-passive {
35
44
  .o-switch__check:not(.o-switch__check--checked) {
36
- @include avariable("background", ("variant-" + #{$name}), $color);
45
+ background: var(--#{$prefix}variant-#{$name}, $color);
37
46
  }
38
47
  }
39
48
  }
40
- @each $name, $value in $sizes {
41
- &--#{$name} {
42
- @include avariable("font-size", ("font-size-" + #{name}), $value);
43
- }
44
- }
45
49
 
46
50
  &__label {
47
- @include avariable(
48
- "margin-left",
49
- "switch-margin-label",
50
- $switch-margin-label
51
- );
51
+ margin-left: var(--#{$prefix}switch-margin-label, $switch-margin-label);
52
52
  }
53
53
 
54
54
  &--left {
@@ -56,49 +56,36 @@ $switch-width: 2.75 * 1em !default;
56
56
 
57
57
  .o-switch__label {
58
58
  margin-left: 0;
59
-
60
- @include avariable(
61
- "margin-right",
62
- "switch-margin-label",
63
- $switch-margin-label
64
- );
59
+ margin-right: var(--#{$prefix}switch-margin-label, $switch-margin-label);
65
60
  }
66
61
  }
67
62
 
68
63
  &__check-switch {
69
64
  content: "";
70
65
  display: block;
71
-
72
- @include evariable(
73
- "height",
74
- "calc(($width - $padding * 2) * 0.5)",
75
- eparam("$width", variable("switch-width", $switch-width)),
76
- eparam("$padding", variable("switch-padding", $switch-padding))
66
+ height: calc(
67
+ (
68
+ var(--#{$prefix}switch-width, $switch-width) - var(
69
+ --#{$prefix}switch-padding,
70
+ $switch-padding
71
+ ) * 2
72
+ ) * 0.5
77
73
  );
78
- @include evariable(
79
- "width",
80
- "calc(($width - $padding * 2) * 0.5)",
81
- eparam("$width", variable("switch-width", $switch-width)),
82
- eparam("$padding", variable("switch-padding", $switch-padding))
74
+ width: calc(
75
+ (
76
+ var(--#{$prefix}switch-width, $switch-width) - var(
77
+ --#{$prefix}switch-padding,
78
+ $switch-padding
79
+ ) * 2
80
+ ) * 0.5
83
81
  );
84
- @include avariable(
85
- "background",
86
- "switch-action-background",
82
+ background: var(
83
+ --#{$prefix}switch-action-background,
87
84
  $switch-action-background
88
85
  );
89
- @include avariable("box-shadow", "switch-box-shadow", $switch-box-shadow);
90
- transition-property: transform;
91
-
92
- @include avariable(
93
- "transition-duration",
94
- "transition-duration",
95
- $speed-slow
96
- );
97
- @include avariable(
98
- "transition-timing-function",
99
- "transition-timing",
100
- $easing
101
- );
86
+ box-shadow: var(--#{$prefix}switch-box-shadow, $switch-box-shadow);
87
+ transition: transform var(--#{$prefix}transition-duration)
88
+ var(--#{$prefix}transition-timing);
102
89
  will-change: transform;
103
90
  transform-origin: left;
104
91
  }
@@ -107,38 +94,21 @@ $switch-width: 2.75 * 1em !default;
107
94
  display: flex;
108
95
  align-items: center;
109
96
  flex-shrink: 0;
110
-
111
- @include avariable("width", "switch-width", $switch-width);
112
- @include evariable(
113
- "height",
114
- "calc($width * 0.5 + $padding)",
115
- eparam("$width", variable("switch-width", $switch-width)),
116
- eparam("$padding", variable("switch-padding", $switch-padding))
117
- );
118
- @include avariable("padding", "switch-padding", $switch-padding);
119
- @include avariable("background", "switch-background", $switch-background);
120
- @include avariable(
121
- "border-radius",
122
- "switch-border-radius",
123
- $switch-border-radius
97
+ width: var(--#{$prefix}switch-width, $switch-width);
98
+ height: calc(
99
+ var(--#{$prefix}switch-width, $switch-width) * 0.5 +
100
+ var(--#{$prefix}switch-padding, $switch-padding)
124
101
  );
125
- transition-property: background;
126
102
 
127
- @include avariable(
128
- "transition-duration",
129
- "transition-duration",
130
- $speed-slow
131
- );
132
- @include avariable(
133
- "transition-timing-function",
134
- "transition-timing",
135
- $easing
136
- );
103
+ padding: var(--#{$prefix}switch-padding, $switch-padding);
104
+ background: var(--#{$prefix}switch-background, $switch-background);
105
+ border-radius: var(--#{$prefix}switch-border-radius, $switch-border-radius);
106
+ transition: background var(--#{$prefix}transition-duration)
107
+ var(--#{$prefix}transition-timing);
137
108
 
138
109
  &--checked {
139
- @include avariable(
140
- "background",
141
- "switch-active-background-color",
110
+ background: var(
111
+ --#{$prefix}switch-active-background-color,
142
112
  $switch-active-background-color
143
113
  );
144
114
 
@@ -156,18 +126,13 @@ $switch-width: 2.75 * 1em !default;
156
126
  }
157
127
 
158
128
  &--rounded {
159
- @include avariable(
160
- "border-radius",
161
- "switch-rounded-border-radius",
129
+ border-radius: var(
130
+ --#{$prefix}switch-rounded-border-radius,
162
131
  $switch-rounded-border-radius
163
132
  );
164
133
  }
165
134
 
166
135
  &--disabled {
167
- @include avariable(
168
- "opacity",
169
- "switch-disabled-opacity",
170
- $switch-disabled-opacity
171
- );
136
+ opacity: var(--#{$prefix}switch-disabled-opacity, $switch-disabled-opacity);
172
137
  }
173
138
  }
@@ -4,36 +4,36 @@
4
4
  $table-background-color: #fff !default;
5
5
  $table-background: #f5f5f5 !default;
6
6
  $table-boder: 1px solid transparent !default;
7
- $table-border-radius: $base-border-radius !default;
7
+ $table-border-radius: var(--#{$prefix}base-border-radius) !default;
8
8
  $table-card-box-shadow:
9
- 0 2px 3px rgba($black, 0.1),
10
- 0 0 0 1px rgba($black, 0.1) !default;
9
+ 0 2px 3px rgba(var(--#{$prefix}black), 0.1),
10
+ 0 0 0 1px rgba(var(--#{$prefix}black), 0.1) !default;
11
11
  $table-card-cell-font-weight: 600 !default;
12
12
  $table-card-cell-padding: 0 0.5em 0 0 !default;
13
13
  $table-card-cell-text-align: left !default;
14
14
  $table-card-detail-margin: -1rem 0 0 0;
15
15
  $table-card-margin: 0 0 1rem 0;
16
16
  $table-color: black !default;
17
- $table-current-sort-border-color: $grey !default;
17
+ $table-current-sort-border-color: var(--#{$prefix}grey) !default;
18
18
  $table-current-sort-font-weight: 700 !default;
19
- $table-current-sort-hover-border-color: $grey !default;
19
+ $table-current-sort-hover-border-color: var(--#{$prefix}grey) !default;
20
20
  $table-detail-background: #fafafa !default;
21
- $table-detail-box-shadow: inset 0 1px 3px $grey !default;
22
- $table-detail-chevron-color: $primary !default;
21
+ $table-detail-box-shadow: inset 0 1px 3px var(--#{$prefix}grey) !default;
22
+ $table-detail-chevron-color: var(--#{$prefix}primary) !default;
23
23
  $table-detail-chevron-width: 40px !default;
24
24
  $table-detail-padding: 1rem !default;
25
- $table-focus-border-color: $primary !default;
26
- $table-focus-box-shadow: 0 0 0 0.125em rgba($primary, 0.25) !default;
25
+ $table-focus-border-color: var(--#{$prefix}primary) !default;
26
+ $table-focus-box-shadow: 0 0 0 0.125em rgba(var(--#{$prefix}primary), 0.25) !default;
27
27
  $table-hoverable-background-color: #fafafa !default;
28
28
  $table-narrow-padding: 0.25em 0.5em !default;
29
- $table-row-active-background-color: $primary !default;
30
- $table-row-active-color: $primary-invert !default;
29
+ $table-row-active-background-color: var(--#{$prefix}primary) !default;
30
+ $table-row-active-color: var(--#{$prefix}primary-invert) !default;
31
31
  $table-sticky-header-height: 300px !default;
32
32
  $table-sticky-zindex: 1 !default;
33
33
  $table-striped-background-color: #fafafa !default;
34
- $table-td-border: 1px solid $grey-lighter !default;
34
+ $table-td-border: 1px solid var(--#{$prefix}grey-lighter) !default;
35
35
  $table-td-padding: 0.5em 0.75em !default;
36
- $table-th-border: 2px solid $grey-lighter !default;
36
+ $table-th-border: 2px solid var(--#{$prefix}grey-lighter) !default;
37
37
  $table-th-checkbox-width: 40px !default;
38
38
  $table-th-color: #363636 !default;
39
39
  $table-th-detail-width: 14px !default;
@@ -46,32 +46,25 @@ $table-th-padding: 0.5em 0.75em !default;
46
46
  width: 100%;
47
47
  border-collapse: separate;
48
48
  border-spacing: 0;
49
-
50
- @include avariable("border", "table-boder", $table-boder);
51
- @include avariable(
52
- "border-radius",
53
- "table-border-radius",
54
- $table-border-radius
55
- );
56
- @include avariable(
57
- "background-color",
58
- "table-background-color",
49
+ border: var(--#{$prefix}table-boder, $table-boder);
50
+ border-radius: var(--#{$prefix}table-border-radius, $table-border-radius);
51
+ background-color: var(
52
+ --#{$prefix}table-background-color,
59
53
  $table-background-color
60
54
  );
61
- @include avariable("color", "table-color", $table-color);
55
+ color: var(--#{$prefix}table-color, $table-color);
62
56
 
63
57
  &__root {
64
58
  position: relative;
65
59
  }
66
60
 
67
61
  &__wrapper {
68
- transition: opacity $speed $easing;
62
+ transition: opacity $animation-speed-fast $animation-timing;
69
63
  position: relative;
70
64
 
71
65
  &--sticky-header {
72
- @include avariable(
73
- "height",
74
- "table-sticky-header-height",
66
+ height: var(
67
+ --#{$prefix}table-sticky-header-height,
75
68
  $table-sticky-header-height
76
69
  );
77
70
  overflow-y: auto;
@@ -81,10 +74,8 @@ $table-th-padding: 0.5em 0.75em !default;
81
74
  position: sticky;
82
75
  left: 0;
83
76
  top: 0;
84
-
85
- @include avariable(
86
- "background",
87
- "table-background-color",
77
+ background: var(
78
+ --#{$prefix}table-background-color,
88
79
  $table-background-color
89
80
  );
90
81
  }
@@ -134,9 +125,8 @@ $table-th-padding: 0.5em 0.75em !default;
134
125
  }
135
126
 
136
127
  tr {
137
- @include avariable(
138
- "box-shadow",
139
- "table-card-box-shadow",
128
+ box-shadow: var(
129
+ --#{$prefix}table-card-box-shadow,
140
130
  $table-card-box-shadow
141
131
  );
142
132
  max-width: 100%;
@@ -153,7 +143,7 @@ $table-th-padding: 0.5em 0.75em !default;
153
143
  }
154
144
 
155
145
  &:not(:last-child) {
156
- @include avariable("margin", "table-card-margin", $table-card-margin);
146
+ margin: var(--#{$prefix}table-card-margin, $table-card-margin);
157
147
  }
158
148
 
159
149
  &:not(.o-table__tr--selected) {
@@ -167,9 +157,8 @@ $table-th-padding: 0.5em 0.75em !default;
167
157
  }
168
158
 
169
159
  &.o-table--detailed {
170
- @include avariable(
171
- "margin",
172
- "table-card-detail-margin",
160
+ margin: var(
161
+ --#{$prefix}table-card-detail-margin,
173
162
  $table-card-detail-margin
174
163
  );
175
164
  }
@@ -181,29 +170,23 @@ $table-th-padding: 0.5em 0.75em !default;
181
170
  width: auto;
182
171
  justify-content: space-between;
183
172
  text-align: right;
184
-
185
- @include avariable(
186
- "border-bottom",
187
- "table-background",
173
+ border-bottom: var(
174
+ --#{$prefix}table-background,
188
175
  ($table-background 1px solid)
189
176
  );
190
177
 
191
178
  &:before {
192
179
  content: attr(data-label);
193
-
194
- @include avariable(
195
- "font-weight",
196
- "table-card-cell-font-weight",
180
+ font-weight: var(
181
+ --#{$prefix}table-card-cell-font-weight,
197
182
  $table-card-cell-font-weight
198
183
  );
199
- @include avariable(
200
- "padding-right",
201
- "table-card-cell-padding",
184
+ padding-right: var(
185
+ --#{$prefix}table-card-cell-padding,
202
186
  $table-card-cell-padding
203
187
  );
204
- @include avariable(
205
- "text-align",
206
- "table-card-cell-text-align",
188
+ text-align: var(
189
+ --#{$prefix}table-card-cell-text-align,
207
190
  $table-card-cell-text-align
208
191
  );
209
192
  }
@@ -220,15 +203,10 @@ $table-th-padding: 0.5em 0.75em !default;
220
203
  vertical-align: top;
221
204
  text-align: left;
222
205
  position: relative;
223
-
224
- @include avariable(
225
- "font-weight",
226
- "table-th-font-weight",
227
- $table-th-font-weight
228
- );
229
- @include avariable("color", "table-th-color", $table-th-color);
230
- @include avariable("border-bottom", "table-th-border", $table-th-border);
231
- @include avariable("padding", "table-th-padding", $table-th-padding);
206
+ font-weight: var(--#{$prefix}table-th-font-weight, $table-th-font-weight);
207
+ color: var(--#{$prefix}table-th-color, $table-th-color);
208
+ border-bottom: var(--#{$prefix}table-th-border, $table-th-border);
209
+ padding: var(--#{$prefix}table-th-padding, $table-th-padding);
232
210
 
233
211
  &--centered {
234
212
  text-align: center;
@@ -244,22 +222,16 @@ $table-th-padding: 0.5em 0.75em !default;
244
222
  }
245
223
 
246
224
  &-checkbox {
247
- @include avariable(
248
- "width",
249
- "table-th-checkbox-width",
250
- $table-th-checkbox-width
251
- );
225
+ width: var(--#{$prefix}table-th-checkbox-width, $table-th-checkbox-width);
252
226
  }
253
227
 
254
228
  &-current-sort {
255
- @include avariable(
256
- "border-color",
257
- "table-current-sort-border-color",
229
+ border-color: var(
230
+ --#{$prefix}table-current-sort-border-color,
258
231
  $table-current-sort-border-color
259
232
  );
260
- @include avariable(
261
- "font-weight",
262
- "table-current-sort-font-weight",
233
+ font-weight: var(
234
+ --#{$prefix}table-current-sort-font-weight,
263
235
  $table-current-sort-font-weight
264
236
  );
265
237
  }
@@ -268,9 +240,8 @@ $table-th-padding: 0.5em 0.75em !default;
268
240
  cursor: pointer;
269
241
 
270
242
  &:hover {
271
- @include avariable(
272
- "border-color",
273
- "table-current-sort-hover-border-color",
243
+ border-color: var(
244
+ --#{$prefix}table-current-sort-hover-border-color,
274
245
  $table-current-sort-hover-border-color
275
246
  );
276
247
  }
@@ -281,16 +252,11 @@ $table-th-padding: 0.5em 0.75em !default;
281
252
  position: sticky;
282
253
  left: 0;
283
254
  top: 0;
284
-
285
- @include evariable(
286
- "z-index",
287
- "calc($param + $factor)",
288
- eparam("$param", variable("table-sticky-zindex", $table-sticky-zindex)),
289
- eparam("$factor", 2)
255
+ z-index: calc(
256
+ var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex) + 0
290
257
  );
291
- @include avariable(
292
- "background",
293
- "table-background-color",
258
+ background: var(
259
+ --#{$prefix}table-background-color,
294
260
  $table-background-color
295
261
  );
296
262
  }
@@ -300,34 +266,23 @@ $table-th-padding: 0.5em 0.75em !default;
300
266
  }
301
267
 
302
268
  &--detailed {
303
- @include avariable(
304
- "width",
305
- "table-th-detail-width",
306
- $table-th-detail-width
307
- );
269
+ width: var(--#{$prefix}table-th-detail-width, $table-th-detail-width);
308
270
  }
309
271
  }
310
272
 
311
273
  &__td {
312
274
  vertical-align: top;
313
275
  text-align: left;
314
-
315
- @include avariable("border-bottom", "table-td-border", $table-td-border);
316
- @include avariable("padding", "table-td-padding", $table-td-padding);
276
+ border-bottom: var(--#{$prefix}table-td-border, $table-td-border);
277
+ padding: var(--#{$prefix}table-td-padding, $table-td-padding);
317
278
 
318
279
  &--sticky {
319
280
  position: -webkit-sticky;
320
281
  position: sticky;
321
282
  left: 0;
322
-
323
- @include avariable(
324
- "z-index",
325
- "table-sticky-zindex",
326
- $table-sticky-zindex
327
- );
328
- @include avariable(
329
- "background",
330
- "table-background-color",
283
+ z-index: var(--#{$prefix}table-sticky-zindex, $table-sticky-zindex);
284
+ background: var(
285
+ --#{$prefix}table-background-color,
331
286
  $table-background-color
332
287
  );
333
288
  }
@@ -342,29 +297,24 @@ $table-th-padding: 0.5em 0.75em !default;
342
297
 
343
298
  &-chevron {
344
299
  vertical-align: middle;
345
-
346
- @include avariable(
347
- "width",
348
- "table-detail-chevron-width",
300
+ width: var(
301
+ --#{$prefix}table-detail-chevron-width,
349
302
  $table-detail-chevron-width
350
303
  );
351
- @include avariable(
352
- "color",
353
- "table-detail-chevron-color",
304
+ color: var(
305
+ --#{$prefix}table-detail-chevron-color,
354
306
  $table-detail-chevron-color
355
307
  );
356
308
  }
357
309
  }
358
310
 
359
311
  &:focus {
360
- @include avariable(
361
- "border-color",
362
- "table-focus-border-color",
312
+ border-color: var(
313
+ --#{$prefix}table-focus-border-color,
363
314
  $table-focus-border-color
364
315
  );
365
- @include avariable(
366
- "box-shadow",
367
- "table-focus-box-shadow",
316
+ box-shadow: var(
317
+ --#{$prefix}table-focus-box-shadow,
368
318
  $table-focus-box-shadow
369
319
  );
370
320
  }
@@ -373,21 +323,20 @@ $table-th-padding: 0.5em 0.75em !default;
373
323
  tr:last-child {
374
324
  td,
375
325
  th {
376
- @include avariable("border", "table-td-border", $table-td-border);
326
+ border: var(--#{$prefix}table-td-border, $table-td-border);
377
327
  }
378
328
  }
379
329
 
380
330
  td,
381
331
  th {
382
- @include avariable("border", "table-td-border", $table-td-border);
332
+ border: var(--#{$prefix}table-td-border, $table-td-border);
383
333
  }
384
334
  }
385
335
 
386
336
  &--striped {
387
337
  tbody tr:not(.o-table__tr--selected):nth-child(2n) {
388
- @include avariable(
389
- "background-color",
390
- "table-striped-background-color",
338
+ background-color: var(
339
+ --#{$prefix}table-striped-background-color,
391
340
  $table-striped-background-color
392
341
  );
393
342
  }
@@ -396,42 +345,31 @@ $table-th-padding: 0.5em 0.75em !default;
396
345
  &--narrowed {
397
346
  td,
398
347
  th {
399
- @include avariable(
400
- "padding",
401
- "table-narrow-padding",
402
- $table-narrow-padding
403
- );
348
+ padding: var(--#{$prefix}table-narrow-padding, $table-narrow-padding);
404
349
  }
405
350
  }
406
351
 
407
352
  &--hoverable {
408
353
  tbody tr:not(.o-table__tr--selected):hover {
409
- @include avariable(
410
- "background-color",
411
- "table-hoverable-background-color",
354
+ background-color: var(
355
+ --#{$prefix}table-hoverable-background-color,
412
356
  $table-hoverable-background-color
413
357
  );
414
358
  }
415
359
  }
416
360
 
417
361
  &__detail {
418
- @include avariable(
419
- "box-shadow",
420
- "table-detail-box-shadow",
362
+ box-shadow: var(
363
+ --#{$prefix}table-detail-box-shadow,
421
364
  $table-detail-box-shadow
422
365
  );
423
- @include avariable(
424
- "background",
425
- "table-detail-background",
366
+ background: var(
367
+ --#{$prefix}table-detail-background,
426
368
  $table-detail-background
427
369
  );
428
370
 
429
371
  td {
430
- @include avariable(
431
- "padding",
432
- "table-detail-padding",
433
- $table-detail-padding
434
- );
372
+ padding: var(--#{$prefix}table-detail-padding, $table-detail-padding);
435
373
  }
436
374
  }
437
375