vanilla-framework 4.7.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +8 -8
  2. package/scss/_base.scss +2 -0
  3. package/scss/_base_background.scss +2 -6
  4. package/scss/_base_button.scss +8 -8
  5. package/scss/_base_code.scss +5 -5
  6. package/scss/_base_forms.scss +22 -103
  7. package/scss/_base_grid-definitions.scss +4 -4
  8. package/scss/_base_hr.scss +5 -39
  9. package/scss/_base_icon-definitions.scss +361 -54
  10. package/scss/_base_links.scss +2 -10
  11. package/scss/_base_placeholders.scss +1 -1
  12. package/scss/_base_syntax-highlighting.scss +2 -2
  13. package/scss/_base_tables.scss +2 -2
  14. package/scss/_base_themes.scss +52 -0
  15. package/scss/_base_typography-definitions.scss +1 -1
  16. package/scss/_global_functions.scss +10 -0
  17. package/scss/_layouts_application-panels.scss +1 -1
  18. package/scss/_patterns_buttons.scss +35 -167
  19. package/scss/_patterns_chip.scss +156 -189
  20. package/scss/_patterns_code-snippet.scss +7 -8
  21. package/scss/_patterns_contextual-menu.scss +16 -75
  22. package/scss/_patterns_divider.scss +5 -35
  23. package/scss/_patterns_form-help-text.scss +1 -29
  24. package/scss/_patterns_form-password-toggle.scss +1 -1
  25. package/scss/_patterns_form-tick-elements.scss +9 -128
  26. package/scss/_patterns_form-validation.scss +31 -229
  27. package/scss/_patterns_icons.scss +623 -442
  28. package/scss/_patterns_links.scss +12 -9
  29. package/scss/_patterns_lists.scss +23 -40
  30. package/scss/_patterns_media-container.scss +5 -0
  31. package/scss/_patterns_notifications.scss +21 -12
  32. package/scss/_patterns_search-box.scss +20 -99
  33. package/scss/_patterns_section.scss +12 -1
  34. package/scss/_patterns_side-navigation-expandable.scss +18 -55
  35. package/scss/_patterns_side-navigation.scss +132 -317
  36. package/scss/_patterns_strip.scss +41 -13
  37. package/scss/_patterns_suru.scss +126 -10
  38. package/scss/_patterns_table-mobile-card.scss +1 -1
  39. package/scss/_patterns_table-sortable.scss +2 -2
  40. package/scss/_patterns_tabs.scss +23 -74
  41. package/scss/_settings_colors.scss +195 -2
  42. package/scss/_settings_themes.scss +6 -6
  43. package/scss/_utilities_baseline-grid.scss +8 -0
  44. package/scss/_utilities_layout.scss +0 -6
  45. package/scss/_utilities_theme-toggle.scss +39 -0
  46. package/scss/_vanilla.scss +4 -0
@@ -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
  }
@@ -46,7 +46,6 @@
46
46
 
47
47
  @import 'settings';
48
48
 
49
- $color-snippet-heading-bg: rgba($color-x-dark, 0.08);
50
49
  $code-snippet-header-v-spacing: $spv--small;
51
50
 
52
51
  @mixin vf-p-code-snippet {
@@ -54,7 +53,7 @@ $code-snippet-header-v-spacing: $spv--small;
54
53
  margin-bottom: $spv--x-large;
55
54
 
56
55
  &.is-bordered {
57
- border: 1px solid $colors--light-theme--border-low-contrast;
56
+ border: 1px solid $colors--theme--border-low-contrast;
58
57
  }
59
58
 
60
59
  .p-code-snippet__block,
@@ -74,13 +73,13 @@ $code-snippet-header-v-spacing: $spv--small;
74
73
  position: relative;
75
74
 
76
75
  &.is-windows-prompt::before {
77
- @include vf-icon-chevron($color-mid-dark);
76
+ @include vf-icon-chevron-themed;
78
77
 
79
78
  transform: rotate(270deg);
80
79
  }
81
80
 
82
81
  &.is-url::before {
83
- @include vf-icon-get-link($color-mid-dark);
82
+ @include vf-icon-get-link-themed;
84
83
  }
85
84
  }
86
85
 
@@ -94,7 +93,7 @@ $code-snippet-header-v-spacing: $spv--small;
94
93
 
95
94
  .p-code-snippet__header {
96
95
  align-items: flex-start;
97
- background-color: $color-code-heading-background;
96
+ background-color: $colors--theme--background-active;
98
97
  display: flex;
99
98
  justify-content: space-between;
100
99
  padding-left: $sph--large;
@@ -115,7 +114,7 @@ $code-snippet-header-v-spacing: $spv--small;
115
114
  .p-code-snippet__dropdown {
116
115
  background-color: $color-transparent;
117
116
  border: 0;
118
- color: $colors--light-theme--text-default;
117
+ color: $colors--theme--text-default;
119
118
  margin-bottom: 0;
120
119
  margin-left: $sph--small;
121
120
  min-width: min-content;
@@ -137,7 +136,7 @@ $code-snippet-header-v-spacing: $spv--small;
137
136
  }
138
137
 
139
138
  .p-code-snippet__dropdown + .p-code-snippet__dropdown {
140
- border-left: 1px solid $colors--light-theme--border-default;
139
+ border-left: 1px solid $colors--theme--border-default;
141
140
  }
142
141
 
143
142
  .p-code-snippet__header.is-stacked {
@@ -154,7 +153,7 @@ $code-snippet-header-v-spacing: $spv--small;
154
153
  }
155
154
 
156
155
  .p-code-snippet__title + .p-code-snippet__dropdowns {
157
- border-top: 1px solid $colors--light-theme--border-default;
156
+ border-top: 1px solid $colors--theme--border-default;
158
157
  }
159
158
  }
160
159
 
@@ -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
  }
@@ -4,39 +4,11 @@
4
4
  .p-form-help-text {
5
5
  @extend %small-text;
6
6
 
7
- color: $color-mid-dark;
7
+ color: $colors--theme--text-muted;
8
8
  margin-top: -$sp-unit;
9
9
 
10
10
  &.is-tick-element {
11
11
  margin-left: $sph--large + $form-tick-box-size;
12
12
  }
13
13
  }
14
-
15
- @if ($theme-default-forms == 'dark') {
16
- .p-form-help-text {
17
- @include vf-form-help-text-dark-theme;
18
- }
19
- } @else {
20
- .p-form-help-text {
21
- @include vf-form-help-text-light-theme;
22
- }
23
- }
24
-
25
- .is-dark .p-form-help-text,
26
- .p-form-help-text.is-dark {
27
- @include vf-form-help-text-dark-theme;
28
- }
29
-
30
- .is-light .p-form-help-text,
31
- .p-form-help-text.is-light {
32
- @include vf-form-help-text-light-theme;
33
- }
34
- }
35
-
36
- @mixin vf-form-help-text-dark-theme {
37
- color: $colors--dark-theme--text-muted;
38
- }
39
-
40
- @mixin vf-form-help-text-light-theme {
41
- color: $colors--light-theme--text-muted;
42
14
  }