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
@@ -14,7 +14,7 @@ $color-input-shadow: rgba($color-x-dark, 0.12) !default;
14
14
 
15
15
  // SEMANTIC COLOURS
16
16
  $color-negative: #c7162b !default;
17
- $color-caution: #f99b11 !default;
17
+ $color-caution: #cc7900 !default;
18
18
  $color-positive: #0e8420 !default;
19
19
  $color-information: #24598f !default;
20
20
 
@@ -85,6 +85,10 @@ $states: (
85
85
  // --text-disabled - dimmed version of default text color, to be used on disabled controls
86
86
  // --text-muted - muted version of default text color, to be used on elements with less prominence
87
87
  //
88
+ // Link colors:
89
+ // --link-default - default link color
90
+ // --link-visited - visited link color
91
+ //
88
92
  // Background colors:
89
93
  // --background - default background color
90
94
  // --background-alt - alternative version of background color, to be used to differentiate given surface
@@ -102,8 +106,12 @@ $colors--light-theme--text-default: #000 !default;
102
106
  $colors--light-theme--text-muted: rgba($color-x-dark, $muted-text-opacity-amount) !default;
103
107
  $colors--light-theme--text-inactive: rgba($color-x-dark, $inactive-text-opacity-amount) !default;
104
108
 
109
+ $colors--light-theme--link-default: $color-link !default;
110
+ $colors--light-theme--link-visited: $color-link-visited !default;
111
+
105
112
  $colors--light-theme--background-default: #fff !default;
106
113
  $colors--light-theme--background-alt: #f7f7f7 !default;
114
+ $colors--light-theme--background-code: $color-code-background !default;
107
115
  $colors--light-theme--background-inputs: adjust-color($color-x-dark, $lightness: 100% * (1 - $input-background-opacity-amount)) !default;
108
116
  $colors--light-theme--background-active: adjust-color($color-x-dark, $lightness: 100% * (1 - $active-background-opacity-amount)) !default;
109
117
  $colors--light-theme--background-hover: adjust-color($color-x-dark, $lightness: 100% * (1 - $hover-background-opacity-amount)) !default;
@@ -113,6 +121,8 @@ $colors--light-theme--border-default: rgba($color-x-dark, 0.2) !default;
113
121
  $colors--light-theme--border-high-contrast: rgba($color-x-dark, 0.56) !default;
114
122
  $colors--light-theme--border-low-contrast: rgba($color-x-dark, 0.1) !default;
115
123
 
124
+ $colors--light-theme--icon: $colors--light-theme--text-default !default;
125
+
116
126
  $colors-light-theme--tinted-backgrounds: (
117
127
  neutral: (
118
128
  default: #f2f2f2,
@@ -144,7 +154,7 @@ $colors-light-theme--tinted-backgrounds: (
144
154
  $colors-light-theme--tinted-borders: (
145
155
  neutral: $colors--light-theme--border-high-contrast,
146
156
  positive: $color-positive,
147
- caution: hsl(27deg 100% 39%),
157
+ caution: $color-caution,
148
158
  negative: $color-negative,
149
159
  information: $color-information,
150
160
  );
@@ -155,8 +165,12 @@ $colors--dark-theme--text-hover: hsl(0, 0%, 76%) !default; // minimum contrast o
155
165
  $colors--dark-theme--text-muted: rgba($colors--dark-theme--text-default, $muted-text-opacity-amount) !default;
156
166
  $colors--dark-theme--text-inactive: rgba($colors--dark-theme--text-default, $inactive-text-opacity-amount) !default;
157
167
 
168
+ $colors--dark-theme--link-default: $color-link-dark !default;
169
+ $colors--dark-theme--link-visited: $color-link-visited-dark !default;
170
+
158
171
  $colors--dark-theme--background-default: #262626 !default;
159
172
  $colors--dark-theme--background-alt: #2d2d2d !default;
173
+ $colors--dark-theme--background-code: $color-code-background-dark !default;
160
174
  $colors--dark-theme--background-inputs: rgba($colors--dark-theme--text-default, $input-background-opacity-amount) !default;
161
175
  $colors--dark-theme--background-active: rgba($colors--dark-theme--text-default, $active-background-opacity-amount) !default;
162
176
  $colors--dark-theme--background-hover: rgba($colors--dark-theme--text-default, $hover-background-opacity-amount) !default;
@@ -166,6 +180,8 @@ $colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.3
166
180
  $colors--dark-theme--border-high-contrast: rgba($colors--dark-theme--text-default, 0.5) !default;
167
181
  $colors--dark-theme--border-low-contrast: rgba($colors--dark-theme--text-default, 0.05) !default;
168
182
 
183
+ $colors--dark-theme--icon: $colors--dark-theme--text-default !default;
184
+
169
185
  $colors-dark-theme--tinted-backgrounds: (
170
186
  neutral: (
171
187
  default: rgba(255, 255, 255, 0.15),
@@ -207,6 +223,183 @@ $colors--paper-theme--background-inputs: rgba($color-x-dark, $input-background-o
207
223
  $colors--paper-theme--background-active: rgba($color-x-dark, $active-background-opacity-amount) !default;
208
224
  $colors--paper-theme--background-hover: rgba($color-x-dark, $hover-background-opacity-amount) !default;
209
225
 
226
+ // Current theme (based on CSS variables)
227
+ // This is a mapping between SCSS variable and it's CSS property equivalent.
228
+ // These SCSS variables should be used in components as colour values.
229
+ // See _base_themes.scss for CSS custom properties definitions.
230
+ $colors--theme--text-default: var(--vf-color-text-default);
231
+ $colors--theme--text-muted: var(--vf-color-text-muted);
232
+ $colors--theme--text-inactive: var(--vf-color-text-inactive);
233
+
234
+ $colors--theme--link-default: var(--vf-color-link-default);
235
+ $colors--theme--link-visited: var(--vf-color-link-visited);
236
+
237
+ $colors--theme--background-default: var(--vf-color-background-default);
238
+ $colors--theme--background-alt: var(--vf-color-background-alt);
239
+ $colors--theme--background-code: var(--vf-color-background-code);
240
+ $colors--theme--background-inputs: var(--vf-color-background-inputs);
241
+ $colors--theme--background-active: var(--vf-color-background-active);
242
+ $colors--theme--background-hover: var(--vf-color-background-hover);
243
+ $colors--theme--background-overlay: var(--vf-color-background-overlay);
244
+
245
+ $colors--theme--border-default: var(--vf-color-border-default);
246
+ $colors--theme--border-high-contrast: var(--vf-color-border-high-contrast);
247
+ $colors--theme--border-low-contrast: var(--vf-color-border-low-contrast);
248
+
249
+ $colors--theme--border-neutral: var(--vf-color-border-neutral);
250
+ $colors--theme--border-positive: var(--vf-color-border-positive);
251
+ $colors--theme--border-negative: var(--vf-color-border-negative);
252
+ $colors--theme--border-information: var(--vf-color-border-information);
253
+ $colors--theme--border-caution: var(--vf-color-border-caution);
254
+
255
+ $colors--theme--background-neutral-default: var(--vf-color-background-neutral-default);
256
+ $colors--theme--background-neutral-hover: var(--vf-color-background-neutral-hover);
257
+ $colors--theme--background-neutral-active: var(--vf-color-background-neutral-active);
258
+ $colors--theme--background-positive-default: var(--vf-color-background-positive-default);
259
+ $colors--theme--background-positive-hover: var(--vf-color-background-positive-hover);
260
+ $colors--theme--background-positive-active: var(--vf-color-background-positive-active);
261
+ $colors--theme--background-caution-default: var(--vf-color-background-caution-default);
262
+ $colors--theme--background-caution-hover: var(--vf-color-background-caution-hover);
263
+ $colors--theme--background-caution-active: var(--vf-color-background-caution-active);
264
+ $colors--theme--background-negative-default: var(--vf-color-background-negative-default);
265
+ $colors--theme--background-negative-hover: var(--vf-color-background-negative-hover);
266
+ $colors--theme--background-negative-active: var(--vf-color-background-negative-active);
267
+ $colors--theme--background-information-default: var(--vf-color-background-information-default);
268
+ $colors--theme--background-information-hover: var(--vf-color-background-information-hover);
269
+ $colors--theme--background-information-active: var(--vf-color-background-information-active);
270
+
271
+ $colors--theme--button-positive-default: var(--vf-color-button-positive-default);
272
+ $colors--theme--button-positive-hover: var(--vf-color-button-positive-hover);
273
+ $colors--theme--button-positive-active: var(--vf-color-button-positive-active);
274
+ $colors--theme--button-positive-text: var(--vf-color-button-positive-text);
275
+
276
+ $colors--theme--button-negative-default: var(--vf-color-button-negative-default);
277
+ $colors--theme--button-negative-hover: var(--vf-color-button-negative-hover);
278
+ $colors--theme--button-negative-active: var(--vf-color-button-negative-active);
279
+ $colors--theme--button-negative-text: var(--vf-color-button-negative-text);
280
+
281
+ // Theme colors exposed as CSS custom properties
282
+ @mixin vf-theme-light--colors {
283
+ // SCSS variables need to be interpolated to work in CSS custom properties
284
+ --vf-color-text-default: #{$colors--light-theme--text-default};
285
+ --vf-color-text-muted: #{$colors--light-theme--text-muted};
286
+ --vf-color-text-inactive: #{$colors--light-theme--text-inactive};
287
+
288
+ --vf-color-link-default: #{$colors--light-theme--link-default};
289
+ --vf-color-link-visited: #{$colors--light-theme--link-visited};
290
+
291
+ --vf-color-background-default: #{$colors--light-theme--background-default};
292
+ --vf-color-background-alt: #{$colors--light-theme--background-alt};
293
+ --vf-color-background-code: #{$colors--light-theme--background-code};
294
+ --vf-color-background-inputs: #{$colors--light-theme--background-inputs};
295
+ --vf-color-background-active: #{$colors--light-theme--background-active};
296
+ --vf-color-background-hover: #{$colors--light-theme--background-hover};
297
+ --vf-color-background-overlay: #{$colors--light-theme--background-overlay};
298
+
299
+ --vf-color-border-default: #{$colors--light-theme--border-default};
300
+ --vf-color-border-high-contrast: #{$colors--light-theme--border-high-contrast};
301
+ --vf-color-border-low-contrast: #{$colors--light-theme--border-low-contrast};
302
+
303
+ --vf-color-border-neutral: #{map-get($colors-light-theme--tinted-borders, neutral)};
304
+ --vf-color-border-positive: #{map-get($colors-light-theme--tinted-borders, positive)};
305
+ --vf-color-border-negative: #{map-get($colors-light-theme--tinted-borders, negative)};
306
+ --vf-color-border-information: #{map-get($colors-light-theme--tinted-borders, information)};
307
+ --vf-color-border-caution: #{map-get($colors-light-theme--tinted-borders, caution)};
308
+
309
+ --vf-color-background-neutral-default: #{map-get($colors-light-theme--tinted-backgrounds, neutral, default)};
310
+ --vf-color-background-neutral-hover: #{map-get($colors-light-theme--tinted-backgrounds, neutral, 'hover')};
311
+ --vf-color-background-neutral-active: #{map-get($colors-light-theme--tinted-backgrounds, neutral, active)};
312
+ --vf-color-background-positive-default: #{map-get($colors-light-theme--tinted-backgrounds, positive, default)};
313
+ --vf-color-background-positive-hover: #{map-get($colors-light-theme--tinted-backgrounds, positive, 'hover')};
314
+ --vf-color-background-positive-active: #{map-get($colors-light-theme--tinted-backgrounds, positive, active)};
315
+ --vf-color-background-caution-default: #{map-get($colors-light-theme--tinted-backgrounds, caution, default)};
316
+ --vf-color-background-caution-hover: #{map-get($colors-light-theme--tinted-backgrounds, caution, 'hover')};
317
+ --vf-color-background-caution-active: #{map-get($colors-light-theme--tinted-backgrounds, caution, active)};
318
+ --vf-color-background-negative-default: #{map-get($colors-light-theme--tinted-backgrounds, negative, default)};
319
+ --vf-color-background-negative-hover: #{map-get($colors-light-theme--tinted-backgrounds, negative, 'hover')};
320
+ --vf-color-background-negative-active: #{map-get($colors-light-theme--tinted-backgrounds, negative, active)};
321
+ --vf-color-background-information-default: #{map-get($colors-light-theme--tinted-backgrounds, information, default)};
322
+ --vf-color-background-information-hover: #{map-get($colors-light-theme--tinted-backgrounds, information, 'hover')};
323
+ --vf-color-background-information-active: #{map-get($colors-light-theme--tinted-backgrounds, information, active)};
324
+
325
+ --vf-color-button-positive-default: #{$color-positive};
326
+ --vf-color-button-positive-hover: #{adjust-color($color-positive, $lightness: -$hover-background-opacity-percentage)};
327
+ --vf-color-button-positive-active: #{adjust-color($color-positive, $lightness: -$active-background-opacity-percentage)};
328
+ --vf-color-button-positive-text: #{vf-contrast-text-color($color-positive)};
329
+
330
+ --vf-color-button-negative-default: #{$color-negative};
331
+ --vf-color-button-negative-hover: #{adjust-color($color-negative, $lightness: -$hover-background-opacity-percentage)};
332
+ --vf-color-button-negative-active: #{adjust-color($color-negative, $lightness: -$active-background-opacity-percentage)};
333
+ --vf-color-button-negative-text: #{vf-contrast-text-color($color-negative)};
334
+ }
335
+
336
+ @mixin vf-theme-dark--colors {
337
+ // SCSS variables need to be interpolated to work in CSS custom properties
338
+ --vf-color-text-default: #{$colors--dark-theme--text-default};
339
+ --vf-color-text-muted: #{$colors--dark-theme--text-muted};
340
+ --vf-color-text-inactive: #{$colors--dark-theme--text-inactive};
341
+
342
+ --vf-color-link-default: #{$colors--dark-theme--link-default};
343
+ --vf-color-link-visited: #{$colors--dark-theme--link-visited};
344
+
345
+ --vf-color-background-default: #{$colors--dark-theme--background-default};
346
+ --vf-color-background-alt: #{$colors--dark-theme--background-alt};
347
+ --vf-color-background-code: #{$colors--dark-theme--background-code};
348
+ --vf-color-background-inputs: #{$colors--dark-theme--background-inputs};
349
+ --vf-color-background-active: #{$colors--dark-theme--background-active};
350
+ --vf-color-background-hover: #{$colors--dark-theme--background-hover};
351
+ --vf-color-background-overlay: #{$colors--dark-theme--background-overlay};
352
+
353
+ --vf-color-border-default: #{$colors--dark-theme--border-default};
354
+ --vf-color-border-high-contrast: #{$colors--dark-theme--border-high-contrast};
355
+ --vf-color-border-low-contrast: #{$colors--dark-theme--border-low-contrast};
356
+
357
+ --vf-color-border-neutral: #{map-get($colors-dark-theme--tinted-borders, neutral)};
358
+ --vf-color-border-positive: #{map-get($colors-dark-theme--tinted-borders, positive)};
359
+ --vf-color-border-negative: #{map-get($colors-dark-theme--tinted-borders, negative)};
360
+ --vf-color-border-information: #{map-get($colors-dark-theme--tinted-borders, information)};
361
+ --vf-color-border-caution: #{map-get($colors-dark-theme--tinted-borders, caution)};
362
+
363
+ --vf-color-background-neutral-default: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, default)};
364
+ --vf-color-background-neutral-hover: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, hover)};
365
+ --vf-color-background-neutral-active: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, active)};
366
+ --vf-color-background-positive-default: #{map-get($colors-dark-theme--tinted-backgrounds, positive, default)};
367
+ --vf-color-background-positive-hover: #{map-get($colors-dark-theme--tinted-backgrounds, positive, hover)};
368
+ --vf-color-background-positive-active: #{map-get($colors-dark-theme--tinted-backgrounds, positive, active)};
369
+ --vf-color-background-caution-default: #{map-get($colors-dark-theme--tinted-backgrounds, caution, default)};
370
+ --vf-color-background-caution-hover: #{map-get($colors-dark-theme--tinted-backgrounds, caution, hover)};
371
+ --vf-color-background-caution-active: #{map-get($colors-dark-theme--tinted-backgrounds, caution, active)};
372
+ --vf-color-background-negative-default: #{map-get($colors-dark-theme--tinted-backgrounds, negative, default)};
373
+ --vf-color-background-negative-hover: #{map-get($colors-dark-theme--tinted-backgrounds, negative, hover)};
374
+ --vf-color-background-negative-active: #{map-get($colors-dark-theme--tinted-backgrounds, negative, active)};
375
+ --vf-color-background-information-default: #{map-get($colors-dark-theme--tinted-backgrounds, information, default)};
376
+ --vf-color-background-information-hover: #{map-get($colors-dark-theme--tinted-backgrounds, information, hover)};
377
+ --vf-color-background-information-active: #{map-get($colors-dark-theme--tinted-backgrounds, information, active)};
378
+
379
+ --vf-color-button-positive-default: #{$color-positive-dark};
380
+ --vf-color-button-positive-hover: #{adjust-color($color-positive-dark, $lightness: -$hover-background-opacity-percentage)};
381
+ --vf-color-button-positive-active: #{adjust-color($color-positive-dark, $lightness: -$active-background-opacity-percentage)};
382
+ --vf-color-button-positive-text: #{vf-contrast-text-color($color-positive-dark)};
383
+
384
+ --vf-color-button-negative-default: #{$color-negative-dark};
385
+ --vf-color-button-negative-hover: #{adjust-color($color-negative-dark, $lightness: -$hover-background-opacity-percentage)};
386
+ --vf-color-button-negative-active: #{adjust-color($color-negative-dark, $lightness: -$active-background-opacity-percentage)};
387
+ --vf-color-button-negative-text: #{vf-contrast-text-color($color-negative-dark)};
388
+ }
389
+
390
+ @mixin vf-theme-paper--colors {
391
+ // paper theme is based on light theme with some background colours adjusted
392
+ @include vf-theme-light--colors;
393
+
394
+ // SCSS variables need to be interpolated to work in CSS custom properties
395
+ --vf-color-background-default: #{$color-paper};
396
+ --vf-color-background-alt: #{$color-x-light};
397
+
398
+ --vf-color-background-inputs: #{$colors--paper-theme--background-inputs};
399
+ --vf-color-background-active: #{$colors--paper-theme--background-active};
400
+ --vf-color-background-hover: #{$colors--paper-theme--background-hover};
401
+ }
402
+
210
403
  // Branding colors
211
404
  $color-ubuntu: #e95420; // Ubuntu orange, should not be overridden
212
405
  $color-brand: $color-ubuntu !default;
@@ -1,11 +1,11 @@
1
1
  $theme-default-forms: 'light' !default;
2
- $theme-default-hr: 'light' !default;
2
+ $theme-default-hr: 'light' !default; // deprecated -- use new theme classes instead
3
3
  $theme-default-nav: 'light' !default;
4
- $theme-default-p-side-navigation: 'light' !default;
4
+ $theme-default-p-side-navigation: 'light' !default; // deprecated -- use new theme classes instead
5
5
  $theme-default-p-search-box: 'light' !default;
6
- $theme-default-p-divider: 'light' !default;
7
- $theme-default-p-contextual-menu: 'light' !default;
8
- $theme-default-p-inline-list--middot: 'light' !default;
6
+ $theme-default-p-divider: 'light' !default; // deprecated -- use new theme classes instead
7
+ $theme-default-p-contextual-menu: 'light' !default; // deprecated -- use new theme classes instead
8
+ $theme-default-p-inline-list--middot: 'light' !default; // deprecated -- use new theme classes instead
9
9
  $theme-default-p-button: 'light' !default;
10
10
  $theme-default-p-chip: 'light' !default;
11
- $theme-default-p-tabs: 'light' !default;
11
+ $theme-default-p-tabs: 'light' !default; // deprecated -- use new theme classes instead
@@ -37,8 +37,16 @@
37
37
 
38
38
  .u-baseline-grid__toggle {
39
39
  bottom: $spv--x-large;
40
+ color: $colors--light-theme--text-default; // Force light theme colour because of baseline grid background
40
41
  position: fixed;
41
42
  right: $sp-unit * 3;
42
43
  z-index: 201;
43
44
  }
45
+
46
+ // hide the theme toggle in Percy
47
+ @media only percy {
48
+ .u-baseline-grid__toggle {
49
+ visibility: hidden !important;
50
+ }
51
+ }
44
52
  }
@@ -1,12 +1,6 @@
1
1
  @mixin vf-u-layout {
2
2
  .u-fixed-width {
3
3
  @extend %fixed-width-container;
4
-
5
- & &,
6
- .row &,
7
- & .row {
8
- @include vf-b-row-reset;
9
- }
10
4
  }
11
5
 
12
6
  @if ($table-layout-fixed) {
@@ -0,0 +1,39 @@
1
+ @import 'settings';
2
+
3
+ @mixin vf-u-theme-toggle {
4
+ .u-theme-toggle {
5
+ bottom: $spv--x-large;
6
+ position: fixed;
7
+ right: $sp-unit * 30;
8
+ z-index: 100;
9
+
10
+ .u-theme-toggle__button {
11
+ margin: 0;
12
+
13
+ &:not(:last-child) {
14
+ border-right: 0;
15
+ }
16
+ }
17
+
18
+ .u-theme-toggle__dark {
19
+ background-color: $colors--dark-theme--background-default;
20
+ color: $colors--dark-theme--text-default;
21
+ }
22
+
23
+ .u-theme-toggle__light {
24
+ background-color: $colors--light-theme--background-default;
25
+ color: $colors--light-theme--text-default;
26
+ }
27
+ .u-theme-toggle__paper {
28
+ background-color: $color-paper;
29
+ color: $color-x-dark;
30
+ }
31
+ }
32
+
33
+ // hide the theme toggle in Percy
34
+ @media only percy {
35
+ .u-theme-toggle {
36
+ visibility: hidden !important;
37
+ }
38
+ }
39
+ }
@@ -27,6 +27,7 @@
27
27
  @import 'patterns_lists';
28
28
  @import 'patterns_logo-section';
29
29
  @import 'patterns_matrix';
30
+ @import 'patterns_media-container';
30
31
  @import 'patterns_media-object';
31
32
  @import 'patterns_modal';
32
33
  @import 'patterns_muted-heading';
@@ -87,6 +88,7 @@
87
88
  @import 'utilities_no-print';
88
89
  @import 'utilities_text-max-width';
89
90
  @import 'utilities_text-figures';
91
+ @import 'utilities_theme-toggle';
90
92
 
91
93
  // Include all the CSS
92
94
  @mixin vanilla {
@@ -119,6 +121,7 @@
119
121
  @include vf-p-lists;
120
122
  @include vf-p-logo-section;
121
123
  @include vf-p-matrix;
124
+ @include vf-p-media-container;
122
125
  @include vf-p-media-object;
123
126
  @include vf-p-modal;
124
127
  @include vf-p-muted-heading;
@@ -178,4 +181,5 @@
178
181
  @include vf-u-no-print;
179
182
  @include vf-u-text-max-width;
180
183
  @include vf-u-text-figures;
184
+ @include vf-u-theme-toggle;
181
185
  }