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
@@ -25,24 +25,22 @@
25
25
  border-top: none;
26
26
  }
27
27
 
28
- @media (min-width: $breakpoint-small) {
28
+ @media (min-width: $threshold-4-6-col) {
29
29
  display: flex;
30
30
  flex-wrap: wrap;
31
31
  width: 33.333%;
32
32
  }
33
33
 
34
- @media (min-width: $breakpoint-small) and (max-width: $breakpoint-medium) {
34
+ @media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
35
+ flex-direction: column;
36
+
35
37
  &:nth-child(2),
36
38
  &:nth-child(3) {
37
39
  border-top: none;
38
40
  }
39
41
  }
40
42
 
41
- @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large) {
42
- flex-direction: column;
43
- }
44
-
45
- @media (min-width: $breakpoint-medium) {
43
+ @media (min-width: $threshold-6-12-col) {
46
44
  border-right: 1px solid $color-mid-light;
47
45
  padding-left: $spv--large;
48
46
  padding-right: $spv--large;
@@ -67,7 +65,7 @@
67
65
  }
68
66
  }
69
67
 
70
- @media (min-width: $breakpoint-large) {
68
+ @media (min-width: $threshold-6-12-col) {
71
69
  // 3 items per row
72
70
  border-right: 1px solid $color-mid-light;
73
71
  width: 33.333%;
@@ -103,12 +101,12 @@
103
101
  width: $matrix-img-width;
104
102
 
105
103
  @media (min-width: $breakpoint-heading-threshold) {
106
- margin-top: -#{map-get($nudges, nudge--h4)};
104
+ margin-top: -#{map-get($nudges, h4)};
107
105
  }
108
106
 
109
107
  @if ($increase-font-size-on-larger-screens) {
110
108
  @media (min-width: $breakpoint-x-large) {
111
- margin-top: -#{map-get($nudges, nudge--h4-large)};
109
+ margin-top: -#{map-get($nudges, h4-large)};
112
110
  }
113
111
  }
114
112
  }
@@ -128,12 +126,12 @@
128
126
  @extend %vf-heading-4;
129
127
 
130
128
  @media (min-width: $breakpoint-heading-threshold) {
131
- margin-bottom: -#{map-get($nudges, nudge--h4)};
129
+ margin-bottom: -#{map-get($nudges, h4)};
132
130
  }
133
131
 
134
132
  @if ($increase-font-size-on-larger-screens) {
135
133
  @media (min-width: $breakpoint-x-large) {
136
- margin-bottom: -#{map-get($nudges, nudge--h4-large)};
134
+ margin-bottom: -#{map-get($nudges, h4-large)};
137
135
  }
138
136
  }
139
137
  }
@@ -141,7 +139,7 @@
141
139
  .p-matrix__desc {
142
140
  margin-bottom: $spv-nudge-compensation;
143
141
 
144
- @media (max-width: $breakpoint-heading-threshold) {
142
+ @media (max-width: $breakpoint-heading-threshold - 1) {
145
143
  margin-top: -#{$sp-unit};
146
144
  }
147
145
 
@@ -35,7 +35,7 @@
35
35
  right: $sph--x-large;
36
36
  width: auto;
37
37
 
38
- @media (min-width: $breakpoint-medium) {
38
+ @media (min-width: $threshold-6-12-col) {
39
39
  bottom: initial;
40
40
  left: initial;
41
41
  position: relative;
@@ -14,7 +14,7 @@ $lightness-threshold: 70;
14
14
  padding-left: map-get($grid-margin-widths, small);
15
15
 
16
16
  @media (min-width: $threshold-4-6-col) {
17
- padding-left: map-get($grid-margin-widths, medium);
17
+ padding-left: map-get($grid-margin-widths, default);
18
18
  }
19
19
 
20
20
  @media (min-width: $breakpoint-navigation-threshold) {
@@ -27,7 +27,7 @@ $lightness-threshold: 70;
27
27
  padding-right: map-get($grid-margin-widths, small);
28
28
 
29
29
  @media (min-width: $threshold-4-6-col) {
30
- padding-right: map-get($grid-margin-widths, medium);
30
+ padding-right: map-get($grid-margin-widths, default);
31
31
  }
32
32
 
33
33
  @media (min-width: $breakpoint-navigation-threshold) {
@@ -102,8 +102,8 @@ $lightness-threshold: 70;
102
102
  order: -1;
103
103
 
104
104
  @media (min-width: $threshold-4-6-col) {
105
- margin-left: map-get($grid-margin-widths, medium);
106
- margin-right: map-get($grid-margin-widths, medium);
105
+ margin-left: map-get($grid-margin-widths, default);
106
+ margin-right: map-get($grid-margin-widths, default);
107
107
  }
108
108
 
109
109
  @media (min-width: $breakpoint-navigation-threshold) {
@@ -207,7 +207,7 @@ $lightness-threshold: 70;
207
207
  display: flex;
208
208
  flex-direction: row;
209
209
  justify-content: space-between;
210
- margin-right: map-get($grid-margin-widths, large);
210
+ margin-right: map-get($grid-margin-widths, default);
211
211
  width: 100%;
212
212
  }
213
213
  }
@@ -332,11 +332,11 @@ $lightness-threshold: 70;
332
332
  position: absolute;
333
333
  right: map-get($grid-margin-widths, small);
334
334
  text-indent: calc(100% + 10rem);
335
- top: calc(#{$spv--large} + #{map-get($nudges, nudge--x-small)});
335
+ top: calc(#{$spv--large} + #{map-get($nudges, x-small)});
336
336
  width: map-get($icon-sizes, default);
337
337
 
338
338
  @media (min-width: $threshold-4-6-col) {
339
- right: map-get($grid-margin-widths, medium);
339
+ right: map-get($grid-margin-widths, default);
340
340
  }
341
341
 
342
342
  @media (min-width: $breakpoint-navigation-threshold) {
@@ -435,11 +435,11 @@ $lightness-threshold: 70;
435
435
  position: absolute;
436
436
  right: map-get($grid-margin-widths, small);
437
437
  text-indent: calc(100% + 10rem);
438
- top: calc(#{$spv--large} + #{map-get($nudges, nudge--x-small)});
438
+ top: calc(#{$spv--large} + #{map-get($nudges, x-small)});
439
439
  width: map-get($icon-sizes, default);
440
440
 
441
441
  @media (min-width: $threshold-4-6-col) {
442
- right: map-get($grid-margin-widths, medium);
442
+ right: map-get($grid-margin-widths, default);
443
443
  }
444
444
 
445
445
  @media (min-width: $breakpoint-navigation-threshold) {
@@ -108,7 +108,7 @@
108
108
  .p-pull-quote--large {
109
109
  .p-pull-quote__quote {
110
110
  &:first-of-type::before {
111
- @media (max-width: $breakpoint-heading-threshold) {
111
+ @media (max-width: $breakpoint-heading-threshold - 1) {
112
112
  top: 0.75rem;
113
113
  }
114
114
  }
@@ -47,8 +47,8 @@
47
47
  }
48
48
 
49
49
  .p-chip {
50
- margin-bottom: $sp-x-small;
51
- margin-top: $sp-x-small;
50
+ margin-bottom: $spv--x-small;
51
+ margin-top: $spv--x-small;
52
52
  }
53
53
 
54
54
  .p-search-and-filter__selected-count {
@@ -153,12 +153,14 @@
153
153
  border: 0;
154
154
  }
155
155
 
156
+ // hide chips lead when there are in panel
157
+ // FIXME: this should be handled in HTML/React, not CSS
156
158
  .p-chip {
157
- @include vf-focus;
158
-
159
- cursor: pointer;
159
+ .p-chip__lead {
160
+ display: none;
161
+ }
160
162
 
161
- &__lead {
163
+ .p-chip__lead + .p-chip__value::before {
162
164
  display: none;
163
165
  }
164
166
  }
@@ -6,7 +6,6 @@
6
6
  height: calc(#{2 * $spv-nudge + map-get($line-heights, default-text)} - #{2 * $bar-thickness}); // side padding + icon width - focus outline width * 2
7
7
  margin: $bar-thickness 0;
8
8
  position: relative;
9
- width: auto;
10
9
 
11
10
  &:hover {
12
11
  background: inherit;
@@ -90,9 +90,6 @@
90
90
  .p-side-navigation__toggle--in-drawer {
91
91
  @extend %vf-button-base;
92
92
 
93
- // override base button styles that extend button to full width on mobile
94
- width: auto;
95
-
96
93
  &::before {
97
94
  @extend %icon;
98
95
 
@@ -116,7 +113,7 @@
116
113
  }
117
114
  }
118
115
 
119
- @media (min-width: $breakpoint-large) {
116
+ @media (min-width: $threshold-6-12-col) {
120
117
  // make whole navigation sticky on large screens
121
118
  .p-side-navigation.is-sticky,
122
119
  [class*='p-side-navigation--'].is-sticky {
@@ -360,11 +357,11 @@
360
357
  #{$prop}: $multiplier * map-get($grid-margin-widths, small) + $offset;
361
358
 
362
359
  @media (min-width: $threshold-4-6-col) {
363
- #{$prop}: $multiplier * map-get($grid-margin-widths, medium) + $offset;
360
+ #{$prop}: $multiplier * map-get($grid-margin-widths, default) + $offset;
364
361
  }
365
362
 
366
363
  @media (min-width: $threshold-6-12-col) {
367
- #{$prop}: $multiplier * map-get($grid-margin-widths, large) + $offset;
364
+ #{$prop}: $multiplier * map-get($grid-margin-widths, default) + $offset;
368
365
  }
369
366
  }
370
367
 
@@ -134,7 +134,7 @@ $color-suru-slant-left-fallback: rgba(205, 205, 205, 0.14) !default;
134
134
  margin-bottom: -$padding;
135
135
  padding-bottom: ($padding * 3) !important;
136
136
 
137
- @media (min-width: $breakpoint-medium) {
137
+ @media (min-width: $threshold-6-12-col) {
138
138
  $padding: 6rem;
139
139
 
140
140
  background-position: 0% 0%, top right, right 0 bottom $padding, right bottom, 0% 0%;
@@ -3,11 +3,13 @@ $knob-size: $sp-unit * 3;
3
3
 
4
4
  @mixin vf-p-switch {
5
5
  .p-switch {
6
- height: $knob-size;
6
+ display: flex;
7
+ }
8
+
9
+ .p-switch__input {
7
10
  margin: 0;
8
- opacity: 0 !important; // override higher specificity of [type='checkbox'] selector
9
- position: absolute !important; // override higher specificity of [type='checkbox'] selector
10
- width: $knob-size * 2;
11
+ opacity: 0;
12
+ position: absolute;
11
13
 
12
14
  &:checked + .p-switch__slider::before {
13
15
  left: 50%;
@@ -31,9 +33,9 @@ $knob-size: $sp-unit * 3;
31
33
 
32
34
  background: linear-gradient(to right, $color-link 50%, $color-mid-light 50%);
33
35
  box-shadow: inset 0 2px 5px 0 transparentize($color-dark, 0.8);
34
- display: block;
36
+ display: inline-block;
35
37
  height: $knob-size;
36
- margin: $spv-nudge-compensation 0 0 0;
38
+ margin: 0;
37
39
  position: relative;
38
40
  width: $knob-size * 2;
39
41
 
@@ -49,11 +51,9 @@ $knob-size: $sp-unit * 3;
49
51
  position: absolute;
50
52
  width: $knob-size;
51
53
  }
54
+ }
52
55
 
53
- // FIXME: we shouldn't be targeting span elements here
54
- // stylelint-disable-next-line selector-max-type
55
- & span {
56
- @extend %vf-hide-text;
57
- }
56
+ .p-switch__label {
57
+ margin-left: $sph--small;
58
58
  }
59
59
  }
@@ -20,10 +20,6 @@
20
20
  flow: row;
21
21
  wrap: wrap;
22
22
  }
23
-
24
- + tr {
25
- margin: 0;
26
- }
27
23
  }
28
24
 
29
25
  th,
@@ -10,7 +10,7 @@
10
10
  text-align: left;
11
11
  }
12
12
 
13
- @media (max-width: $breakpoint-medium) {
13
+ @media (max-width: $threshold-6-12-col - 1) {
14
14
  @supports (display: grid) {
15
15
  thead {
16
16
  display: none;
@@ -56,10 +56,10 @@
56
56
  overflow: visible;
57
57
  }
58
58
 
59
- &[aria-label]::before {
60
- content: attr(aria-label);
59
+ &[data-heading]::before {
60
+ content: attr(data-heading);
61
61
  display: block;
62
- margin-bottom: map-get($sp-after, x-small) - map-get($nudges, nudge--x-small) - $sp-unit;
62
+ margin-bottom: map-get($sp-after, x-small) - map-get($nudges, x-small) - $sp-unit;
63
63
  overflow: hidden;
64
64
  padding-left: 0;
65
65
  padding-right: 0;
@@ -82,12 +82,5 @@
82
82
 
83
83
  // stylelint-enable selector-max-type
84
84
  }
85
-
86
- @media (max-width: $breakpoint-small) {
87
- // stylelint-disable-next-line selector-max-type
88
- tr {
89
- width: 100%;
90
- }
91
- }
92
85
  }
93
86
  }
@@ -6,7 +6,7 @@
6
6
  font-size: 0.875rem;
7
7
  padding: 0 $sp-large;
8
8
 
9
- @media (min-width: $breakpoint-medium) {
9
+ @media (min-width: $threshold-6-12-col) {
10
10
  border-left: 1px solid $color-mid-light;
11
11
  border-top: 0;
12
12
  padding: 0 $sp-medium;
@@ -1,8 +1,7 @@
1
1
  // Global breakpoints
2
2
  $breakpoint-x-small: 460px !default;
3
3
  $breakpoint-small: 620px !default;
4
- $breakpoint-medium: 772px !default;
5
4
  $breakpoint-large: 1036px !default;
6
- $breakpoint-navigation-threshold: $breakpoint-medium !default;
7
- $breakpoint-heading-threshold: $breakpoint-medium !default;
5
+ $breakpoint-navigation-threshold: $breakpoint-small !default;
6
+ $breakpoint-heading-threshold: $breakpoint-large !default;
8
7
  $breakpoint-x-large: 1681px !default; // exclude most laptops
@@ -39,7 +39,8 @@ $color-focus-negative: #3b0006 !default;
39
39
 
40
40
  // Button background color changes
41
41
  $hover-background-opacity-amount: 0.05;
42
- $active-background-opacity-amount: 0.08;
42
+ $active-background-opacity-amount: 0.1;
43
+
43
44
  $muted-text-opacity-amount: 0.6;
44
45
  $inactive-text-opacity-amount: 0.75;
45
46
 
@@ -92,6 +93,42 @@ $colors--light-theme--border-default: rgba($color-x-dark, 0.15) !default;
92
93
  $colors--light-theme--border-high-contrast: rgba($color-x-dark, 0.56) !default;
93
94
  $colors--light-theme--border-low-contrast: rgba($color-x-dark, 0.1) !default;
94
95
 
96
+ $colors-light-theme--tinted-backgrounds: (
97
+ neutral: (
98
+ default: #f2f2f2,
99
+ hover: adjust-color(#f2f2f2, $lightness: -100% * $hover-background-opacity-amount, $saturation: -100% * 2 * $hover-background-opacity-amount),
100
+ active: adjust-color(#f2f2f2, $lightness: -100% * $active-background-opacity-amount, $saturation: -100% * 2 * $active-background-opacity-amount),
101
+ ),
102
+ positive: (
103
+ default: hsl(129deg 90% 39% / 10%),
104
+ hover: hsl(129deg 100% 39% / #{10% + $hover-background-opacity-amount * 100%}),
105
+ active: hsl(129deg 100% 39% / #{10% + $active-background-opacity-amount * 100%}),
106
+ ),
107
+ caution: (
108
+ default: hsl(27deg 100% 39% / 10%),
109
+ hover: hsl(27deg 100% 39% / #{10% + $hover-background-opacity-amount * 100%}),
110
+ active: hsl(27deg 100% 39% / #{10% + $active-background-opacity-amount * 100%}),
111
+ ),
112
+ negative: (
113
+ default: hsl(354deg 100% 39% / 10%),
114
+ hover: hsl(354deg 100% 39% / #{10% + $hover-background-opacity-amount * 100%}),
115
+ active: hsl(354deg 100% 39% / #{10% + $active-background-opacity-amount * 100%}),
116
+ ),
117
+ information: (
118
+ default: hsl(210deg 100% 39% / 10%),
119
+ hover: hsl(210deg 100% 39% / #{10% + $hover-background-opacity-amount * 100%}),
120
+ active: hsl(210deg 100% 39% / #{10% + $active-background-opacity-amount * 100%}),
121
+ ),
122
+ );
123
+
124
+ $colors-light-theme--tinted-borders: (
125
+ neutral: $colors--light-theme--border-high-contrast,
126
+ positive: $color-positive,
127
+ caution: hsl(27deg 100% 39%),
128
+ negative: $color-negative,
129
+ information: $color-information,
130
+ );
131
+
95
132
  // Dark theme
96
133
  $colors--dark-theme--text-default: hsl(0, 0%, 100%) !default;
97
134
  $colors--dark-theme--text-hover: hsl(0, 0%, 76%) !default; // minimum contrast on primary that satisfies contrast checker AA
@@ -105,9 +142,45 @@ $colors--dark-theme--background-hover: rgba($colors--dark-theme--text-default, $
105
142
  $colors--dark-theme--background-overlay: transparentize($color-dark, 0.15) !default;
106
143
 
107
144
  $colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.2) !default;
108
- $colors--dark-theme--border-high-contrast: rgba($colors--dark-theme--text-default, 0.4) !default;
145
+ $colors--dark-theme--border-high-contrast: hsl(0deg 0% 60%) !default;
109
146
  $colors--dark-theme--border-low-contrast: rgba($colors--dark-theme--text-default, 0.1) !default;
110
147
 
148
+ $colors-dark-theme--tinted-backgrounds: (
149
+ neutral: (
150
+ default: rgba(255, 255, 255, 0.15),
151
+ hover: rgba(255, 255, 255, 0.2),
152
+ active: rgba(255, 255, 255, 0.25),
153
+ ),
154
+ positive: (
155
+ default: hsl(129deg 90% 39% / 20%),
156
+ hover: hsl(129deg 100% 39% / #{20% + 2 * $hover-background-opacity-amount * 100%}),
157
+ active: hsl(129deg 100% 39% / #{20% + 2 * $active-background-opacity-amount * 100%}),
158
+ ),
159
+ caution: (
160
+ default: hsl(27deg 100% 50% / 20%),
161
+ hover: hsl(27deg 100% 60% / #{20% + 2 * $hover-background-opacity-amount * 100%}),
162
+ active: hsl(27deg 100% 50% / #{20% + 2 * $active-background-opacity-amount * 100%}),
163
+ ),
164
+ negative: (
165
+ default: hsl(353deg 100% 70% / 20%),
166
+ hover: hsl(353deg 100% 70% / #{20% + 2 * $hover-background-opacity-amount * 100%}),
167
+ active: hsl(353deg 100% 70% / #{20% + 2 * $active-background-opacity-amount * 100%}),
168
+ ),
169
+ information: (
170
+ default: hsl(210deg 100% 50% / 20%),
171
+ hover: hsl(210deg 100% 50% / #{20% + 2 * $hover-background-opacity-amount * 100%}),
172
+ active: hsl(210deg 100% 50% / #{20% + 2 * $active-background-opacity-amount * 100%}),
173
+ ),
174
+ );
175
+
176
+ $colors-dark-theme--tinted-borders: (
177
+ neutral: hsl(0deg 0% 65%),
178
+ positive: hsl(129deg 60% 65%),
179
+ caution: hsl(27deg 80% 65%),
180
+ negative: hsl(353deg 80% 70%),
181
+ information: hsl(210deg 80% 65%),
182
+ );
183
+
111
184
  // Branding colors
112
185
  $color-brand: #333 !default;
113
186
  $color-brand-dark: $color-brand !default;
@@ -16,14 +16,12 @@ $grid-large-col-prefix: #{$grid-column-prefix} !default;
16
16
 
17
17
  $grid-gutter-widths: (
18
18
  small: $sp-unit * 3,
19
- medium: $sp-unit * 4,
20
- large: $sp-unit * 4,
19
+ default: $sp-unit * 4,
21
20
  ) !default;
22
21
 
23
22
  $grid-margin-widths: (
24
23
  small: $sp-unit * 2,
25
- medium: $sp-unit * 3,
26
- large: $sp-unit * 3,
24
+ default: $sp-unit * 3,
27
25
  ) !default;
28
26
 
29
27
  // Grid breakout template
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  // Typographic scale settings
2
4
  $ms-ratio: math.div(16, 14) !default;
3
5
  $sp-unit-ratio: 0.5 !default;
@@ -6,27 +8,26 @@ $sp-unit-ratio: 0.5 !default;
6
8
  $sp-unit: 1rem * $sp-unit-ratio !default;
7
9
 
8
10
  $font-sizes: (
9
- x-small: pow($ms-ratio, -2),
10
- small: pow($ms-ratio, -1),
11
- root: 1,
12
- h4-mobile: 1.22176,
13
- h4: pow($ms-ratio, 2),
14
- h3-mobile: pow($ms-ratio, 3),
15
- h3: pow($ms-ratio, 4),
16
- h2-mobile: 1.83274,
17
- h2: pow($ms-ratio, 6),
18
- h1-mobile: pow($ms-ratio, 6),
19
11
  h1: pow($ms-ratio, 8),
12
+ h1-mobile: pow($ms-ratio, 6),
13
+ h2: pow($ms-ratio, 6),
14
+ h2-mobile: 1.83274,
15
+ h3: pow($ms-ratio, 4),
16
+ h3-mobile: pow($ms-ratio, 3),
17
+ h4: pow($ms-ratio, 2),
18
+ h4-mobile: 1.22176,
19
+ small: pow($ms-ratio, -1),
20
+ x-small: pow($ms-ratio, -2),
20
21
  );
21
22
 
22
23
  $line-heights: (
23
24
  h1: 7 * $sp-unit,
24
- h2: 6 * $sp-unit,
25
- h3: 5 * $sp-unit,
26
- h4: 4 * $sp-unit,
27
25
  h1-mobile: 6 * $sp-unit,
26
+ h2: 6 * $sp-unit,
28
27
  h2-mobile: 5 * $sp-unit,
28
+ h3: 5 * $sp-unit,
29
29
  h3-mobile: 4 * $sp-unit,
30
+ h4: 4 * $sp-unit,
30
31
  h4-mobile: 3 * $sp-unit,
31
32
  default-text: 3 * $sp-unit,
32
33
  small: 2.5 * $sp-unit,
@@ -35,36 +36,36 @@ $line-heights: (
35
36
 
36
37
  // baseline nudges for type scale ratio of (16/14)^2
37
38
  $nudges: (
38
- nudge--h1-large: 0.15rem,
39
- nudge--h4-large: 0,
40
- nudge--h1: 0.2rem,
41
- nudge--h2: 0.2rem,
42
- nudge--h3: 0.1rem,
43
- nudge--h4: 0.05rem,
44
- nudge--h6: 0.338rem,
45
- nudge--h6-large: 0.345rem,
46
- nudge--h1-mobile: 0.165rem,
47
- nudge--h2-mobile: 0.1rem,
48
- nudge--h3-mobile: 0.5rem,
49
- nudge--h4-mobile: 0.3rem,
50
- nudge--p: 0.4rem,
51
- nudge--p-ubuntumono: 0.45rem,
52
- nudge--small: 0.05rem,
53
- nudge--x-small: 0.25rem,
39
+ h1-large: 0.15rem,
40
+ h1-mobile: 0.165rem,
41
+ h1: 0.2rem,
42
+ h2: 0.2rem,
43
+ h2-mobile: 0.1rem,
44
+ h3: 0.1rem,
45
+ h3-mobile: 0.5rem,
46
+ h4-large: 0,
47
+ h4: 0.05rem,
48
+ h4-mobile: 0.3rem,
49
+ h6: 0.338rem,
50
+ h6-large: 0.345rem,
51
+ p: 0.4rem,
52
+ p-ubuntumono: 0.45rem,
53
+ small: 0.05rem,
54
+ x-small: 0.25rem,
54
55
  ) !default;
55
56
 
56
57
  // Correct baseline drift due to browser rounding. (Visible in text > 1000 lines)
57
58
  // It is applied only to padding-top.
58
59
  $browser-rounding-compensations: (
59
- small: 0.0005rem,
60
- small-largescreen: 0.0006rem,
61
- p: 0.0005rem,
62
- h6: 0,
63
- h5: 0.001rem,
64
- h4: 0.001rem,
65
- h3: 0.001rem,
66
- h2: 0.001rem,
67
60
  h1: 0.001rem,
61
+ h2: 0.001rem,
62
+ h3: 0.001rem,
63
+ h4: 0.001rem,
64
+ h5: 0.001rem,
65
+ h6: 0,
66
+ p: 0.0005rem,
67
+ small-largescreen: 0.0006rem,
68
+ small: 0.0005rem,
68
69
  ) !default;
69
70
 
70
71
  // Main spacing variables. spv stands spacing-vertical; sph stands for spacing-horizontal.
@@ -77,6 +78,7 @@ $spv--x-large: $sp-unit * 3 !default;
77
78
  $spv--strip-regular: $sp-unit * 8 !default;
78
79
  $spv--strip-deep: $sp-unit * 12 !default;
79
80
 
81
+ $sph--x-small: $sp-unit * 0.5 !default; // to be used in place of an inline space between characters/words
80
82
  $sph--small: $sp-unit !default;
81
83
  $sph--large: $sp-unit * 2 !default;
82
84
  $sph--x-large: $sp-unit * 3 !default;
@@ -84,23 +86,23 @@ $sph--x-large: $sp-unit * 3 !default;
84
86
  // Space after text elements
85
87
  $sp-after: (
86
88
  h1: $spv--large,
89
+ h1-mobile: $spv--large,
87
90
  h2: $spv--large,
91
+ h2-mobile: $spv--large,
88
92
  h3: $spv--large,
93
+ h3-mobile: $spv--large,
89
94
  h4: $spv--large,
95
+ h4-mobile: $spv--large,
90
96
  p: $spv--x-large,
91
97
  p-dense: $spv--large,
92
- h1-mobile: $spv--large,
93
- h2-mobile: $spv--large,
94
- h3-mobile: $spv--large,
95
- h4-mobile: $spv--large,
98
+ default-text: $sp-unit,
96
99
  small: $spv--large,
97
100
  small--dense: $spv--large,
98
101
  x-small: $spv--large,
99
- default-text: $sp-unit,
100
102
  ) !default;
101
103
 
102
104
  // commonly occuring calculations available as variables
103
- $spv-nudge: map-get($nudges, nudge--p) !default; // top: nudge; bottom: unit - nudge; result: height = exact multiple of base unit
105
+ $spv-nudge: map-get($nudges, p) !default; // top: nudge; bottom: unit - nudge; result: height = exact multiple of base unit
104
106
  $spv-nudge-compensation: $sp-unit - $spv-nudge !default;
105
107
  $input-margin-bottom: $sp-unit * 4 - $spv-nudge * 2;
106
108
  $input-vertical-padding: calc(#{$spv-nudge} - 1px);
@@ -113,10 +115,10 @@ $form-tick-box-nudge: 0.15rem; // to nudge the tick box a bit below baseline (to
113
115
  $form-radio-inner-circle-diameter: 0.375rem;
114
116
  $form-radio-circle-offset: 0.5 * ($form-tick-box-size - $form-radio-inner-circle-diameter);
115
117
 
116
- $max-width--default: 40em !default;
118
+ $text-max-width: 40em !default;
117
119
 
118
120
  $icon-sizes: (
119
- accordion: $sp-unit * 1.5,
121
+ small: $sp-unit * 1.5,
120
122
  default: $sp-unit * 2,
121
123
  heading-icon--x-small: $sp-unit * 3,
122
124
  heading-icon--small: $sp-unit * 4,
@@ -7,3 +7,4 @@ $theme-default-p-divider: 'light' !default;
7
7
  $theme-default-p-contextual-menu: 'light' !default;
8
8
  $theme-default-p-inline-list--middot: 'light' !default;
9
9
  $theme-default-p-button: 'light' !default;
10
+ $theme-default-p-chip: 'light' !default;
@@ -60,10 +60,10 @@
60
60
  }
61
61
 
62
62
  .u-align-text--small-to-default {
63
- padding-top: map-get($nudges, nudge--small) + $sp-unit;
63
+ padding-top: map-get($nudges, small) + $sp-unit;
64
64
  }
65
65
 
66
66
  .u-align-text--x-small-to-default {
67
- padding-top: map-get($nudges, nudge--x-small) + $sp-unit;
67
+ padding-top: map-get($nudges, x-small) + $sp-unit;
68
68
  }
69
69
  }
@@ -4,7 +4,7 @@
4
4
  @mixin vf-u-equal-height {
5
5
  // Default equal-height pattern styles
6
6
  .u-equal-height {
7
- @media (min-width: $breakpoint-medium) {
7
+ @media (min-width: $threshold-6-12-col) {
8
8
  display: flex;
9
9
 
10
10
  &.row {