vanilla-framework 3.8.2 → 3.10.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 (38) hide show
  1. package/package.json +8 -8
  2. package/scss/_base_button.scss +6 -7
  3. package/scss/_base_code.scss +3 -3
  4. package/scss/_base_fontfaces.scss +40 -147
  5. package/scss/_base_forms-range.scss +1 -1
  6. package/scss/_base_forms.scss +25 -12
  7. package/scss/_base_hr.scss +7 -7
  8. package/scss/_base_icon-definitions.scss +4 -0
  9. package/scss/_base_placeholders.scss +3 -3
  10. package/scss/_layouts_fluid-breakout.scss +2 -2
  11. package/scss/_patterns_card.scss +1 -1
  12. package/scss/_patterns_chip.scss +3 -3
  13. package/scss/_patterns_contextual-menu.scss +2 -2
  14. package/scss/_patterns_form-tick-elements.scss +11 -7
  15. package/scss/_patterns_form-validation.scss +31 -4
  16. package/scss/_patterns_icons.scss +115 -103
  17. package/scss/_patterns_links.scss +1 -1
  18. package/scss/_patterns_lists.scss +4 -4
  19. package/scss/_patterns_logo-section.scss +4 -4
  20. package/scss/_patterns_matrix.scss +2 -2
  21. package/scss/_patterns_modal.scss +2 -2
  22. package/scss/_patterns_navigation.scss +5 -5
  23. package/scss/_patterns_notifications.scss +2 -2
  24. package/scss/_patterns_search-and-filter.scss +5 -4
  25. package/scss/_patterns_search-box.scss +9 -7
  26. package/scss/_patterns_segmented-control.scss +1 -1
  27. package/scss/_patterns_side-navigation.scss +1 -1
  28. package/scss/_patterns_strip.scss +2 -2
  29. package/scss/_patterns_switch.scss +2 -2
  30. package/scss/_patterns_table-sortable.scss +2 -2
  31. package/scss/_settings_colors.scss +16 -1
  32. package/scss/_settings_font.scss +4 -5
  33. package/scss/_settings_grid.scss +1 -1
  34. package/scss/_settings_placeholders.scss +2 -2
  35. package/scss/_settings_spacing.scss +1 -1
  36. package/scss/_utilities_font-metrics.scss +5 -5
  37. package/scss/_utilities_margin-collapse.scss +1 -1
  38. package/scss/_utilities_vertical-spacing.scss +1 -1
package/package.json CHANGED
@@ -47,7 +47,7 @@
47
47
  "percy": "percy exec -- node snapshots.js",
48
48
  "icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
49
49
  },
50
- "version": "3.8.2",
50
+ "version": "3.10.0",
51
51
  "files": [
52
52
  "_index.scss",
53
53
  "/scss",
@@ -58,22 +58,22 @@
58
58
  "@canonical/cookie-policy": "3.4.0",
59
59
  "@canonical/latest-news": "1.4.1",
60
60
  "autoprefixer": "10.4.13",
61
- "postcss": "8.4.18",
61
+ "postcss": "8.4.21",
62
62
  "postcss-cli": "9.1.0",
63
- "postcss-scss": "4.0.5",
64
- "sass": "1.56.0",
63
+ "postcss-scss": "4.0.6",
64
+ "sass": "1.57.1",
65
65
  "yaml": "1.10.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@percy/script": "1.1.0",
69
- "@testing-library/cypress": "8.0.3",
69
+ "@testing-library/cypress": "8.0.7",
70
70
  "cypress": "10.11.0",
71
71
  "get-site-urls": "3.0.0",
72
72
  "markdown-spellcheck": "1.3.1",
73
73
  "parker": "0.0.10",
74
- "prettier": "2.7.1",
75
- "stylelint": "14.14.1",
76
- "stylelint-config-prettier": "9.0.3",
74
+ "prettier": "2.8.2",
75
+ "stylelint": "14.16.1",
76
+ "stylelint-config-prettier": "9.0.4",
77
77
  "stylelint-config-recommended-scss": "5.0.2",
78
78
  "stylelint-order": "5.0.0",
79
79
  "stylelint-prettier": "2.0.0",
@@ -9,17 +9,16 @@
9
9
  }
10
10
 
11
11
  %vf-button-dense-vertical-padding {
12
- padding-bottom: calc(#{$spv-nudge - $sp-unit * 0.5} - 1px);
13
- padding-top: calc(#{$spv-nudge - $sp-unit * 0.5} - 1px);
12
+ padding-bottom: calc($spv-nudge - $sp-unit * 0.5 - $input-border-thickness);
13
+ padding-top: calc($spv-nudge - $sp-unit * 0.5 - $input-border-thickness);
14
14
  }
15
15
 
16
16
  %vf-button-base {
17
17
  @include vf-transition(#{background-color, border-color}, snap, in);
18
18
  @include vf-focus;
19
19
 
20
- border-radius: $border-radius;
21
20
  border-style: solid;
22
- border-width: 1px;
21
+ border-width: $input-border-thickness;
23
22
  cursor: pointer;
24
23
  display: inline-block;
25
24
  font-size: 1rem;
@@ -57,13 +56,13 @@
57
56
  font-size: #{map-get($font-sizes, small)}rem;
58
57
  line-height: map-get($line-heights, small);
59
58
  margin-bottom: $input-margin-bottom - $sp-unit;
60
- padding: calc(#{map-get($nudges, small)} - 1px) $sph--small;
59
+ padding: calc(map-get($nudges, small) - $input-border-thickness) $sph--small;
61
60
  }
62
61
 
63
62
  &.is-small.is-dense {
64
63
  margin-bottom: $spv-nudge-compensation;
65
- padding-bottom: calc(#{$spv-nudge - $sp-unit * 0.5} - 1px);
66
- padding-top: calc(#{$spv-nudge - $sp-unit * 0.5} - 1px);
64
+ padding-bottom: calc($spv-nudge - $sp-unit * 0.5 - $input-border-thickness);
65
+ padding-top: calc($spv-nudge - $sp-unit * 0.5 - $input-border-thickness);
67
66
  }
68
67
 
69
68
  // The following rules address buttons nested in <p>'s;
@@ -2,7 +2,7 @@
2
2
 
3
3
  $color-pre-bg: rgba($color-x-dark, 0.03);
4
4
  $digit-width: 1ch; // measured width of one character in the monospaced font
5
- $code-sidebar-width: calc(#{$sph--large} + (4 * #{$digit-width})) !default;
5
+ $code-sidebar-width: calc($sph--large + (4 * $digit-width)) !default;
6
6
  $code-inline-padding: 0.25rem;
7
7
 
8
8
  // Base code styles
@@ -30,7 +30,7 @@ $code-inline-padding: 0.25rem;
30
30
  box-decoration-break: slice;
31
31
  color: inherit;
32
32
  line-height: map-get($line-heights, default-text) - $code-inline-padding;
33
- padding: calc(#{$code-inline-padding} - 1px) $code-inline-padding;
33
+ padding: calc($code-inline-padding - $input-border-thickness) $code-inline-padding;
34
34
  }
35
35
 
36
36
  code,
@@ -124,7 +124,7 @@ $code-inline-padding: 0.25rem;
124
124
  user-select: none;
125
125
  // We're adding a negative left position above of $digit-width,
126
126
  // so the width here needs to take that into account
127
- width: calc(#{$code-sidebar-width} + #{$digit-width});
127
+ width: calc($code-sidebar-width + $digit-width);
128
128
  }
129
129
  }
130
130
  }
@@ -1,187 +1,80 @@
1
1
  @mixin vf-b-typography-fontfaces {
2
2
  @at-root {
3
3
  @if str-index($font-base-family, 'Ubuntu') {
4
- @if $font-use-subset-latin {
5
- @font-face {
6
- font-display: $font-display-option;
7
- font-family: 'Ubuntu';
8
- font-style: normal;
9
- font-weight: $font-weight-regular-text;
10
- src: url('#{$assets-path}46ed6870-Ubuntu-L-subset.woff2') format('woff2'), url('#{$assets-path}4070835e-Ubuntu-L-subset.woff') format('woff');
11
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
12
- }
13
-
14
- @font-face {
15
- font-display: $font-display-option;
16
- font-family: 'Ubuntu';
17
- font-style: normal;
18
- font-weight: $font-weight-bold;
19
- src: url('#{$assets-path}0c7b8dc0-Ubuntu-R-subset.woff2') format('woff2'), url('#{$assets-path}ef4d35ed-Ubuntu-R-subset.woff') format('woff');
20
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
21
- }
22
-
23
- @font-face {
24
- font-display: $font-display-option;
25
- font-family: 'Ubuntu';
26
- font-style: italic;
27
- font-weight: $font-weight-regular-text;
28
- src: url('#{$assets-path}6113b69a-Ubuntu-LI-subset.woff2') format('woff2'), url('#{$assets-path}56a10e22-Ubuntu-LI-subset.woff') format('woff');
29
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
30
- }
31
-
32
- @font-face {
33
- font-display: $font-display-option;
34
- font-family: 'Ubuntu';
35
- font-style: italic;
36
- font-weight: $font-weight-bold;
37
- src: url('#{$assets-path}fd4ec0c7-Ubuntu-RI-subset.woff2') format('woff2'), url('#{$assets-path}89be6515-Ubuntu-RI-subset.woff') format('woff');
38
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
39
- }
40
-
41
- @font-face {
42
- font-display: $font-display-option;
43
- font-family: 'Ubuntu';
44
- font-style: normal;
45
- font-weight: $font-weight-display-heading;
46
- src: url('#{$assets-path}3baab91b-Ubuntu-Th-subset.woff2') format('woff2'), url('#{$assets-path}cb89e3ac-Ubuntu-Th-subset.woff') format('woff');
47
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
48
- }
49
-
50
- @font-face {
51
- font-display: $font-display-option;
52
- font-family: 'Ubuntu Mono';
53
- font-style: normal;
54
- font-weight: $font-weight-regular-text;
55
- src: url('#{$assets-path}a6c34b5d-UbuntuMono-R-subset.woff2') format('woff2'), url('#{$assets-path}e6daa284-UbuntuMono-R-subset.woff') format('woff');
56
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
57
- }
58
-
59
- @font-face {
60
- font-display: $font-display-option;
61
- font-family: 'Ubuntu Mono';
62
- font-style: normal;
63
- font-weight: $font-weight-bold;
64
- src: url('#{$assets-path}a662364d-UbuntuMono-B-subset.woff2') format('woff2'), url('#{$assets-path}22f97dd9-UbuntuMono-B-subset.woff') format('woff');
65
- unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
66
- }
67
- } @else {
68
- @font-face {
69
- font-display: $font-display-option;
70
- font-family: 'Ubuntu';
71
- font-style: normal;
72
- font-weight: $font-weight-regular-text;
73
- src: url('#{$assets-path}e8c07df6-Ubuntu-L_W.woff2') format('woff2'), url('#{$assets-path}8619add2-Ubuntu-L_W.woff') format('woff');
74
- }
75
-
76
- @font-face {
77
- font-display: $font-display-option;
78
- font-family: 'Ubuntu';
79
- font-style: normal;
80
- font-weight: $font-weight-bold;
81
- src: url('#{$assets-path}fff37993-Ubuntu-R_W.woff2') format('woff2'), url('#{$assets-path}7af50859-Ubuntu-R_W.woff') format('woff');
82
- }
83
-
84
- @font-face {
85
- font-display: $font-display-option;
86
- font-family: 'Ubuntu';
87
- font-style: italic;
88
- font-weight: $font-weight-regular-text;
89
- src: url('#{$assets-path}f8097dea-Ubuntu-LI_W.woff2') format('woff2'), url('#{$assets-path}8be89d02-Ubuntu-LI_W.woff') format('woff');
90
- }
91
-
92
- @font-face {
93
- font-display: $font-display-option;
94
- font-family: 'Ubuntu';
95
- font-style: italic;
96
- font-weight: $font-weight-bold;
97
- src: url('#{$assets-path}fca66073-ubuntu-ri-webfont.woff2') format('woff2'), url('#{$assets-path}f0898c72-ubuntu-ri-webfont.woff') format('woff');
98
- }
99
-
100
- @font-face {
101
- font-display: $font-display-option;
102
- font-family: 'Ubuntu';
103
- font-style: normal;
104
- font-weight: $font-weight-display-heading;
105
- src: url('#{$assets-path}7f100985-Ubuntu-Th_W.woff2') format('woff2'), url('#{$assets-path}502cc3a1-Ubuntu-Th_W.woff') format('woff');
106
- }
4
+ // Default font-display option
5
+ @font-face {
6
+ font-family: 'Ubuntu variable';
7
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
8
+ font-style: normal;
9
+ font-weight: 100 800; /* min and max value for the weight axis */
10
+ src: url('#{$assets-path}f3b9cc97-Ubuntu[wdth,wght]-latin.woff2') format('woff2-variations');
11
+ }
107
12
 
108
- @font-face {
109
- font-display: $font-display-option;
110
- font-family: 'Ubuntu Mono';
111
- font-style: normal;
112
- font-weight: $font-weight-regular-text;
113
- src: url('#{$assets-path}fdd692b9-UbuntuMono-R_W.woff2') format('woff2'), url('#{$assets-path}85edb898-UbuntuMono-R_W.woff') format('woff');
114
- }
13
+ @font-face {
14
+ font-family: 'Ubuntu variable';
15
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
16
+ font-style: italic;
17
+ font-weight: 100 800; /* min and max value for the weight axis */
18
+ src: url('#{$assets-path}c1b12cdf-Ubuntu-Italic[wdth,wght]-latin.woff2') format('woff2-variations');
19
+ }
115
20
 
116
- @font-face {
117
- font-display: $font-display-option;
118
- font-family: 'Ubuntu Mono';
119
- font-style: normal;
120
- font-weight: $font-weight-bold;
121
- src: url('#{$assets-path}dd4acb63-UbuntuMono-B.woff2') format('woff2'), url('#{$assets-path}e8e36b19-UbuntuMono-B.woff') format('woff');
122
- }
21
+ @font-face {
22
+ font-family: 'Ubuntu Mono variable';
23
+ font-style: normal;
24
+ font-weight: 100 800; /* min and max value for the weight axis */
25
+ src: url('#{$assets-path}0bd4277a-UbuntuMono[wght]-latin.woff2') format('woff2-variations');
123
26
  }
124
27
 
125
28
  @if $font-allow-cyrillic-greek-latin {
126
29
  // cyrillic-ext
127
30
  @font-face {
128
- font-display: $font-display-option;
129
- font-family: 'Ubuntu';
31
+ font-family: 'Ubuntu variable';
32
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
130
33
  font-style: normal;
131
- font-weight: $font-weight-regular-text;
132
- src: url('#{$assets-path}8aba5b6f-Ubuntu-L-cyrillic-ext-subset.woff2') format('woff2'), url('#{$assets-path}55e29aa9-Ubuntu-L-cyrillic-ext-subset.woff') format('woff');
34
+ font-weight: 100 800; /* min and max value for the weight axis */
35
+ src: url('#{$assets-path}7d55b1fc-Ubuntu[wdth,wght]-cyrillic-extended.woff2') format('woff2-variations');
133
36
  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
134
37
  }
135
38
 
136
39
  // cyrillic
137
40
  @font-face {
138
- font-display: $font-display-option;
139
- font-family: 'Ubuntu';
41
+ font-family: 'Ubuntu variable';
42
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
140
43
  font-style: normal;
141
- font-weight: $font-weight-regular-text;
142
- src: url('#{$assets-path}5bea8279-Ubuntu-L-cyrillic-subset.woff2') format('woff2'), url('#{$assets-path}b8058442-Ubuntu-L-cyrillic-subset.woff') format('woff');
44
+ font-weight: 100 800; /* min and max value for the weight axis */
45
+ src: url('#{$assets-path}086e42aa-Ubuntu[wdth,wght]-cyrillic.woff2') format('woff2-variations');
143
46
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
144
47
  }
145
48
 
146
49
  // greek-ext
147
50
  @font-face {
148
- font-display: $font-display-option;
149
- font-family: 'Ubuntu';
51
+ font-family: 'Ubuntu variable';
52
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
150
53
  font-style: normal;
151
- font-weight: $font-weight-regular-text;
152
- src: url('#{$assets-path}a6dcff6e-Ubuntu-L-greek-ext-subset.woff2') format('woff2'), url('#{$assets-path}496f3bda-Ubuntu-L-greek-ext-subset.woff') format('woff');
54
+ font-weight: 100 800; /* min and max value for the weight axis */
55
+ src: url('#{$assets-path}77e5f6a2-Ubuntu[wdth,wght]-greek-extended.woff2') format('woff2-variations');
153
56
  unicode-range: U+1F00-1FFF;
154
57
  }
155
58
 
156
59
  // greek
157
60
  @font-face {
158
- font-display: $font-display-option;
159
- font-family: 'Ubuntu';
61
+ font-family: 'Ubuntu variable';
62
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
160
63
  font-style: normal;
161
- font-weight: $font-weight-regular-text;
162
- src: url('#{$assets-path}b7ba71af-Ubuntu-L-greek-subset.woff2') format('woff2'), url('#{$assets-path}b864c12e-Ubuntu-L-greek-subset.woff') format('woff');
64
+ font-weight: 100 800; /* min and max value for the weight axis */
65
+ src: url('#{$assets-path}57fdffc1-Ubuntu[wdth,wght]-greek.woff2') format('woff2-variations');
163
66
  unicode-range: U+0370-03FF;
164
67
  }
165
68
 
166
69
  // latin-ext
167
70
  @font-face {
168
- font-display: $font-display-option;
169
- font-family: 'Ubuntu';
71
+ font-family: 'Ubuntu variable';
72
+ font-stretch: 100%; /* min and max value for the width axis, expressed as percentage */
170
73
  font-style: normal;
171
- font-weight: $font-weight-regular-text;
172
- src: url('#{$assets-path}98e516d3-Ubuntu-L-latin-ext-subset.woff2') format('woff2'), url('#{$assets-path}11a74839-Ubuntu-L-latin-ext-subset.woff') format('woff');
74
+ font-weight: 100 800; /* min and max value for the weight axis */
75
+ src: url('#{$assets-path}a312a7ed-Ubuntu[wdth,wght]-latin-extended.woff2') format('woff2-variations');
173
76
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
174
77
  }
175
-
176
- // latin
177
- @font-face {
178
- font-display: $font-display-option;
179
- font-family: 'Ubuntu';
180
- font-style: normal;
181
- font-weight: $font-weight-regular-text;
182
- src: url('#{$assets-path}317bd676-Ubuntu-L-latin-subset.woff2') format('woff2'), url('#{$assets-path}c09862e1-Ubuntu-L-latin-subset.woff') format('woff');
183
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
184
- }
185
78
  }
186
79
  }
187
80
  }
@@ -2,7 +2,7 @@
2
2
  $thumb-shadow: 0 0 $bar-thickness 1px rgba(0, 0, 0, 0.2);
3
3
  $thumb-size: 1rem;
4
4
  $thumb-radius: 50%;
5
- $thumb-border: 1px solid $color-mid-dark;
5
+ $thumb-border: $input-border-thickness solid $color-mid-dark;
6
6
  $track-height: $bar-thickness;
7
7
  $track-radius: $bar-thickness;
8
8
 
@@ -4,7 +4,6 @@
4
4
  // Form element styles
5
5
  @mixin vf-b-forms {
6
6
  @include vf-b-range;
7
-
8
7
  // Used in buttons, inputs
9
8
  %bordered-text-vertical-padding {
10
9
  padding-bottom: $input-vertical-padding;
@@ -15,17 +14,17 @@
15
14
  %vf-input-elements {
16
15
  @extend %bordered-text-vertical-padding;
17
16
  @include vf-focus($color-focus, $bar-thickness, true);
17
+ @include vf-animation(#{background-color}, fast);
18
18
 
19
19
  // stylelint-disable property-no-vendor-prefix
20
20
  -webkit-appearance: textfield;
21
21
  -moz-appearance: textfield;
22
22
  appearance: textfield;
23
23
  // stylelint-enable property-no-vendor-prefix
24
-
25
- background-color: $color-x-light;
26
- border: 1px solid $colors--light-theme--border-high-contrast;
24
+ background-color: $colors--light-theme--background-inputs;
25
+ border: 0 solid transparent;
26
+ border-bottom: $input-border-thickness solid $colors--light-theme--text-default;
27
27
  border-radius: 0;
28
- box-shadow: inset 0 1px 1px $color-input-shadow;
29
28
  color: $color-dark;
30
29
  font-family: unquote($font-base-family);
31
30
  font-size: 1rem;
@@ -38,10 +37,19 @@
38
37
  vertical-align: baseline;
39
38
  width: 100%;
40
39
 
40
+ &:hover {
41
+ background-color: $colors--light-theme--background-hover;
42
+ }
43
+
44
+ &:active,
45
+ &:focus {
46
+ background-color: $colors--light-theme--background-active;
47
+ }
48
+
41
49
  &.is-dense {
42
50
  margin: 0 0 $spv-nudge-compensation 0;
43
- padding-bottom: calc(#{$spv-nudge - $spv--x-small} - 1px);
44
- padding-top: calc(#{$spv-nudge - $spv--x-small} - 1px);
51
+ padding-bottom: calc($spv-nudge - $spv--x-small - $input-border-thickness);
52
+ padding-top: calc($spv-nudge - $spv--x-small - $input-border-thickness);
45
53
  }
46
54
 
47
55
  &[disabled],
@@ -56,7 +64,7 @@
56
64
 
57
65
  @each $state, $color in $states {
58
66
  &.has-#{$state} {
59
- border: 1px solid $color;
67
+ border: $input-border-thickness solid $color;
60
68
  }
61
69
  }
62
70
  }
@@ -166,14 +174,14 @@
166
174
  -webkit-appearance: none;
167
175
  appearance: none;
168
176
  // stylelint-enable property-no-vendor-prefix
169
- background-color: $color-x-light;
177
+ background-color: $colors--light-theme--background-hover;
170
178
  background-position: right $sph--small center;
171
179
  background-repeat: no-repeat;
172
180
  background-size: map-get($icon-sizes, default);
173
181
  box-shadow: none;
174
182
  color: $color-dark;
175
183
  min-height: map-get($line-heights, default-text);
176
- padding-right: calc(#{$default-icon-size} + #{2 * $sph--small});
184
+ padding-right: calc($default-icon-size + 2 * $sph--small);
177
185
  text-indent: 0.01px;
178
186
  text-overflow: '';
179
187
 
@@ -181,6 +189,10 @@
181
189
  cursor: pointer;
182
190
  }
183
191
 
192
+ option {
193
+ background-color: white;
194
+ }
195
+
184
196
  &[multiple],
185
197
  &[size] {
186
198
  background-image: none;
@@ -188,8 +200,9 @@
188
200
  height: auto;
189
201
 
190
202
  option {
203
+ background-color: $colors--light-theme--background-hover;
191
204
  font-weight: $font-weight-regular-text;
192
- line-height: calc(#{$sp-unit * 2} - 2px);
205
+ line-height: calc($sp-unit * 2 - 2px);
193
206
  padding: $spv--x-small 0;
194
207
  }
195
208
  }
@@ -212,7 +225,7 @@
212
225
 
213
226
  margin-left: 0;
214
227
  margin-right: 0;
215
- padding: calc(#{$spv--large} - 1px);
228
+ padding: calc($spv--large - $input-border-thickness);
216
229
  }
217
230
  // stylelint-enable selector-max-type
218
231
  }
@@ -6,7 +6,7 @@
6
6
  hr {
7
7
  @extend %hr;
8
8
 
9
- margin-bottom: calc(#{$spv--small} - 1px);
9
+ margin-bottom: calc($spv--small - $input-border-thickness);
10
10
 
11
11
  &.u-no-margin--bottom {
12
12
  // compensate for hr thickness, to make sure it doesn't drift from baseline grid
@@ -20,17 +20,17 @@
20
20
  &.is-fixed-width {
21
21
  margin-left: auto;
22
22
  margin-right: auto;
23
- max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths, small)});
24
- width: calc(100% - #{2 * map-get($grid-margin-widths, small)});
23
+ max-width: calc($grid-max-width - 2 * map-get($grid-margin-widths, small));
24
+ width: calc(100% - 2 * map-get($grid-margin-widths, small));
25
25
 
26
26
  @media (min-width: $threshold-4-6-col) {
27
- max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths, default)});
28
- width: calc(100% - #{2 * map-get($grid-margin-widths, default)});
27
+ max-width: calc($grid-max-width - 2 * map-get($grid-margin-widths, default));
28
+ width: calc(100% - 2 * map-get($grid-margin-widths, default));
29
29
  }
30
30
 
31
31
  @media (min-width: $threshold-6-12-col) {
32
- max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths, default)});
33
- width: calc(100% - #{2 * map-get($grid-margin-widths, default)});
32
+ max-width: calc($grid-max-width - 2 * map-get($grid-margin-widths, default));
33
+ width: calc(100% - 2 * map-get($grid-margin-widths, default));
34
34
  }
35
35
 
36
36
  .row &,
@@ -481,3 +481,7 @@
481
481
  @mixin vf-icon-linux-prompt($color) {
482
482
  background-image: url("data:image/svg+xml,%3Csvg width='16px' height='16px' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='dollar-sign' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M8.85063291,15 L8.85063291,13.1075949 C9.73924051,12.9978903 10.3974684,12.7181434 10.8253165,12.2683544 C11.2531646,11.8185654 11.4670886,11.2700422 11.4670886,10.6227848 C11.4670886,10.1949367 11.3875528,9.82742616 11.228481,9.52025316 C11.0694092,9.21308017 10.8582278,8.94978903 10.5949367,8.73037975 C10.3316456,8.51097047 10.0244726,8.32172996 9.67341772,8.16265823 C9.32236287,8.00358649 8.96033756,7.85274262 8.58734177,7.71012658 C8.29113924,7.60042194 8.02510548,7.49620253 7.78924051,7.39746835 C7.55337553,7.29873418 7.34767933,7.18902953 7.1721519,7.06835443 C6.99662447,6.94767933 6.86223629,6.81054852 6.76898734,6.65696203 C6.67573839,6.50337553 6.62911392,6.31139241 6.62911392,6.08101266 C6.62911392,5.66413502 6.78544304,5.34599156 7.09810127,5.12658228 C7.41075949,4.907173 7.86329114,4.79746835 8.4556962,4.79746835 C8.99324895,4.79746835 9.43755275,4.84409282 9.78860759,4.93734177 C10.1396624,5.03059072 10.4303797,5.12109705 10.6607595,5.20886076 L10.9405063,4.05696203 C10.7210971,3.96919832 10.4276371,3.88417722 10.0601266,3.80189873 C9.69261604,3.71962025 9.28945148,3.66751055 8.85063291,3.64556962 L8.85063291,2 L7.63291139,2 L7.63291139,3.69493671 C6.84303797,3.81561181 6.23966244,4.09535865 5.82278481,4.53417722 C5.40590718,4.97299578 5.19746835,5.54345991 5.19746835,6.24556962 C5.19746835,6.64050633 5.26877637,6.97236287 5.41139241,7.24113924 C5.55400844,7.50991561 5.73776371,7.74029536 5.96265823,7.93227848 C6.18755275,8.12426161 6.44535865,8.28607595 6.73607595,8.41772152 C7.02679325,8.54936709 7.32025316,8.67004219 7.6164557,8.77974684 C7.9236287,8.88945148 8.21983123,9.00189873 8.50506329,9.11708861 C8.79029536,9.23227848 9.04535865,9.36392405 9.27025316,9.51202532 C9.49514768,9.66012658 9.67341772,9.83016877 9.80506329,10.0221519 C9.93670886,10.214135 10.0025316,10.4472574 10.0025316,10.721519 C10.0025316,10.9080169 9.96962025,11.0808017 9.90379747,11.2398734 C9.83797468,11.3989452 9.72827004,11.5360759 9.57468354,11.6512658 C9.42109705,11.7664557 9.20991561,11.8542194 8.94113924,11.914557 C8.67236287,11.9748945 8.34050633,12.0050633 7.94556962,12.0050633 C7.33122363,12.0050633 6.82109705,11.9419832 6.41518987,11.8158228 C6.0092827,11.6896624 5.65822785,11.5552743 5.36202532,11.4126582 L5,12.5481013 C5.20843882,12.6687763 5.52658228,12.7949367 5.95443038,12.9265823 C6.38227848,13.0582278 6.94177215,13.1350211 7.63291139,13.156962 L7.63291139,15 L8.85063291,15 Z' id='$' fill='#{vf-url-friendly-color($color)}' fill-rule='nonzero'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
483
483
  }
484
+
485
+ @mixin vf-icon-desktop($color) {
486
+ background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='desktop-2'%3E%3Crect width='16' height='16' /%3E%3Cpath id='Union' fill-rule='evenodd' clip-rule='evenodd' d='M2.5 3.5H13.5V10.5H2.5L2.5 3.5ZM1 3.5C1 2.67157 1.67157 2 2.5 2H13.5C14.3284 2 15 2.67157 15 3.5V10.5C15 11.3284 14.3284 12 13.5 12H8.75V13.25H11V14.75H5V13.25H7.25V12H2.5C1.67157 12 1 11.3284 1 10.5V3.5Z' fill='#{vf-url-friendly-color($color)}'/%3E%3C/g%3E%3C/svg%3E");
487
+ }
@@ -50,7 +50,7 @@
50
50
  //accordion, table
51
51
  %single-border-text-vpadding--scaling {
52
52
  padding-bottom: $table-cell-vertical-padding;
53
- padding-top: calc(#{$table-cell-vertical-padding} - 1px);
53
+ padding-top: calc($table-cell-vertical-padding - 1px);
54
54
  }
55
55
 
56
56
  // Default list styling
@@ -223,12 +223,12 @@
223
223
  margin: 0;
224
224
  padding: 0;
225
225
  position: relative;
226
- vertical-align: calc(#{$vertical-offset} + #{0.5 * $cap-height} - #{0.5 * $default-icon-size});
226
+ vertical-align: calc($vertical-offset + 0.5 * $cap-height - 0.5 * $default-icon-size);
227
227
  }
228
228
 
229
229
  %social-icon {
230
230
  @extend %vf-hide-text;
231
- @include vf-icon-size(map-get($icon-sizes, heading-icon--small));
231
+ @include vf-icon-size(map-get($icon-sizes, heading-icon--x-small));
232
232
 
233
233
  background-repeat: no-repeat;
234
234
  display: inline-block;
@@ -21,7 +21,7 @@
21
21
  grid-template-rows: auto;
22
22
  margin-left: auto;
23
23
  margin-right: auto;
24
- max-width: calc(2 * #{$l-fluid-breakout-aside-width} + #{$l-fluid-breakout-max-width});
24
+ max-width: calc(2 * $l-fluid-breakout-aside-width + $l-fluid-breakout-max-width);
25
25
  }
26
26
 
27
27
  @media (min-width: $threshold-4-6-col) {
@@ -135,7 +135,7 @@
135
135
  grid-template-rows: auto;
136
136
  margin-left: auto;
137
137
  margin-right: auto;
138
- max-width: calc(2 * #{$l-fluid-breakout-aside-width} + #{$l-fluid-breakout-max-width});
138
+ max-width: calc(2 * $l-fluid-breakout-aside-width + $l-fluid-breakout-max-width);
139
139
  }
140
140
 
141
141
  @media (min-width: $l-fluid-breakout-3-col-threshold) {
@@ -14,7 +14,7 @@
14
14
  @extend %vf-is-bordered;
15
15
  @extend %vf-has-round-corners;
16
16
 
17
- padding: calc(#{$spv--large} - 1px);
17
+ padding: calc($spv--large - 1px);
18
18
  }
19
19
  }
20
20
 
@@ -12,10 +12,10 @@
12
12
  display: inline-flex;
13
13
  margin: 0 $sph--small $input-margin-bottom 0;
14
14
  max-width: 100%;
15
- padding: calc(#{$spv--x-small} - 1px) $sph--small; // account for border thickness using calc
15
+ padding: calc($spv--x-small - $input-border-thickness) $sph--small; // account for border thickness using calc
16
16
  position: relative;
17
17
  user-select: none;
18
- vertical-align: calc(1px - #{map-get($nudges, p)});
18
+ vertical-align: calc($input-border-thickness - map-get($nudges, p));
19
19
  white-space: nowrap;
20
20
 
21
21
  .p-chip__lead,
@@ -242,7 +242,7 @@
242
242
  $color-border: map-get($colors-chip-tinted-borders, $chip-type);
243
243
 
244
244
  background-color: $color-background;
245
- border: 1px solid $color-border;
245
+ border: $input-border-thickness solid $color-border;
246
246
 
247
247
  .p-chip__value {
248
248
  color: $color-chip-value;
@@ -59,8 +59,8 @@
59
59
 
60
60
  + .p-contextual-menu__group {
61
61
  border-top-style: solid;
62
- border-top-width: 1px;
63
- margin: -1px 0 0 0;
62
+ border-top-width: $input-border-thickness;
63
+ margin: -$input-border-thickness 0 0 0;
64
64
  }
65
65
  }
66
66
 
@@ -27,8 +27,8 @@
27
27
  content: '';
28
28
  height: $form-tick-box-size;
29
29
  left: 0;
30
- outline-offset: 1px;
31
- top: calc(#{$baseline-position} - #{$form-tick-box-size} + #{$form-tick-box-nudge});
30
+ outline-offset: $input-border-thickness;
31
+ top: calc($baseline-position - $form-tick-box-size + $form-tick-box-nudge);
32
32
  width: $form-tick-box-size;
33
33
  }
34
34
 
@@ -41,6 +41,10 @@
41
41
  .p-muted-heading & {
42
42
  color: $colors--light-theme--text-muted;
43
43
  }
44
+
45
+ &:hover::before {
46
+ background-color: $colors--light-theme--background-hover;
47
+ }
44
48
  }
45
49
 
46
50
  %vf-pseudo-tick-box-checked {
@@ -63,7 +67,7 @@
63
67
  %vf-pseudo-checkbox {
64
68
  // container
65
69
  &::before {
66
- border-radius: $border-radius;
70
+ border-radius: 0;
67
71
  }
68
72
 
69
73
  //tick
@@ -72,7 +76,7 @@
72
76
  border-left: 2px solid;
73
77
  height: $form-tick-height;
74
78
  left: $form-tick-height * 0.5;
75
- top: calc(#{$baseline-position} - #{$form-tick-box-size} + #{$form-tick-offset-top} + #{$form-tick-box-nudge});
79
+ top: calc($baseline-position - $form-tick-box-size + $form-tick-offset-top + $form-tick-box-nudge);
76
80
  transform: rotate(-45deg);
77
81
  width: 0.625rem;
78
82
  }
@@ -97,7 +101,7 @@
97
101
  border-radius: 50%;
98
102
  height: $form-radio-inner-circle-diameter;
99
103
  left: #{($form-tick-box-size - $form-radio-inner-circle-diameter) * 0.5};
100
- top: calc(#{$baseline-position} - #{$form-tick-box-size} + #{$form-radio-circle-offset} + #{$form-tick-box-nudge});
104
+ top: calc($baseline-position - $form-tick-box-size + $form-radio-circle-offset + $form-tick-box-nudge);
101
105
  width: $form-radio-inner-circle-diameter;
102
106
  }
103
107
  }
@@ -141,7 +145,7 @@
141
145
  }
142
146
  .p-radio__label,
143
147
  .p-checkbox__label {
144
- padding-left: calc(#{$sph--large + $form-tick-box-size} + #{$asterisk-width});
148
+ padding-left: calc($sph--large + $form-tick-box-size + $asterisk-width);
145
149
  }
146
150
  }
147
151
  }
@@ -252,7 +256,7 @@
252
256
 
253
257
  &::before {
254
258
  background: $color-tick-background;
255
- border: 1px solid $color-tick-border;
259
+ border: $input-border-thickness solid $color-tick-border;
256
260
  }
257
261
  }
258
262