vanilla-framework 4.6.0 → 4.8.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 (37) hide show
  1. package/package.json +12 -13
  2. package/scss/_base.scss +2 -0
  3. package/scss/_base_background.scss +2 -6
  4. package/scss/_base_forms.scss +23 -104
  5. package/scss/_base_hr.scss +5 -39
  6. package/scss/_base_icon-definitions.scss +335 -46
  7. package/scss/_base_links.scss +2 -10
  8. package/scss/_base_placeholders.scss +1 -1
  9. package/scss/_base_tables.scss +2 -2
  10. package/scss/_base_themes.scss +52 -0
  11. package/scss/_base_typography-definitions.scss +1 -1
  12. package/scss/_global_functions.scss +10 -0
  13. package/scss/_layouts_application-panels.scss +1 -1
  14. package/scss/_patterns_chip.scss +156 -189
  15. package/scss/_patterns_contextual-menu.scss +16 -75
  16. package/scss/_patterns_divider.scss +5 -35
  17. package/scss/_patterns_form-help-text.scss +1 -29
  18. package/scss/_patterns_form-password-toggle.scss +1 -1
  19. package/scss/_patterns_form-tick-elements.scss +12 -129
  20. package/scss/_patterns_form-validation.scss +31 -229
  21. package/scss/_patterns_icons.scss +623 -442
  22. package/scss/_patterns_links.scss +12 -9
  23. package/scss/_patterns_lists.scss +0 -31
  24. package/scss/_patterns_navigation.scss +66 -13
  25. package/scss/_patterns_notifications.scss +21 -12
  26. package/scss/_patterns_search-box.scss +20 -99
  27. package/scss/_patterns_section.scss +12 -1
  28. package/scss/_patterns_side-navigation-expandable.scss +18 -55
  29. package/scss/_patterns_side-navigation.scss +117 -317
  30. package/scss/_patterns_strip.scss +87 -21
  31. package/scss/_patterns_suru.scss +126 -10
  32. package/scss/_patterns_table-mobile-card.scss +1 -1
  33. package/scss/_patterns_table-sortable.scss +2 -2
  34. package/scss/_patterns_tabs.scss +23 -74
  35. package/scss/_settings_colors.scss +164 -2
  36. package/scss/_settings_placeholders.scss +4 -1
  37. package/scss/_settings_themes.scss +6 -6
@@ -0,0 +1,52 @@
1
+ @import 'settings';
2
+
3
+ @mixin vf-theme-light {
4
+ --vf-theme-light: var(--vf-FLAG-ON);
5
+ --vf-theme-dark: var(--vf-FLAG-OFF);
6
+ @include vf-theme-light--colors;
7
+ }
8
+
9
+ @mixin vf-theme-dark {
10
+ --vf-theme-light: var(--vf-FLAG-OFF);
11
+ --vf-theme-dark: var(--vf-FLAG-ON);
12
+ @include vf-theme-dark--colors;
13
+ }
14
+
15
+ @mixin vf-theme-paper {
16
+ // we treat the paper theme as a light theme
17
+ --vf-theme-light: var(--vf-FLAG-ON);
18
+ --vf-theme-dark: var(--vf-FLAG-OFF);
19
+ @include vf-theme-paper--colors;
20
+ }
21
+
22
+ // Color themes
23
+ @mixin vf-b-themes {
24
+ @at-root {
25
+ :root {
26
+ // based on:
27
+ // https://lea.verou.me/blog/2020/10/the-var-space-hack-to-toggle-multiple-values-with-one-custom-property/
28
+ --vf-FLAG-ON: initial;
29
+ --vf-FLAG-OFF: ;
30
+ }
31
+
32
+ :root,
33
+ .is-light {
34
+ @include vf-theme-light;
35
+ }
36
+
37
+ .is-dark {
38
+ @include vf-theme-dark;
39
+ }
40
+
41
+ .is-paper {
42
+ @include vf-theme-paper;
43
+ }
44
+ }
45
+ }
46
+
47
+ // based on:
48
+ // https://lea.verou.me/blog/2020/10/the-var-space-hack-to-toggle-multiple-values-with-one-custom-property/
49
+ // https://lea.verou.me/blog/2021/10/custom-properties-with-defaults/
50
+ @mixin vf-themed-property($property, $light-value, $dark-value) {
51
+ #{$property}: var(--vf-theme-light, #{$light-value}) var(--vf-theme-dark, #{$dark-value});
52
+ }
@@ -200,7 +200,7 @@
200
200
  }
201
201
 
202
202
  %muted-text {
203
- color: $colors--light-theme--text-muted;
203
+ color: $colors--theme--text-muted;
204
204
  }
205
205
 
206
206
  %small-caps-text {
@@ -50,6 +50,16 @@
50
50
  }
51
51
  }
52
52
 
53
+ // Includes the theme variables based on the background color passed as an argument.
54
+ // This is currently only used in the deprecated p-strip--accent.
55
+ @mixin vf-determine-theme-from-background($background-color) {
56
+ @if (lightness($background-color) > 50) {
57
+ @include vf-theme-light;
58
+ } @else {
59
+ @include vf-theme-dark;
60
+ }
61
+ }
62
+
53
63
  // Adds visual focus to elements on :focus-visible,
54
64
  // or :focus if the browser doesn't support the former
55
65
  @mixin vf-focus($color: $color-focus, $width: $bar-thickness, $has-validation: false) {
@@ -21,7 +21,7 @@
21
21
  background: $colors--light-theme--background-default;
22
22
  position: sticky;
23
23
  top: 0;
24
- z-index: 1;
24
+ z-index: 5;
25
25
 
26
26
  .p-panel.is-dark & {
27
27
  background: $colors--dark-theme--background-default;
@@ -21,6 +21,7 @@ $chip-border-thickness: 1px;
21
21
 
22
22
  .p-chip__lead,
23
23
  .p-chip__value {
24
+ color: $colors--theme--text-default;
24
25
  display: inline;
25
26
  margin-bottom: 0;
26
27
  overflow: hidden;
@@ -42,7 +43,7 @@ $chip-border-thickness: 1px;
42
43
 
43
44
  .p-chip__dismiss {
44
45
  @extend %icon;
45
- // also includes button and close icon styles in the theming section
46
+ @include vf-icon-close-themed;
46
47
 
47
48
  align-self: center;
48
49
  background-size: map-get($icon-sizes, small);
@@ -64,234 +65,200 @@ $chip-border-thickness: 1px;
64
65
  }
65
66
  }
66
67
 
67
- .p-chip,
68
- .p-chip--positive,
69
- .p-chip--caution,
70
- .p-chip--negative,
71
- .p-chip--information {
68
+ @include vf-chips-default;
69
+ @include vf-chips-positive;
70
+ @include vf-chips-caution;
71
+ @include vf-chips-negative;
72
+ @include vf-chips-information;
73
+ }
74
+
75
+ // Default notification styling
76
+ @mixin vf-chips-default {
77
+ .p-chip {
72
78
  @extend %vf-chip;
79
+
80
+ background-color: $colors--theme--background-neutral-default;
81
+ border: $chip-border-thickness solid $colors--theme--border-neutral;
82
+ border-color: $colors--theme--border-neutral;
73
83
  }
74
84
 
75
- // Theming
76
- @if ($theme-default-p-chip == 'dark') {
77
- .p-chip {
78
- @include vf-chip-dark-theme;
79
- }
80
- .p-chip.is-light {
81
- @include vf-chip-light-theme;
82
- }
85
+ // stylelint-disable-next-line selector-max-type
86
+ button.p-chip {
83
87
  // stylelint-disable-next-line selector-max-type
84
- button.p-chip {
85
- @include vf-chip-dark-theme($is-interactive: true);
86
- }
87
- // stylelint-disable-next-line selector-max-type
88
- button.p-chip.is-light {
89
- @include vf-chip-light-theme($is-interactive: true);
88
+ &:hover {
89
+ background-color: $colors--theme--background-neutral-hover;
90
+ border-color: $colors--theme--border-neutral;
90
91
  }
91
92
 
92
- .p-chip--positive {
93
- @include vf-chip-dark-theme(positive);
94
- }
95
- .p-chip--positive.is-light {
96
- @include vf-chip-light-theme(positive);
97
- }
98
- // stylelint-disable-next-line selector-max-type
99
- button.p-chip--positive {
100
- @include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
101
- }
102
93
  // stylelint-disable-next-line selector-max-type
103
- button.p-chip--positive.is-light {
104
- @include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
94
+ &[aria-pressed='true'],
95
+ &.is-selected,
96
+ &:active {
97
+ background-color: $colors--theme--background-neutral-active;
98
+ border-color: $colors--theme--border-neutral;
105
99
  }
100
+ }
106
101
 
107
- .p-chip--caution {
108
- @include vf-chip-dark-theme(caution);
109
- }
110
- .p-chip--caution.is-light {
111
- @include vf-chip-light-theme(caution);
112
- }
113
- // stylelint-disable-next-line selector-max-type
114
- button.p-chip--caution {
115
- @include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
116
- }
117
- // stylelint-disable-next-line selector-max-type
118
- button.p-chip--caution.is-light {
119
- @include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
120
- }
102
+ .p-chip .p-chip__dismiss {
103
+ @include vf-button-pattern(
104
+ $button-background-color: transparent,
105
+ $button-border-color: transparent,
106
+ $button-hover-background-color: $colors--theme--background-neutral-hover,
107
+ $button-hover-border-color: transparent,
108
+ $button-active-background-color: $colors--theme--background-neutral-active,
109
+ $button-active-border-color: transparent
110
+ );
111
+ }
112
+ }
121
113
 
122
- .p-chip--negative {
123
- @include vf-chip-dark-theme(negative);
124
- }
125
- .p-chip--negative.is-light {
126
- @include vf-chip-light-theme(negative);
127
- }
128
- // stylelint-disable-next-line selector-max-type
129
- button.p-chip--negative {
130
- @include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
131
- }
132
- // stylelint-disable-next-line selector-max-type
133
- button.p-chip--negative.is-light {
134
- @include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
135
- }
114
+ @mixin vf-chips-positive {
115
+ .p-chip--positive {
116
+ @extend %vf-chip;
136
117
 
137
- .p-chip--information {
138
- @include vf-chip-dark-theme(information);
139
- }
140
- .p-chip--information.is-light {
141
- @include vf-chip-light-theme(information);
142
- }
143
- // stylelint-disable-next-line selector-max-type
144
- button.p-chip--information {
145
- @include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
146
- }
147
- // stylelint-disable-next-line selector-max-type
148
- button.p-chip--information.is-light {
149
- @include vf-chip-light-theme($chip-type: information, $is-interactive: true);
150
- }
151
- } @else {
152
- .p-chip {
153
- @include vf-chip-light-theme;
154
- }
155
- .p-chip.is-dark {
156
- @include vf-chip-dark-theme;
157
- }
158
- // stylelint-disable-next-line selector-max-type
159
- button.p-chip {
160
- @include vf-chip-light-theme($is-interactive: true);
161
- }
162
- // stylelint-disable-next-line selector-max-type
163
- button.p-chip.is-dark {
164
- @include vf-chip-dark-theme($is-interactive: true);
165
- }
118
+ background-color: $colors--theme--background-positive-default;
119
+ border: $chip-border-thickness solid $colors--theme--border-positive;
120
+ border-color: $colors--theme--border-positive;
121
+ }
166
122
 
167
- .p-chip--positive {
168
- @include vf-chip-light-theme(positive);
169
- }
170
- .p-chip--positive.is-dark {
171
- @include vf-chip-dark-theme(positive);
172
- }
173
- // stylelint-disable-next-line selector-max-type
174
- button.p-chip--positive {
175
- @include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
176
- }
123
+ // stylelint-disable-next-line selector-max-type
124
+ button.p-chip--positive {
177
125
  // stylelint-disable-next-line selector-max-type
178
- button.p-chip--positive.is-dark {
179
- @include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
126
+ &:hover {
127
+ background-color: $colors--theme--background-positive-hover;
128
+ border-color: $colors--theme--border-positive;
180
129
  }
181
130
 
182
- .p-chip--caution {
183
- @include vf-chip-light-theme(caution);
184
- }
185
- .p-chip--caution.is-dark {
186
- @include vf-chip-dark-theme(caution);
187
- }
188
- // stylelint-disable-next-line selector-max-type
189
- button.p-chip--caution {
190
- @include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
191
- }
192
131
  // stylelint-disable-next-line selector-max-type
193
- button.p-chip--caution.is-dark {
194
- @include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
132
+ &[aria-pressed='true'],
133
+ &.is-selected,
134
+ &:active {
135
+ background-color: $colors--theme--background-positive-active;
136
+ border-color: $colors--theme--border-positive;
195
137
  }
138
+ }
196
139
 
197
- .p-chip--negative {
198
- @include vf-chip-light-theme(negative);
199
- }
200
- .p-chip--negative.is-dark {
201
- @include vf-chip-dark-theme(negative);
202
- }
140
+ .p-chip--positive .p-chip__dismiss {
141
+ @include vf-button-pattern(
142
+ $button-background-color: transparent,
143
+ $button-border-color: transparent,
144
+ $button-hover-background-color: $colors--theme--background-positive-hover,
145
+ $button-hover-border-color: transparent,
146
+ $button-active-background-color: $colors--theme--background-positive-active,
147
+ $button-active-border-color: transparent
148
+ );
149
+ }
150
+ }
151
+
152
+ @mixin vf-chips-caution {
153
+ .p-chip--caution {
154
+ @extend %vf-chip;
155
+
156
+ background-color: $colors--theme--background-caution-default;
157
+ border: $chip-border-thickness solid $colors--theme--border-caution;
158
+ border-color: $colors--theme--border-caution;
159
+ }
160
+
161
+ // stylelint-disable-next-line selector-max-type
162
+ button.p-chip--caution {
203
163
  // stylelint-disable-next-line selector-max-type
204
- button.p-chip--negative {
205
- @include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
164
+ &:hover {
165
+ background-color: $colors--theme--background-caution-hover;
166
+ border-color: $colors--theme--border-caution;
206
167
  }
168
+
207
169
  // stylelint-disable-next-line selector-max-type
208
- button.p-chip--negative.is-dark {
209
- @include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
170
+ &[aria-pressed='true'],
171
+ &.is-selected,
172
+ &:active {
173
+ background-color: $colors--theme--background-caution-active;
174
+ border-color: $colors--theme--border-caution;
210
175
  }
176
+ }
211
177
 
212
- .p-chip--information {
213
- @include vf-chip-light-theme(information);
214
- }
215
- .p-chip--information.is-dark {
216
- @include vf-chip-dark-theme(information);
217
- }
178
+ .p-chip--caution .p-chip__dismiss {
179
+ @include vf-button-pattern(
180
+ $button-background-color: transparent,
181
+ $button-border-color: transparent,
182
+ $button-hover-background-color: $colors--theme--background-caution-hover,
183
+ $button-hover-border-color: transparent,
184
+ $button-active-background-color: $colors--theme--background-caution-active,
185
+ $button-active-border-color: transparent
186
+ );
187
+ }
188
+ }
189
+
190
+ @mixin vf-chips-negative {
191
+ .p-chip--negative {
192
+ @extend %vf-chip;
193
+
194
+ background-color: $colors--theme--background-negative-default;
195
+ border: $chip-border-thickness solid $colors--theme--border-negative;
196
+ border-color: $colors--theme--border-negative;
197
+ }
198
+
199
+ // stylelint-disable-next-line selector-max-type
200
+ button.p-chip--negative {
218
201
  // stylelint-disable-next-line selector-max-type
219
- button.p-chip--information {
220
- @include vf-chip-light-theme($chip-type: information, $is-interactive: true);
202
+ &:hover {
203
+ background-color: $colors--theme--background-negative-hover;
204
+ border-color: $colors--theme--border-negative;
221
205
  }
206
+
222
207
  // stylelint-disable-next-line selector-max-type
223
- button.p-chip--information.is-dark {
224
- @include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
208
+ &[aria-pressed='true'],
209
+ &.is-selected,
210
+ &:active {
211
+ background-color: $colors--theme--background-negative-active;
212
+ border-color: $colors--theme--border-negative;
225
213
  }
226
214
  }
227
- }
228
215
 
229
- @mixin vf-chip-theme($chip-type: neutral, $is-interactive: false, $colors-chip-tinted-backgrounds, $colors-chip-tinted-borders, $color-chip-value, $color-chip-lead) {
230
- @if (not map-has-key($colors-chip-tinted-backgrounds, $chip-type)) {
231
- $chip-type: neutral;
216
+ .p-chip--negative .p-chip__dismiss {
217
+ @include vf-button-pattern(
218
+ $button-background-color: transparent,
219
+ $button-border-color: transparent,
220
+ $button-hover-background-color: $colors--theme--background-negative-hover,
221
+ $button-hover-border-color: transparent,
222
+ $button-active-background-color: $colors--theme--background-negative-active,
223
+ $button-active-border-color: transparent
224
+ );
232
225
  }
226
+ }
233
227
 
234
- $color-background: map-get($colors-chip-tinted-backgrounds, $chip-type, 'default');
235
- $color-background-hover: map-get($colors-chip-tinted-backgrounds, $chip-type, 'hover');
236
- $color-background-active: map-get($colors-chip-tinted-backgrounds, $chip-type, 'active');
237
- $color-border: map-get($colors-chip-tinted-borders, $chip-type);
238
-
239
- background-color: $color-background;
240
- border: $chip-border-thickness solid $color-border;
228
+ @mixin vf-chips-information {
229
+ .p-chip--information {
230
+ @extend %vf-chip;
241
231
 
242
- .p-chip__value {
243
- color: $color-chip-value;
244
- }
245
- .p-chip__lead,
246
- .p-chip__lead + .p-chip__value::before {
247
- color: $color-chip-lead;
232
+ background-color: $colors--theme--background-information-default;
233
+ border: $chip-border-thickness solid $colors--theme--border-information;
234
+ border-color: $colors--theme--border-information;
248
235
  }
249
236
 
250
- @if ($is-interactive) {
237
+ // stylelint-disable-next-line selector-max-type
238
+ button.p-chip--information {
239
+ // stylelint-disable-next-line selector-max-type
251
240
  &:hover {
252
- background-color: $color-background-hover;
253
- border-color: $color-border;
241
+ background-color: $colors--theme--background-information-hover;
242
+ border-color: $colors--theme--border-information;
254
243
  }
244
+
245
+ // stylelint-disable-next-line selector-max-type
255
246
  &[aria-pressed='true'],
256
247
  &.is-selected,
257
248
  &:active {
258
- background-color: $color-background-active;
259
- border-color: $color-border;
260
- }
261
- } @else {
262
- .p-chip__dismiss {
263
- @include vf-icon-close($color-chip-lead);
264
-
265
- @include vf-button-pattern(
266
- $button-background-color: transparent,
267
- $button-border-color: transparent,
268
- $button-hover-background-color: $color-background-hover,
269
- $button-hover-border-color: transparent,
270
- $button-active-background-color: $color-background-active,
271
- $button-active-border-color: transparent
272
- );
249
+ background-color: $colors--theme--background-information-active;
250
+ border-color: $colors--theme--border-information;
273
251
  }
274
252
  }
275
- }
276
253
 
277
- @mixin vf-chip-light-theme($chip-type: neutral, $is-interactive: false) {
278
- @include vf-chip-theme(
279
- $chip-type: $chip-type,
280
- $is-interactive: $is-interactive,
281
- $colors-chip-tinted-backgrounds: $colors-light-theme--tinted-backgrounds,
282
- $colors-chip-tinted-borders: $colors-light-theme--tinted-borders,
283
- $color-chip-value: $colors--light-theme--text-default,
284
- $color-chip-lead: $colors--light-theme--text-default
285
- );
286
- }
287
-
288
- @mixin vf-chip-dark-theme($chip-type: neutral, $is-interactive: false) {
289
- @include vf-chip-theme(
290
- $chip-type: $chip-type,
291
- $is-interactive: $is-interactive,
292
- $colors-chip-tinted-backgrounds: $colors-dark-theme--tinted-backgrounds,
293
- $colors-chip-tinted-borders: $colors-dark-theme--tinted-borders,
294
- $color-chip-value: $colors--dark-theme--text-default,
295
- $color-chip-lead: $colors--dark-theme--text-default
296
- );
254
+ .p-chip--information .p-chip__dismiss {
255
+ @include vf-button-pattern(
256
+ $button-background-color: transparent,
257
+ $button-border-color: transparent,
258
+ $button-hover-background-color: $colors--theme--background-information-hover,
259
+ $button-hover-border-color: transparent,
260
+ $button-active-background-color: $colors--theme--background-information-active,
261
+ $button-active-border-color: transparent
262
+ );
263
+ }
297
264
  }
@@ -15,6 +15,7 @@
15
15
  .p-contextual-menu__dropdown {
16
16
  @extend %vf-has-box-shadow;
17
17
 
18
+ background: $colors--theme--background-default;
18
19
  display: none;
19
20
  margin: 0;
20
21
  max-width: 21rem;
@@ -57,6 +58,7 @@
57
58
  display: block;
58
59
 
59
60
  + .p-contextual-menu__group {
61
+ border-top-color: $colors--theme--border-default;
60
62
  border-top-style: solid;
61
63
  border-top-width: $input-border-thickness;
62
64
  margin: -$input-border-thickness 0 0 0;
@@ -77,9 +79,23 @@
77
79
  white-space: nowrap;
78
80
  width: 100%;
79
81
 
82
+ &,
83
+ &:active,
84
+ &:hover,
85
+ &:visited {
86
+ background-color: transparent;
87
+ color: $colors--theme--text-default;
88
+ }
89
+
80
90
  &:hover {
91
+ background-color: $colors--theme--background-hover;
81
92
  text-decoration: none;
82
93
  }
94
+
95
+ &:active {
96
+ background-color: $colors--theme--background-active;
97
+ cursor: default;
98
+ }
83
99
  }
84
100
 
85
101
  .p-contextual-menu__toggle {
@@ -94,79 +110,4 @@
94
110
  transform: rotate(180deg);
95
111
  }
96
112
  }
97
-
98
- // Theming
99
- @if ($theme-default-p-contextual-menu == 'dark') {
100
- @include vf-contextual-menu-dark-theme;
101
-
102
- [class*='p-contextual-menu'].is-light {
103
- @include vf-contextual-menu-light-theme;
104
- }
105
- } @else {
106
- @include vf-contextual-menu-light-theme;
107
-
108
- [class*='p-contextual-menu'].is-dark {
109
- @include vf-contextual-menu-dark-theme;
110
- }
111
- }
112
- }
113
-
114
- @mixin vf-contextual-menu-theme(
115
- // color of the contextual menu background
116
- $color-contextual-menu-background,
117
- // color of the contextual menu border between groups
118
- $color-contextual-menu-border,
119
- // color of the contextual menu item link text
120
- $color-contextual-menu-text,
121
- // color of the contextual menu item link active background
122
- $color-contextual-menu-active-background,
123
- // color of the contextual menu item link hover background
124
- $color-contextual-menu-hover-background
125
- ) {
126
- .p-contextual-menu__dropdown {
127
- background: $color-contextual-menu-background;
128
- }
129
-
130
- .p-contextual-menu__group + .p-contextual-menu__group {
131
- border-top-color: $color-contextual-menu-border;
132
- }
133
-
134
- .p-contextual-menu__link {
135
- &,
136
- &:active,
137
- &:hover,
138
- &:visited {
139
- background-color: transparent;
140
- color: $color-contextual-menu-text;
141
- }
142
-
143
- &:hover {
144
- background-color: $color-contextual-menu-hover-background;
145
- }
146
-
147
- &:active {
148
- background-color: $color-contextual-menu-active-background;
149
- cursor: default;
150
- }
151
- }
152
- }
153
-
154
- @mixin vf-contextual-menu-light-theme {
155
- @include vf-contextual-menu-theme(
156
- $color-contextual-menu-background: $colors--light-theme--background-default,
157
- $color-contextual-menu-hover-background: $colors--light-theme--background-hover,
158
- $color-contextual-menu-active-background: $colors--light-theme--background-active,
159
- $color-contextual-menu-border: $colors--light-theme--border-default,
160
- $color-contextual-menu-text: $colors--light-theme--text-default
161
- );
162
- }
163
-
164
- @mixin vf-contextual-menu-dark-theme {
165
- @include vf-contextual-menu-theme(
166
- $color-contextual-menu-background: $colors--dark-theme--background-default,
167
- $color-contextual-menu-hover-background: $colors--dark-theme--background-hover,
168
- $color-contextual-menu-active-background: $colors--dark-theme--background-active,
169
- $color-contextual-menu-border: $colors--dark-theme--border-default,
170
- $color-contextual-menu-text: $colors--dark-theme--text-default
171
- );
172
113
  }
@@ -40,8 +40,13 @@
40
40
  }
41
41
 
42
42
  .p-divider__block {
43
+ color: $colors--theme--text-default;
43
44
  position: relative;
44
45
 
46
+ &:not(:first-child)::before {
47
+ background-color: $colors--theme--border-default;
48
+ }
49
+
45
50
  @include horizontal-dividers();
46
51
 
47
52
  // Medium screens will have horizontal dividers unless col-medium-...
@@ -57,39 +62,4 @@
57
62
  @include vertical-dividers();
58
63
  }
59
64
  }
60
-
61
- // Theming
62
- @if ($theme-default-p-divider == 'dark') {
63
- .p-divider__block {
64
- @include vf-divider-dark-theme;
65
- }
66
-
67
- .p-divider.is-light .p-divider__block {
68
- @include vf-divider-light-theme;
69
- }
70
- } @else {
71
- .p-divider__block {
72
- @include vf-divider-light-theme;
73
- }
74
-
75
- .p-divider.is-dark .p-divider__block {
76
- @include vf-divider-dark-theme;
77
- }
78
- }
79
- }
80
-
81
- @mixin vf-divider-theme($color-divider-text, $color-divider-line) {
82
- color: $color-divider-text;
83
-
84
- &:not(:first-child)::before {
85
- background-color: $color-divider-line;
86
- }
87
- }
88
-
89
- @mixin vf-divider-light-theme {
90
- @include vf-divider-theme($colors--light-theme--text-default, $colors--light-theme--border-default);
91
- }
92
-
93
- @mixin vf-divider-dark-theme {
94
- @include vf-divider-theme($colors--dark-theme--text-default, $colors--dark-theme--border-default);
95
65
  }