vanilla-framework 3.0.0-alpha.1 → 3.0.0-rc.1

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 (110) hide show
  1. package/README.md +1 -1
  2. package/_index.scss +1 -0
  3. package/package.json +21 -16
  4. package/scss/_base_button.scss +4 -18
  5. package/scss/_base_details.scss +2 -2
  6. package/scss/_base_fontfaces.scss +183 -181
  7. package/scss/_base_forms.scss +3 -3
  8. package/scss/_base_grid-definitions.scss +8 -8
  9. package/scss/_base_hr.scss +4 -4
  10. package/scss/_base_placeholders.scss +12 -12
  11. package/scss/_base_tables.scss +2 -2
  12. package/scss/_base_typography-definitions.scss +50 -50
  13. package/scss/_base_typography.scss +2 -2
  14. package/scss/_global_functions.scss +2 -0
  15. package/scss/_layouts_application.scss +1 -1
  16. package/scss/_layouts_fluid-breakout.scss +14 -14
  17. package/scss/_patterns_article-pagination.scss +3 -6
  18. package/scss/_patterns_buttons.scss +1 -4
  19. package/scss/_patterns_chip.scss +264 -57
  20. package/scss/_patterns_divider.scss +2 -2
  21. package/scss/_patterns_form-password-toggle.scss +0 -6
  22. package/scss/_patterns_form-tick-elements.scss +1 -0
  23. package/scss/_patterns_forms.scss +3 -3
  24. package/scss/_patterns_grid.scss +9 -9
  25. package/scss/_patterns_heading-icon.scss +5 -5
  26. package/scss/_patterns_label.scss +6 -30
  27. package/scss/_patterns_list-tree.scss +0 -1
  28. package/scss/_patterns_lists.scss +2 -2
  29. package/scss/_patterns_logo-section.scss +6 -4
  30. package/scss/_patterns_matrix.scss +11 -13
  31. package/scss/_patterns_modal.scss +1 -1
  32. package/scss/_patterns_navigation.scss +9 -9
  33. package/scss/_patterns_pull-quotes.scss +1 -1
  34. package/scss/_patterns_search-and-filter.scss +8 -6
  35. package/scss/_patterns_search-box.scss +0 -1
  36. package/scss/_patterns_side-navigation.scss +3 -6
  37. package/scss/_patterns_strip.scss +1 -1
  38. package/scss/_patterns_switch.scss +11 -11
  39. package/scss/_patterns_table-expanding.scss +0 -4
  40. package/scss/_patterns_table-mobile-card.scss +4 -11
  41. package/scss/_patterns_table-of-contents.scss +1 -1
  42. package/scss/_settings_breakpoints.scss +2 -3
  43. package/scss/_settings_colors.scss +75 -2
  44. package/scss/_settings_grid.scss +2 -4
  45. package/scss/_settings_spacing.scss +47 -45
  46. package/scss/_settings_themes.scss +1 -0
  47. package/scss/_utilities_content-align.scss +2 -2
  48. package/scss/_utilities_equal-height.scss +1 -1
  49. package/scss/_utilities_floats.scss +4 -4
  50. package/scss/_utilities_hide.scss +7 -7
  51. package/scss/_utilities_image-position.scss +1 -1
  52. package/scss/_utilities_show.scss +2 -2
  53. package/scss/_utilities_vertical-spacing.scss +6 -12
  54. package/scss/_vanilla.scss +0 -4
  55. package/scss/_patterns_inline-images.scss +0 -37
  56. package/scss/standalone/base.scss +0 -2
  57. package/scss/standalone/custom.scss +0 -7
  58. package/scss/standalone/dark.scss +0 -11
  59. package/scss/standalone/example.scss +0 -15
  60. package/scss/standalone/import.scss +0 -2
  61. package/scss/standalone/layouts_fluid-breakout-full.scss +0 -8
  62. package/scss/standalone/layouts_fluid-breakout.scss +0 -8
  63. package/scss/standalone/patterns_accordion.scss +0 -6
  64. package/scss/standalone/patterns_article-pagination.scss +0 -4
  65. package/scss/standalone/patterns_breadcrumbs.scss +0 -4
  66. package/scss/standalone/patterns_buttons.scss +0 -9
  67. package/scss/standalone/patterns_card.scss +0 -9
  68. package/scss/standalone/patterns_chip.scss +0 -6
  69. package/scss/standalone/patterns_code-snippet.scss +0 -6
  70. package/scss/standalone/patterns_contextual-menu.scss +0 -9
  71. package/scss/standalone/patterns_divider.scss +0 -7
  72. package/scss/standalone/patterns_form-password-toggle.scss +0 -19
  73. package/scss/standalone/patterns_form-tick-elements.scss +0 -13
  74. package/scss/standalone/patterns_forms.scss +0 -17
  75. package/scss/standalone/patterns_grid.scss +0 -4
  76. package/scss/standalone/patterns_heading-icon.scss +0 -4
  77. package/scss/standalone/patterns_headings.scss +0 -4
  78. package/scss/standalone/patterns_icons-additional.scss +0 -104
  79. package/scss/standalone/patterns_icons.scss +0 -7
  80. package/scss/standalone/patterns_image.scss +0 -4
  81. package/scss/standalone/patterns_inline-images.scss +0 -4
  82. package/scss/standalone/patterns_label.scss +0 -4
  83. package/scss/standalone/patterns_links.scss +0 -4
  84. package/scss/standalone/patterns_list-tree.scss +0 -4
  85. package/scss/standalone/patterns_lists.scss +0 -4
  86. package/scss/standalone/patterns_logo-section.scss +0 -4
  87. package/scss/standalone/patterns_matrix.scss +0 -4
  88. package/scss/standalone/patterns_media-object.scss +0 -4
  89. package/scss/standalone/patterns_modal.scss +0 -9
  90. package/scss/standalone/patterns_muted-heading.scss +0 -4
  91. package/scss/standalone/patterns_navigation.scss +0 -4
  92. package/scss/standalone/patterns_notifications.scss +0 -7
  93. package/scss/standalone/patterns_pagination.scss +0 -7
  94. package/scss/standalone/patterns_pull-quotes.scss +0 -4
  95. package/scss/standalone/patterns_search-and-filter.scss +0 -8
  96. package/scss/standalone/patterns_search-box.scss +0 -15
  97. package/scss/standalone/patterns_separator.scss +0 -4
  98. package/scss/standalone/patterns_side-navigation.scss +0 -11
  99. package/scss/standalone/patterns_skip-link.scss +0 -8
  100. package/scss/standalone/patterns_slider.scss +0 -4
  101. package/scss/standalone/patterns_strip.scss +0 -10
  102. package/scss/standalone/patterns_switch.scss +0 -4
  103. package/scss/standalone/patterns_tab-buttons.scss +0 -7
  104. package/scss/standalone/patterns_table-expanding.scss +0 -10
  105. package/scss/standalone/patterns_table-mobile-card.scss +0 -10
  106. package/scss/standalone/patterns_table-of-contents.scss +0 -7
  107. package/scss/standalone/patterns_table-overflow.scss +0 -10
  108. package/scss/standalone/patterns_table-sortable.scss +0 -10
  109. package/scss/standalone/patterns_tabs.scss +0 -4
  110. package/scss/standalone/patterns_tooltips.scss +0 -6
@@ -1,94 +1,301 @@
1
1
  @import 'settings';
2
2
 
3
3
  @mixin vf-p-chip {
4
- $chip-line-height: 1rem;
5
- $base-background-opacity-amount: 0.05;
6
- $color-background-base: adjust-color($color-x-dark, $lightness: 100% * (1 - $base-background-opacity-amount));
7
- $color-background-hover: adjust-color($color-x-dark, $lightness: 100% * (1 - ($base-background-opacity-amount + $hover-background-opacity-amount)));
8
-
9
- .p-chip {
4
+ %vf-chip {
10
5
  @extend %small-text;
6
+ @include vf-animation(#{background-color, border-color}, snap, out);
7
+ @include vf-focus;
11
8
 
12
- background-color: $color-background-base;
13
- border-radius: $chip-line-height;
9
+ align-items: baseline;
10
+ border-radius: 1rem;
14
11
  display: inline-flex;
15
- line-height: $chip-line-height;
16
- margin: map-get($nudges, nudge--p) $sph--small 0 0;
12
+ margin: 0 $sph--small $input-margin-bottom 0;
17
13
  max-width: 100%;
18
- padding-bottom: 0.25rem;
19
- padding-left: $sph--large;
20
- padding-right: $sph--large;
21
- padding-top: 0.25rem;
14
+ padding: calc(#{$spv--x-small} - 1px) $sph--small; // account for border thickness using calc
15
+ position: relative;
22
16
  user-select: none;
17
+ vertical-align: calc(1px - #{map-get($nudges, p)});
23
18
  white-space: nowrap;
24
19
 
25
- &:hover {
26
- background-color: $color-background-hover;
27
- }
28
-
29
- &.is-selected,
30
- &:active {
31
- background-color: $colors--light-theme--background-active;
32
- }
33
-
34
20
  .p-chip__lead,
35
21
  .p-chip__value {
22
+ display: inline;
36
23
  margin-bottom: 0;
37
24
  overflow: hidden;
25
+ padding: 0;
38
26
  text-overflow: ellipsis;
27
+ vertical-align: baseline;
39
28
  }
40
29
 
41
30
  .p-chip__lead {
42
- $space-between-lead-and-value: 0.25rem;
43
- @extend %muted-text;
44
31
  @extend %x-small-text;
45
32
 
46
- line-height: $chip-line-height;
47
- padding-right: $space-between-lead-and-value * 2;
48
- padding-top: 0.1rem;
49
- position: relative;
50
33
  text-transform: uppercase;
34
+ }
51
35
 
52
- &::after {
53
- content: '\00a0:';
54
- position: absolute;
55
- right: $space-between-lead-and-value;
56
- }
36
+ .p-chip__lead + .p-chip__value::before {
37
+ @extend %x-small-text;
38
+
39
+ content: ': ';
57
40
  }
58
41
 
59
42
  .p-chip__value {
60
43
  @extend %small-text;
44
+ font-weight: $font-weight-bold;
45
+ }
46
+
47
+ .p-chip__dismiss {
48
+ @extend %icon;
49
+ // also includes button and close icon styles in the theming section
50
+
51
+ align-self: center;
52
+ background-size: map-get($icon-sizes, small);
53
+ border-radius: 50%;
54
+ flex: 0 0 auto;
55
+ margin-left: $sph--x-small;
56
+ @media (min-width: $breakpoint-x-large) {
57
+ background-size: map-get($icon-sizes, small) / $font-size-ratio--largescreen; //ensure no rounding happens as it positions the icon off center
58
+ }
59
+ }
60
+
61
+ &.is-dense {
62
+ padding: 0 $sph--small;
63
+ }
64
+
65
+ &.is-inline {
66
+ margin: 0;
67
+ vertical-align: baseline;
68
+ }
69
+ }
61
70
 
62
- line-height: $chip-line-height;
63
- padding-top: 0.05rem;
71
+ .p-chip,
72
+ .p-chip--positive,
73
+ .p-chip--caution,
74
+ .p-chip--negative,
75
+ .p-chip--information {
76
+ @extend %vf-chip;
77
+ }
78
+
79
+ // Theming
80
+ @if ($theme-default-p-chip == 'dark') {
81
+ .p-chip {
82
+ @include vf-chip-dark-theme;
83
+ }
84
+ .p-chip.is-light {
85
+ @include vf-chip-light-theme;
86
+ }
87
+ // stylelint-disable-next-line selector-max-type
88
+ button.p-chip {
89
+ @include vf-chip-dark-theme($is-interactive: true);
90
+ }
91
+ // stylelint-disable-next-line selector-max-type
92
+ button.p-chip.is-light {
93
+ @include vf-chip-light-theme($is-interactive: true);
94
+ }
95
+
96
+ .p-chip--positive {
97
+ @include vf-chip-dark-theme(positive);
98
+ }
99
+ .p-chip--positive.is-light {
100
+ @include vf-chip-light-theme(positive);
101
+ }
102
+ // stylelint-disable-next-line selector-max-type
103
+ button.p-chip--positive {
104
+ @include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
105
+ }
106
+ // stylelint-disable-next-line selector-max-type
107
+ button.p-chip--positive.is-light {
108
+ @include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
109
+ }
110
+
111
+ .p-chip--caution {
112
+ @include vf-chip-dark-theme(caution);
113
+ }
114
+ .p-chip--caution.is-light {
115
+ @include vf-chip-light-theme(caution);
116
+ }
117
+ // stylelint-disable-next-line selector-max-type
118
+ button.p-chip--caution {
119
+ @include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
120
+ }
121
+ // stylelint-disable-next-line selector-max-type
122
+ button.p-chip--caution.is-light {
123
+ @include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
124
+ }
125
+
126
+ .p-chip--negative {
127
+ @include vf-chip-dark-theme(negative);
128
+ }
129
+ .p-chip--negative.is-light {
130
+ @include vf-chip-light-theme(negative);
131
+ }
132
+ // stylelint-disable-next-line selector-max-type
133
+ button.p-chip--negative {
134
+ @include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
135
+ }
136
+ // stylelint-disable-next-line selector-max-type
137
+ button.p-chip--negative.is-light {
138
+ @include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
64
139
  }
65
140
 
141
+ .p-chip--information {
142
+ @include vf-chip-dark-theme(information);
143
+ }
144
+ .p-chip--information.is-light {
145
+ @include vf-chip-light-theme(information);
146
+ }
147
+ // stylelint-disable-next-line selector-max-type
148
+ button.p-chip--information {
149
+ @include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
150
+ }
151
+ // stylelint-disable-next-line selector-max-type
152
+ button.p-chip--information.is-light {
153
+ @include vf-chip-light-theme($chip-type: information, $is-interactive: true);
154
+ }
155
+ } @else {
156
+ .p-chip {
157
+ @include vf-chip-light-theme;
158
+ }
159
+ .p-chip.is-dark {
160
+ @include vf-chip-dark-theme;
161
+ }
162
+ // stylelint-disable-next-line selector-max-type
163
+ button.p-chip {
164
+ @include vf-chip-light-theme($is-interactive: true);
165
+ }
166
+ // stylelint-disable-next-line selector-max-type
167
+ button.p-chip.is-dark {
168
+ @include vf-chip-dark-theme($is-interactive: true);
169
+ }
170
+
171
+ .p-chip--positive {
172
+ @include vf-chip-light-theme(positive);
173
+ }
174
+ .p-chip--positive.is-dark {
175
+ @include vf-chip-dark-theme(positive);
176
+ }
177
+ // stylelint-disable-next-line selector-max-type
178
+ button.p-chip--positive {
179
+ @include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
180
+ }
181
+ // stylelint-disable-next-line selector-max-type
182
+ button.p-chip--positive.is-dark {
183
+ @include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
184
+ }
185
+
186
+ .p-chip--caution {
187
+ @include vf-chip-light-theme(caution);
188
+ }
189
+ .p-chip--caution.is-dark {
190
+ @include vf-chip-dark-theme(caution);
191
+ }
192
+ // stylelint-disable-next-line selector-max-type
193
+ button.p-chip--caution {
194
+ @include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
195
+ }
196
+ // stylelint-disable-next-line selector-max-type
197
+ button.p-chip--caution.is-dark {
198
+ @include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
199
+ }
200
+
201
+ .p-chip--negative {
202
+ @include vf-chip-light-theme(negative);
203
+ }
204
+ .p-chip--negative.is-dark {
205
+ @include vf-chip-dark-theme(negative);
206
+ }
207
+ // stylelint-disable-next-line selector-max-type
208
+ button.p-chip--negative {
209
+ @include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
210
+ }
211
+ // stylelint-disable-next-line selector-max-type
212
+ button.p-chip--negative.is-dark {
213
+ @include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
214
+ }
215
+
216
+ .p-chip--information {
217
+ @include vf-chip-light-theme(information);
218
+ }
219
+ .p-chip--information.is-dark {
220
+ @include vf-chip-dark-theme(information);
221
+ }
222
+ // stylelint-disable-next-line selector-max-type
223
+ button.p-chip--information {
224
+ @include vf-chip-light-theme($chip-type: information, $is-interactive: true);
225
+ }
226
+ // stylelint-disable-next-line selector-max-type
227
+ button.p-chip--information.is-dark {
228
+ @include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
229
+ }
230
+ }
231
+ }
232
+
233
+ @mixin vf-chip-theme($chip-type: neutral, $is-interactive: false, $colors-chip-tinted-backgrounds, $colors-chip-tinted-borders, $color-chip-value, $color-chip-lead) {
234
+ @if (not map-has-key($colors-chip-tinted-backgrounds, $chip-type)) {
235
+ $chip-type: neutral;
236
+ }
237
+
238
+ $color-background: map-get($colors-chip-tinted-backgrounds, $chip-type, 'default');
239
+ $color-background-hover: map-get($colors-chip-tinted-backgrounds, $chip-type, 'hover');
240
+ $color-background-active: map-get($colors-chip-tinted-backgrounds, $chip-type, 'active');
241
+ $color-border: map-get($colors-chip-tinted-borders, $chip-type);
242
+
243
+ background-color: $color-background;
244
+ border: 1px solid $color-border;
245
+
246
+ .p-chip__value {
247
+ color: $color-chip-value;
248
+ }
249
+ .p-chip__lead,
250
+ .p-chip__lead + .p-chip__value::before {
251
+ color: $color-chip-lead;
252
+ }
253
+
254
+ @if ($is-interactive) {
255
+ &:hover {
256
+ background-color: $color-background-hover;
257
+ border-color: $color-border;
258
+ }
259
+ &[aria-pressed='true'],
260
+ &.is-selected,
261
+ &:active {
262
+ background-color: $color-background-active;
263
+ border-color: $color-border;
264
+ }
265
+ } @else {
66
266
  .p-chip__dismiss {
267
+ @include vf-icon-close($color-chip-lead);
268
+
67
269
  @include vf-button-pattern(
68
270
  $button-background-color: transparent,
69
271
  $button-border-color: transparent,
70
- $button-hover-background-color: transparent,
71
- $button-hover-border-color: transparent
272
+ $button-hover-background-color: $color-background-hover,
273
+ $button-hover-border-color: transparent,
274
+ $button-active-background-color: $color-background-active,
275
+ $button-active-border-color: transparent
72
276
  );
73
-
74
- border: none;
75
- display: block;
76
- flex: 0 0 auto;
77
- left: $sp-unit * 0.5;
78
- line-height: 1rem;
79
- margin-bottom: 0;
80
- margin-right: -$sp-unit * 0.5;
81
- padding: 0;
82
- position: relative;
83
- top: 0.05rem;
84
-
85
- @media (max-width: $breakpoint-x-small) {
86
- width: auto;
87
- }
88
-
89
- [class*='p-icon'] {
90
- vertical-align: calc(#{0.5 * $cap-height} - #{0.5 * $default-icon-size});
91
- }
92
277
  }
93
278
  }
94
279
  }
280
+
281
+ @mixin vf-chip-light-theme($chip-type: neutral, $is-interactive: false) {
282
+ @include vf-chip-theme(
283
+ $chip-type: $chip-type,
284
+ $is-interactive: $is-interactive,
285
+ $colors-chip-tinted-backgrounds: $colors-light-theme--tinted-backgrounds,
286
+ $colors-chip-tinted-borders: $colors-light-theme--tinted-borders,
287
+ $color-chip-value: $colors--light-theme--text-default,
288
+ $color-chip-lead: $colors--light-theme--text-default
289
+ );
290
+ }
291
+
292
+ @mixin vf-chip-dark-theme($chip-type: neutral, $is-interactive: false) {
293
+ @include vf-chip-theme(
294
+ $chip-type: $chip-type,
295
+ $is-interactive: $is-interactive,
296
+ $colors-chip-tinted-backgrounds: $colors-dark-theme--tinted-backgrounds,
297
+ $colors-chip-tinted-borders: $colors-dark-theme--tinted-borders,
298
+ $color-chip-value: $colors--dark-theme--text-default,
299
+ $color-chip-lead: $colors--dark-theme--text-default
300
+ );
301
+ }
@@ -10,7 +10,7 @@
10
10
  .p-divider__block {
11
11
  position: relative;
12
12
 
13
- @media (max-width: $threshold-6-12-col) {
13
+ @media (max-width: $threshold-6-12-col - 1) {
14
14
  padding-bottom: $spv--large;
15
15
  padding-top: $spv--large;
16
16
 
@@ -28,7 +28,7 @@
28
28
  &:not(:first-child)::before {
29
29
  bottom: 0;
30
30
  content: '';
31
- left: map-get($grid-gutter-widths, large) * -0.5; // "large" here is not a typo. The grid switches to 12 columns at breakpoint medium. Hence the use of large-screen gutter
31
+ left: map-get($grid-gutter-widths, default) * -0.5; // "large" here is not a typo. The grid switches to 12 columns at breakpoint medium. Hence the use of large-screen gutter
32
32
  position: absolute;
33
33
  top: 0;
34
34
  width: 1px;
@@ -5,12 +5,6 @@
5
5
  align-items: flex-start;
6
6
  display: flex;
7
7
  justify-content: space-between;
8
-
9
- .p-button--base {
10
- @media (max-width: $breakpoint-small) {
11
- width: auto !important;
12
- }
13
- }
14
8
  }
15
9
 
16
10
  .p-form-password-toggle__label {
@@ -149,6 +149,7 @@
149
149
  // Fix label alignment when text drops to new line
150
150
  .p-checkbox,
151
151
  .p-radio {
152
+ display: block;
152
153
  padding-left: $sph--large + $form-tick-box-size;
153
154
  text-indent: -1 * ($sph--large + $form-tick-box-size);
154
155
 
@@ -17,7 +17,7 @@
17
17
  width: 100%;
18
18
 
19
19
  .p-form__group {
20
- @media (min-width: $breakpoint-medium) {
20
+ @media (min-width: $threshold-6-12-col) {
21
21
  align-items: baseline;
22
22
 
23
23
  + .p-form__group {
@@ -30,7 +30,7 @@
30
30
 
31
31
  @mixin vf-p-forms-inline {
32
32
  .p-form--inline {
33
- @media (min-width: $breakpoint-medium) {
33
+ @media (min-width: $threshold-6-12-col) {
34
34
  align-items: baseline;
35
35
  display: inline-flex;
36
36
  flex-direction: row;
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  .p-form__group {
45
- @media (min-width: $breakpoint-medium) {
45
+ @media (min-width: $threshold-6-12-col) {
46
46
  display: flex;
47
47
  flex-shrink: 1;
48
48
  width: auto;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  // mobile grid
30
- @media (max-width: $threshold-4-6-col) {
30
+ @media (max-width: $threshold-4-6-col - 1) {
31
31
  @for $i from $grid-columns-small through 1 {
32
32
  .#{$grid-small-col-prefix}#{$i} {
33
33
  @include vf-grid-column($i);
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  // tablet grid
41
- @media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col) {
41
+ @media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
42
42
  @for $i from $grid-columns-medium through 1 {
43
43
  .#{$grid-medium-col-prefix}#{$i} {
44
44
  @include vf-grid-column($i);
@@ -94,11 +94,11 @@
94
94
  @each $label, $breakpoint-min, $breakpoint-max, $col-count in $offsets {
95
95
  $query: null;
96
96
  @if $breakpoint-min == 0 {
97
- $query: '(max-width: #{$breakpoint-max})';
97
+ $query: '(max-width: #{$breakpoint-max - 1})';
98
98
  } @else if $breakpoint-max == -1 {
99
99
  $query: '(min-width: #{$breakpoint-min})';
100
100
  } @else {
101
- $query: '(min-width: #{$breakpoint-min}) and (max-width: #{$breakpoint-max})';
101
+ $query: '(min-width: #{$breakpoint-min}) and (max-width: #{$breakpoint-max - 1})';
102
102
  }
103
103
 
104
104
  @media #{$query} {
@@ -127,14 +127,14 @@
127
127
  position: absolute;
128
128
  right: map-get($grid-margin-widths, small);
129
129
 
130
- @media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col) {
131
- left: map-get($grid-margin-widths, medium);
132
- right: map-get($grid-margin-widths, medium);
130
+ @media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
131
+ left: map-get($grid-margin-widths, default);
132
+ right: map-get($grid-margin-widths, default);
133
133
  }
134
134
 
135
135
  @media (min-width: $threshold-6-12-col) {
136
- left: map-get($grid-margin-widths, large);
137
- right: map-get($grid-margin-widths, large);
136
+ left: map-get($grid-margin-widths, default);
137
+ right: map-get($grid-margin-widths, default);
138
138
  }
139
139
  }
140
140
  }
@@ -4,7 +4,7 @@
4
4
  .p-heading-icon {
5
5
  margin-bottom: $spv--x-large;
6
6
 
7
- @media (min-width: $breakpoint-medium) {
7
+ @media (min-width: $breakpoint-heading-threshold) {
8
8
  margin-bottom: 0;
9
9
  }
10
10
  }
@@ -22,12 +22,12 @@
22
22
  height: map-get($icon-sizes, heading-icon--small);
23
23
  margin-bottom: 0;
24
24
  margin-right: $sph--large;
25
- margin-top: map-get($nudges, nudge--h3-mobile);
25
+ margin-top: map-get($nudges, h3-mobile);
26
26
  width: map-get($icon-sizes, heading-icon--small);
27
27
 
28
- @media (min-width: $breakpoint-medium) {
28
+ @media (min-width: $breakpoint-heading-threshold) {
29
29
  height: map-get($icon-sizes, heading-icon);
30
- margin-top: map-get($nudges, nudge--h3);
30
+ margin-top: map-get($nudges, h3);
31
31
  width: map-get($icon-sizes, heading-icon);
32
32
  }
33
33
  }
@@ -38,7 +38,7 @@
38
38
  margin-top: $sp-x-small;
39
39
  width: map-get($icon-sizes, heading-icon--x-small);
40
40
 
41
- @media (min-width: $breakpoint-medium) {
41
+ @media (min-width: $breakpoint-heading-threshold) {
42
42
  height: map-get($icon-sizes, heading-icon--small);
43
43
  margin-top: 0;
44
44
  width: map-get($icon-sizes, heading-icon--small);
@@ -9,7 +9,7 @@
9
9
  border-radius: $border-radius;
10
10
  display: inline-block;
11
11
  font-weight: $font-weight-bold;
12
- padding: map-get($nudges, nudge--x-small) $sph--small;
12
+ padding: map-get($nudges, x-small) $sph--small;
13
13
  text-align: center;
14
14
  text-decoration: none;
15
15
  white-space: nowrap;
@@ -22,52 +22,28 @@
22
22
  color: $color-x-light;
23
23
  }
24
24
 
25
- @include vf-p-label-validated;
26
- @include vf-p-label-in-progress;
27
- @include vf-p-label-new;
28
- @include vf-p-label-updated;
29
- @include vf-p-label-deprecated;
30
- }
31
-
32
- // Override local variables
33
- @mixin vf-p-label-validated {
34
- .p-label--validated {
25
+ .p-label--positive {
35
26
  @extend %vf-label;
36
27
 
37
- background-color: $color-label-validated;
28
+ background-color: $color-positive;
38
29
  color: $color-x-light;
39
30
  }
40
- }
41
31
 
42
- @mixin vf-p-label-in-progress {
43
- .p-label--in-progress {
32
+ .p-label--caution {
44
33
  @extend %vf-label;
45
34
 
46
35
  background-color: $color-caution;
47
36
  color: $color-dark;
48
37
  }
49
- }
50
38
 
51
- @mixin vf-p-label-new {
52
- .p-label--new {
53
- @extend %vf-label;
54
-
55
- background-color: $color-positive;
56
- color: $color-x-light;
57
- }
58
- }
59
-
60
- @mixin vf-p-label-updated {
61
- .p-label--updated {
39
+ .p-label--information {
62
40
  @extend %vf-label;
63
41
 
64
42
  background-color: $color-information;
65
43
  color: $color-x-light;
66
44
  }
67
- }
68
45
 
69
- @mixin vf-p-label-deprecated {
70
- .p-label--deprecated {
46
+ .p-label--negative {
71
47
  @extend %vf-label;
72
48
 
73
49
  background-color: $color-negative;
@@ -77,7 +77,6 @@
77
77
  margin: 0 0.5rem 0 -1.75rem;
78
78
  padding: 0 0.5rem 0 1.75rem;
79
79
  transition-duration: 0s;
80
- width: auto;
81
80
 
82
81
  &:hover {
83
82
  background: transparent;
@@ -347,7 +347,7 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
347
347
  @extend %vf-row;
348
348
  @include vf-b-row-reset;
349
349
 
350
- @media (min-width: $breakpoint-medium) {
350
+ @media (min-width: $threshold-6-12-col) {
351
351
  padding-top: $sp-unit;
352
352
  position: relative;
353
353
 
@@ -368,7 +368,7 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
368
368
  // Adaptor class `is-split` to split the items of a list into two columns
369
369
  @mixin vf-p-list-split {
370
370
  [class*='p-list'].is-split {
371
- @media (min-width: $breakpoint-medium) {
371
+ @media (min-width: $threshold-4-6-col) {
372
372
  @supports ((-webkit-columns: 1) or (columns: 1)) {
373
373
  column-gap: $sp-x-large;
374
374
  columns: 2;
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  @mixin vf-p-set-logo-section-item-width($breakpoint: small) {
2
4
  // This mixin calculates the width of an individual logo.
3
5
 
@@ -14,14 +16,14 @@
14
16
  @if $breakpoint == medium {
15
17
  $grid-column-count: $grid-columns-medium;
16
18
  $grid-column-prefix: $grid-medium-col-prefix;
17
- $gutter: map-get($grid-gutter-widths, medium);
19
+ $gutter: map-get($grid-gutter-widths, default);
18
20
  $media-query-keyword: min-width;
19
21
  $media-query-width: $threshold-4-6-col;
20
22
  $logo-column-span: 1;
21
23
  } @else if $breakpoint == large {
22
24
  $grid-column-count: $grid-columns;
23
25
  $grid-column-prefix: $grid-large-col-prefix;
24
- $gutter: map-get($grid-gutter-widths, large);
26
+ $gutter: map-get($grid-gutter-widths, default);
25
27
  $media-query-keyword: min-width;
26
28
  $media-query-width: $threshold-6-12-col;
27
29
  $logo-column-span: 2;
@@ -101,8 +103,8 @@
101
103
  }
102
104
 
103
105
  $margin-small: map-get($grid-gutter-widths, small);
104
- $margin-medium: map-get($grid-gutter-widths, medium);
105
- $margin-large: map-get($grid-gutter-widths, large);
106
+ $margin-medium: map-get($grid-gutter-widths, default);
107
+ $margin-large: map-get($grid-gutter-widths, default);
106
108
 
107
109
  .p-logo-section__items {
108
110
  display: flex;