vanilla-framework 4.7.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 (35) hide show
  1. package/package.json +1 -1
  2. package/scss/_base.scss +2 -0
  3. package/scss/_base_background.scss +2 -6
  4. package/scss/_base_forms.scss +22 -103
  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 +9 -128
  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_notifications.scss +21 -12
  25. package/scss/_patterns_search-box.scss +20 -99
  26. package/scss/_patterns_section.scss +12 -1
  27. package/scss/_patterns_side-navigation-expandable.scss +18 -55
  28. package/scss/_patterns_side-navigation.scss +117 -317
  29. package/scss/_patterns_strip.scss +41 -13
  30. package/scss/_patterns_suru.scss +126 -10
  31. package/scss/_patterns_table-mobile-card.scss +1 -1
  32. package/scss/_patterns_table-sortable.scss +2 -2
  33. package/scss/_patterns_tabs.scss +23 -74
  34. package/scss/_settings_colors.scss +164 -2
  35. package/scss/_settings_themes.scss +6 -6
@@ -1,16 +1,132 @@
1
1
  @import 'settings';
2
2
 
3
3
  @mixin vf-p-suru {
4
- .p-suru {
5
- aspect-ratio: calc(2216 / 428); // aspect ratio calculated from image dimensions
6
- background-image: url('#{$assets-path}7f34ade9-website_suru_25.jpg');
7
- background-size: contain;
8
- margin: 0 auto;
9
- max-width: $grid-max-width;
10
-
11
- &.is-dark {
12
- aspect-ratio: calc(2580 / 501); // aspect ratio calculated from image dimensions
13
- background-image: url('#{$assets-path}9469ef82-1_website_suru_DARK_25%20(1)122.jpg');
4
+ $vf-suru-min-height: 24rem;
5
+
6
+ // add suru backgrounds to the themes
7
+ @at-root {
8
+ :root,
9
+ .is-light,
10
+ .is-paper {
11
+ // new suru backgrounds don't have while (light) version,
12
+ // they need paper background
13
+ --vf-suru-background: #{$color-paper};
14
+ --vf-suru-25-75: url('#{$assets-path}505636a6-0000_suru-main-25x75-light.png');
15
+ --vf-suru-50-50: url('#{$assets-path}e66e280b-0001_suru-main-50x50-light.png');
16
+ --vf-suru-fan-top-right: url('#{$assets-path}ed94a429-0000_suru-corner-fan--top-right-light.jpg');
17
+ --vf-suru-fan-bottom-right: url('#{$assets-path}2adade55-suru-corner-fan--bottom-0000_light.jpg');
18
+ --vf-suru-pyramid-top-left: url('#{$assets-path}8846d6a5-suru-pyramid-top-corner_0000_light.jpg');
19
+ --vf-suru-pyramid-top-right: url('#{$assets-path}5d9f8cd3-suru-pyramid-top-right-corner_0000_light.jpg');
20
+ }
21
+
22
+ .is-dark {
23
+ --vf-suru-background: #{$colors--theme--background-default};
24
+ --vf-suru-25-75: url('#{$assets-path}7ccd4f39-0003_suru-main-25x75-dark.png');
25
+ --vf-suru-50-50: url('#{$assets-path}70c2bbcd-0002_suru-main-50x50-dark.png');
26
+ --vf-suru-fan-top-right: url('#{$assets-path}fd6ef995-0001_suru-corner-fan--top-right-dark.jpg');
27
+ --vf-suru-fan-bottom-right: url('#{$assets-path}725af649-suru-corner-fan--bottom-0001_dark.jpg');
28
+ --vf-suru-pyramid-top-left: url('#{$assets-path}86ed5771-suru-pyramid-top-corner_0001_dark.jpg');
29
+ --vf-suru-pyramid-top-right: url('#{$assets-path}9f740811-suru-pyramid-top-right-corner_0001_dark.jpg');
30
+ }
31
+ }
32
+
33
+ .p-suru,
34
+ .p-suru--25-75,
35
+ .p-suru--50-50 {
36
+ background-color: var(--vf-suru-background);
37
+ color: $colors--theme--text-default;
38
+
39
+ // padding top based on p-section--hero
40
+ // bottom padding not needed (as it's covered by the suru background image)
41
+ padding-top: $spv--large;
42
+
43
+ // on large screens, same as %section-padding--shallow
44
+ @media (min-width: $breakpoint-large) {
45
+ padding-top: $spv--x-large;
46
+ }
47
+
48
+ // for backwards compatibility with p-suru used as a standalone component
49
+ // we remove top padding if there are no children
50
+ // for this to work there can't be any whitespace in the suru element
51
+ // <div class="p-suru"></div>
52
+ &:-moz-only-whitespace,
53
+ &:empty {
54
+ padding-top: 0;
55
+ }
56
+
57
+ &::after {
58
+ aspect-ratio: calc(2600 / 471); // aspect ratio calculated from image dimensions
59
+ background-image: var(--vf-suru-25-75);
60
+ background-size: contain;
61
+ content: '';
62
+ display: block;
63
+ margin: 0 auto;
64
+ max-width: $grid-max-width;
65
+ }
66
+
67
+ &.p-suru--50-50::after {
68
+ // aspect ratio of 50/50 background is the same, so no need to override
69
+ background-image: var(--vf-suru-50-50);
70
+ }
71
+ }
72
+
73
+ .p-suru--fan-top,
74
+ .p-suru--fan-bottom,
75
+ .p-suru--pyramid-left,
76
+ .p-suru--pyramid-right {
77
+ background-color: var(--vf-suru-background);
78
+ color: $colors--theme--text-default;
79
+
80
+ // same as %section-padding--default
81
+ padding-bottom: $spv--strip-regular * 0.5;
82
+
83
+ @media (min-width: $breakpoint-large) {
84
+ padding-bottom: $spv--strip-regular;
85
+ }
86
+
87
+ // padding top based on p-section--hero
88
+ // bottom padding not needed (as it's covered by the suru background image)
89
+ padding-top: $spv--large;
90
+
91
+ // on large screens, same as %section-padding--shallow
92
+ @media (min-width: $breakpoint-large) {
93
+ padding-top: $spv--x-large;
94
+ }
95
+ }
96
+
97
+ // only apply suru background images on large screens
98
+ @media (min-width: $breakpoint-large) {
99
+ .p-suru--fan-top,
100
+ .p-suru--fan-bottom,
101
+ .p-suru--pyramid-left,
102
+ .p-suru--pyramid-right {
103
+ min-height: $vf-suru-min-height;
104
+ }
105
+
106
+ .p-suru--fan-top,
107
+ .p-suru--fan-bottom {
108
+ background-image: var(--vf-suru-fan-top-right);
109
+ background-position: top right;
110
+ background-repeat: no-repeat;
111
+ background-size: 512px 385.5px; // based on image dimensions (2048x1542) scaled down by 0.25
112
+ }
113
+
114
+ .p-suru--fan-bottom {
115
+ background-image: var(--vf-suru-fan-bottom-right);
116
+ background-position: bottom right;
117
+ }
118
+
119
+ .p-suru--pyramid-right,
120
+ .p-suru--pyramid-left {
121
+ background-image: var(--vf-suru-pyramid-top-left);
122
+ background-position: top left;
123
+ background-repeat: no-repeat;
124
+ background-size: 354px 258.75px; // based on image dimensions (1380x1035) scaled down by 0.25
125
+ }
126
+
127
+ .p-suru--pyramid-right {
128
+ background-image: var(--vf-suru-pyramid-top-right);
129
+ background-position: top right;
14
130
  }
15
131
  }
16
132
  }
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  &:not(:first-child)::after {
67
- background-color: $color-mid-light;
67
+ background-color: $colors--theme--border-low-contrast;
68
68
  content: '';
69
69
  height: 1px;
70
70
  left: 0;
@@ -3,7 +3,7 @@
3
3
  @mixin vf-p-table-sortable {
4
4
  %heading-icon {
5
5
  $vertical-offset: 0.5px;
6
- @include vf-icon-chevron;
6
+ @include vf-icon-chevron-themed;
7
7
  @include vf-icon-size(map-get($icon-sizes, default));
8
8
 
9
9
  background: {
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  &[aria-sort]:hover {
42
- color: $color-link;
42
+ color: $colors--theme--link-default;
43
43
  text-decoration: underline;
44
44
  }
45
45
  }
@@ -17,6 +17,9 @@
17
17
  position: relative;
18
18
  white-space: nowrap;
19
19
  width: 100%;
20
+ &::after {
21
+ background-color: $colors--theme--border-default;
22
+ }
20
23
  }
21
24
 
22
25
  &__item {
@@ -38,9 +41,10 @@
38
41
  $button-disabled-border-color: $color-transparent
39
42
  );
40
43
  @include vf-highlight-bar(transparent, bottom, false);
41
-
42
44
  align-items: center;
45
+ background-color: transparent;
43
46
  border: none;
47
+ color: $colors--theme--text-default;
44
48
  display: flex;
45
49
  gap: $sph--small;
46
50
  height: 100%;
@@ -66,59 +70,19 @@
66
70
  }
67
71
  }
68
72
 
69
- &:active,
70
- &[aria-selected='true'] {
71
- // Hide the highlight when focussing (in combination with the parent
72
- // states) in browsers that don't support focus-visible.
73
- &:focus::before,
74
- &:focus::after {
75
- content: none;
76
- }
73
+ &:visited {
74
+ color: $colors--theme--text-default;
77
75
  }
78
- }
79
- }
80
-
81
- // Theming
82
- @if ($theme-default-p-tabs == 'dark') {
83
- .p-tabs {
84
- @include vf-p-tabs-dark-theme;
85
- }
86
-
87
- .p-tabs.is-light {
88
- @include vf-p-tabs-light-theme;
89
- }
90
- } @else {
91
- .p-tabs {
92
- @include vf-p-tabs-light-theme;
93
- }
94
-
95
- .p-tabs.is-dark {
96
- @include vf-p-tabs-dark-theme;
97
- }
98
- }
99
- }
100
76
 
101
- @mixin vf-p-tabs-theme($color-tabs-text, $color-tabs-border, $color-tabs-highlight-hover) {
102
- color: $color-tabs-text;
103
- .p-tabs {
104
- &__list::after {
105
- background-color: $color-tabs-border;
106
- }
107
-
108
- &__link {
109
- background-color: transparent;
110
-
111
- color: $color-tabs-text;
112
- @include vf-highlight-bar(transparent, bottom, false);
113
-
114
- // Display the highlight when focussing in modern browsers that support
77
+ // Display the highlight when focusing in modern browsers that support
115
78
  // focus-visible.
116
79
  &:focus:not(:focus-visible) {
117
- @include vf-highlight-bar($color-tabs-text, bottom, false);
80
+ @include vf-highlight-bar($colors--theme--text-default, bottom, false);
118
81
  }
119
82
 
120
83
  &:hover {
121
- @include vf-highlight-bar($color-tabs-highlight-hover, bottom, false);
84
+ background-color: transparent;
85
+ @include vf-highlight-bar($colors--theme--border-default, bottom, false);
122
86
 
123
87
  &::before,
124
88
  &:focus:not(:focus-visible)::before {
@@ -126,31 +90,32 @@
126
90
  height: calc($bar-thickness - 1px);
127
91
  }
128
92
 
129
- // Display the highlight when focussing (in combination with the parent
130
- // states) in modern browsers that support focus-visible.
131
- &:focus:not(:focus-visible) {
132
- @include vf-highlight-bar($color-tabs-highlight-hover, bottom, false);
133
- }
134
-
135
- // Hide the highlight when focussing (in combination with the parent
93
+ // Hide the highlight when focusing (in combination with the parent
136
94
  // states) in browsers that don't support focus-visible.
137
95
  &:focus::before,
138
96
  &:focus::after {
139
97
  content: none;
140
98
  }
99
+
100
+ // Display the highlight when focusing (in combination with the parent
101
+ // states) in modern browsers that support focus-visible.
102
+ &:focus:not(:focus-visible) {
103
+ @include vf-highlight-bar($colors--theme--border-default, bottom, false);
104
+ }
141
105
  }
142
106
 
143
107
  &:active,
144
108
  &[aria-selected='true'] {
145
- @include vf-highlight-bar($color-tabs-text, bottom, false);
109
+ background-color: transparent;
110
+ @include vf-highlight-bar($colors--theme--text-default, bottom, false);
146
111
 
147
- // Display the highlight when focussing (in combination with the parent
112
+ // Display the highlight when focusing (in combination with the parent
148
113
  // states) in modern browsers that support focus-visible.
149
114
  &:focus:not(:focus-visible) {
150
- @include vf-highlight-bar($color-tabs-text, bottom, false);
115
+ @include vf-highlight-bar($colors--theme--text-default, bottom, false);
151
116
  }
152
117
 
153
- // Hide the highlight when focussing (in combination with the parent
118
+ // Hide the highlight when focusing (in combination with the parent
154
119
  // states) in browsers that don't support focus-visible.
155
120
  &:focus::before,
156
121
  &:focus::after {
@@ -160,19 +125,3 @@
160
125
  }
161
126
  }
162
127
  }
163
-
164
- @mixin vf-p-tabs-light-theme {
165
- @include vf-p-tabs-theme(
166
- $color-tabs-text: $colors--light-theme--text-default,
167
- $color-tabs-border: $colors--light-theme--border-default,
168
- $color-tabs-highlight-hover: $colors--light-theme--border-default
169
- );
170
- }
171
-
172
- @mixin vf-p-tabs-dark-theme {
173
- @include vf-p-tabs-theme(
174
- $color-tabs-text: $colors--dark-theme--text-default,
175
- $color-tabs-border: $colors--dark-theme--border-default,
176
- $color-tabs-highlight-hover: $colors--dark-theme--border-default
177
- );
178
- }
@@ -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,6 +106,9 @@ $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;
107
114
  $colors--light-theme--background-inputs: adjust-color($color-x-dark, $lightness: 100% * (1 - $input-background-opacity-amount)) !default;
@@ -113,6 +120,10 @@ $colors--light-theme--border-default: rgba($color-x-dark, 0.2) !default;
113
120
  $colors--light-theme--border-high-contrast: rgba($color-x-dark, 0.56) !default;
114
121
  $colors--light-theme--border-low-contrast: rgba($color-x-dark, 0.1) !default;
115
122
 
123
+ $colors--light-theme--icon: $colors--light-theme--text-default !default;
124
+
125
+ $colors--light-theme--icon: $colors--light-theme--text-default !default;
126
+
116
127
  $colors-light-theme--tinted-backgrounds: (
117
128
  neutral: (
118
129
  default: #f2f2f2,
@@ -144,7 +155,7 @@ $colors-light-theme--tinted-backgrounds: (
144
155
  $colors-light-theme--tinted-borders: (
145
156
  neutral: $colors--light-theme--border-high-contrast,
146
157
  positive: $color-positive,
147
- caution: hsl(27deg 100% 39%),
158
+ caution: $color-caution,
148
159
  negative: $color-negative,
149
160
  information: $color-information,
150
161
  );
@@ -155,6 +166,9 @@ $colors--dark-theme--text-hover: hsl(0, 0%, 76%) !default; // minimum contrast o
155
166
  $colors--dark-theme--text-muted: rgba($colors--dark-theme--text-default, $muted-text-opacity-amount) !default;
156
167
  $colors--dark-theme--text-inactive: rgba($colors--dark-theme--text-default, $inactive-text-opacity-amount) !default;
157
168
 
169
+ $colors--dark-theme--link-default: $color-link-dark !default;
170
+ $colors--dark-theme--link-visited: $color-link-visited-dark !default;
171
+
158
172
  $colors--dark-theme--background-default: #262626 !default;
159
173
  $colors--dark-theme--background-alt: #2d2d2d !default;
160
174
  $colors--dark-theme--background-inputs: rgba($colors--dark-theme--text-default, $input-background-opacity-amount) !default;
@@ -166,6 +180,10 @@ $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
+
185
+ $colors--dark-theme--icon: $colors--dark-theme--text-default !default;
186
+
169
187
  $colors-dark-theme--tinted-backgrounds: (
170
188
  neutral: (
171
189
  default: rgba(255, 255, 255, 0.15),
@@ -207,6 +225,150 @@ $colors--paper-theme--background-inputs: rgba($color-x-dark, $input-background-o
207
225
  $colors--paper-theme--background-active: rgba($color-x-dark, $active-background-opacity-amount) !default;
208
226
  $colors--paper-theme--background-hover: rgba($color-x-dark, $hover-background-opacity-amount) !default;
209
227
 
228
+ // Current theme (based on CSS variables)
229
+ // This is a mapping between SCSS variable and it's CSS property equivalent.
230
+ // These SCSS variables should be used in components as colour values.
231
+ // See _base_themes.scss for CSS custom properties definitions.
232
+ $colors--theme--text-default: var(--vf-color-text-default);
233
+ $colors--theme--text-muted: var(--vf-color-text-muted);
234
+ $colors--theme--text-inactive: var(--vf-color-text-inactive);
235
+
236
+ $colors--theme--link-default: var(--vf-color-link-default);
237
+ $colors--theme--link-visited: var(--vf-color-link-visited);
238
+
239
+ $colors--theme--background-default: var(--vf-color-background-default);
240
+ $colors--theme--background-alt: var(--vf-color-background-alt);
241
+ $colors--theme--background-inputs: var(--vf-color-background-inputs);
242
+ $colors--theme--background-active: var(--vf-color-background-active);
243
+ $colors--theme--background-hover: var(--vf-color-background-hover);
244
+ $colors--theme--background-overlay: var(--vf-color-background-overlay);
245
+
246
+ $colors--theme--border-default: var(--vf-color-border-default);
247
+ $colors--theme--border-high-contrast: var(--vf-color-border-high-contrast);
248
+ $colors--theme--border-low-contrast: var(--vf-color-border-low-contrast);
249
+
250
+ $colors--theme--border-neutral: var(--vf-color-border-neutral);
251
+ $colors--theme--border-positive: var(--vf-color-border-positive);
252
+ $colors--theme--border-negative: var(--vf-color-border-negative);
253
+ $colors--theme--border-information: var(--vf-color-border-information);
254
+ $colors--theme--border-caution: var(--vf-color-border-caution);
255
+
256
+ $colors--theme--background-neutral-default: var(--vf-color-background-neutral-default);
257
+ $colors--theme--background-neutral-hover: var(--vf-color-background-neutral-hover);
258
+ $colors--theme--background-neutral-active: var(--vf-color-background-neutral-active);
259
+ $colors--theme--background-positive-default: var(--vf-color-background-positive-default);
260
+ $colors--theme--background-positive-hover: var(--vf-color-background-positive-hover);
261
+ $colors--theme--background-positive-active: var(--vf-color-background-positive-active);
262
+ $colors--theme--background-caution-default: var(--vf-color-background-caution-default);
263
+ $colors--theme--background-caution-hover: var(--vf-color-background-caution-hover);
264
+ $colors--theme--background-caution-active: var(--vf-color-background-caution-active);
265
+ $colors--theme--background-negative-default: var(--vf-color-background-negative-default);
266
+ $colors--theme--background-negative-hover: var(--vf-color-background-negative-hover);
267
+ $colors--theme--background-negative-active: var(--vf-color-background-negative-active);
268
+ $colors--theme--background-information-default: var(--vf-color-background-information-default);
269
+ $colors--theme--background-information-hover: var(--vf-color-background-information-hover);
270
+ $colors--theme--background-information-active: var(--vf-color-background-information-active);
271
+
272
+ // Theme colors exposed as CSS custom properties
273
+ @mixin vf-theme-light--colors {
274
+ // SCSS variables need to be interpolated to work in CSS custom properties
275
+ --vf-color-text-default: #{$colors--light-theme--text-default};
276
+ --vf-color-text-muted: #{$colors--light-theme--text-muted};
277
+ --vf-color-text-inactive: #{$colors--light-theme--text-inactive};
278
+
279
+ --vf-color-link-default: #{$colors--light-theme--link-default};
280
+ --vf-color-link-visited: #{$colors--light-theme--link-visited};
281
+
282
+ --vf-color-background-default: #{$colors--light-theme--background-default};
283
+ --vf-color-background-alt: #{$colors--light-theme--background-alt};
284
+ --vf-color-background-inputs: #{$colors--light-theme--background-inputs};
285
+ --vf-color-background-active: #{$colors--light-theme--background-active};
286
+ --vf-color-background-hover: #{$colors--light-theme--background-hover};
287
+ --vf-color-background-overlay: #{$colors--light-theme--background-overlay};
288
+
289
+ --vf-color-border-default: #{$colors--light-theme--border-default};
290
+ --vf-color-border-high-contrast: #{$colors--light-theme--border-high-contrast};
291
+ --vf-color-border-low-contrast: #{$colors--light-theme--border-low-contrast};
292
+
293
+ --vf-color-border-neutral: #{map-get($colors-light-theme--tinted-borders, neutral)};
294
+ --vf-color-border-positive: #{map-get($colors-light-theme--tinted-borders, positive)};
295
+ --vf-color-border-negative: #{map-get($colors-light-theme--tinted-borders, negative)};
296
+ --vf-color-border-information: #{map-get($colors-light-theme--tinted-borders, information)};
297
+ --vf-color-border-caution: #{map-get($colors-light-theme--tinted-borders, caution)};
298
+
299
+ --vf-color-background-neutral-default: #{map-get($colors-light-theme--tinted-backgrounds, neutral, default)};
300
+ --vf-color-background-neutral-hover: #{map-get($colors-light-theme--tinted-backgrounds, neutral, 'hover')};
301
+ --vf-color-background-neutral-active: #{map-get($colors-light-theme--tinted-backgrounds, neutral, active)};
302
+ --vf-color-background-positive-default: #{map-get($colors-light-theme--tinted-backgrounds, positive, default)};
303
+ --vf-color-background-positive-hover: #{map-get($colors-light-theme--tinted-backgrounds, positive, 'hover')};
304
+ --vf-color-background-positive-active: #{map-get($colors-light-theme--tinted-backgrounds, positive, active)};
305
+ --vf-color-background-caution-default: #{map-get($colors-light-theme--tinted-backgrounds, caution, default)};
306
+ --vf-color-background-caution-hover: #{map-get($colors-light-theme--tinted-backgrounds, caution, 'hover')};
307
+ --vf-color-background-caution-active: #{map-get($colors-light-theme--tinted-backgrounds, caution, active)};
308
+ --vf-color-background-negative-default: #{map-get($colors-light-theme--tinted-backgrounds, negative, default)};
309
+ --vf-color-background-negative-hover: #{map-get($colors-light-theme--tinted-backgrounds, negative, 'hover')};
310
+ --vf-color-background-negative-active: #{map-get($colors-light-theme--tinted-backgrounds, negative, active)};
311
+ --vf-color-background-information-default: #{map-get($colors-light-theme--tinted-backgrounds, information, default)};
312
+ --vf-color-background-information-hover: #{map-get($colors-light-theme--tinted-backgrounds, information, 'hover')};
313
+ --vf-color-background-information-active: #{map-get($colors-light-theme--tinted-backgrounds, information, active)};
314
+ }
315
+
316
+ @mixin vf-theme-dark--colors {
317
+ // SCSS variables need to be interpolated to work in CSS custom properties
318
+ --vf-color-text-default: #{$colors--dark-theme--text-default};
319
+ --vf-color-text-muted: #{$colors--dark-theme--text-muted};
320
+ --vf-color-text-inactive: #{$colors--dark-theme--text-inactive};
321
+
322
+ --vf-color-link-default: #{$colors--dark-theme--link-default};
323
+ --vf-color-link-visited: #{$colors--dark-theme--link-visited};
324
+
325
+ --vf-color-background-default: #{$colors--dark-theme--background-default};
326
+ --vf-color-background-alt: #{$colors--dark-theme--background-alt};
327
+ --vf-color-background-inputs: #{$colors--dark-theme--background-inputs};
328
+ --vf-color-background-active: #{$colors--dark-theme--background-active};
329
+ --vf-color-background-hover: #{$colors--dark-theme--background-hover};
330
+ --vf-color-background-overlay: #{$colors--dark-theme--background-overlay};
331
+
332
+ --vf-color-border-default: #{$colors--dark-theme--border-default};
333
+ --vf-color-border-high-contrast: #{$colors--dark-theme--border-high-contrast};
334
+ --vf-color-border-low-contrast: #{$colors--dark-theme--border-low-contrast};
335
+
336
+ --vf-color-border-neutral: #{map-get($colors-dark-theme--tinted-borders, neutral)};
337
+ --vf-color-border-positive: #{map-get($colors-dark-theme--tinted-borders, positive)};
338
+ --vf-color-border-negative: #{map-get($colors-dark-theme--tinted-borders, negative)};
339
+ --vf-color-border-information: #{map-get($colors-dark-theme--tinted-borders, information)};
340
+ --vf-color-border-caution: #{map-get($colors-dark-theme--tinted-borders, caution)};
341
+
342
+ --vf-color-background-neutral-default: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, default)};
343
+ --vf-color-background-neutral-hover: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, hover)};
344
+ --vf-color-background-neutral-active: #{map-get($colors-dark-theme--tinted-backgrounds, neutral, active)};
345
+ --vf-color-background-positive-default: #{map-get($colors-dark-theme--tinted-backgrounds, positive, default)};
346
+ --vf-color-background-positive-hover: #{map-get($colors-dark-theme--tinted-backgrounds, positive, hover)};
347
+ --vf-color-background-positive-active: #{map-get($colors-dark-theme--tinted-backgrounds, positive, active)};
348
+ --vf-color-background-caution-default: #{map-get($colors-dark-theme--tinted-backgrounds, caution, default)};
349
+ --vf-color-background-caution-hover: #{map-get($colors-dark-theme--tinted-backgrounds, caution, hover)};
350
+ --vf-color-background-caution-active: #{map-get($colors-dark-theme--tinted-backgrounds, caution, active)};
351
+ --vf-color-background-negative-default: #{map-get($colors-dark-theme--tinted-backgrounds, negative, default)};
352
+ --vf-color-background-negative-hover: #{map-get($colors-dark-theme--tinted-backgrounds, negative, hover)};
353
+ --vf-color-background-negative-active: #{map-get($colors-dark-theme--tinted-backgrounds, negative, active)};
354
+ --vf-color-background-information-default: #{map-get($colors-dark-theme--tinted-backgrounds, information, default)};
355
+ --vf-color-background-information-hover: #{map-get($colors-dark-theme--tinted-backgrounds, information, hover)};
356
+ --vf-color-background-information-active: #{map-get($colors-dark-theme--tinted-backgrounds, information, active)};
357
+ }
358
+
359
+ @mixin vf-theme-paper--colors {
360
+ // paper theme is based on light theme with some background colours adjusted
361
+ @include vf-theme-light--colors;
362
+
363
+ // SCSS variables need to be interpolated to work in CSS custom properties
364
+ --vf-color-background-default: #{$color-paper};
365
+ --vf-color-background-alt: #{$color-x-light};
366
+
367
+ --vf-color-background-inputs: #{$colors--paper-theme--background-inputs};
368
+ --vf-color-background-active: #{$colors--paper-theme--background-active};
369
+ --vf-color-background-hover: #{$colors--paper-theme--background-hover};
370
+ }
371
+
210
372
  // Branding colors
211
373
  $color-ubuntu: #e95420; // Ubuntu orange, should not be overridden
212
374
  $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