vanilla-framework 2.37.0 → 3.0.0-beta.2

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 (143) hide show
  1. package/README.md +1 -1
  2. package/_index.scss +1 -0
  3. package/package.json +11 -9
  4. package/scss/_base_blockquotes.scss +2 -2
  5. package/scss/_base_button.scss +9 -27
  6. package/scss/_base_code.scss +8 -9
  7. package/scss/_base_details.scss +3 -3
  8. package/scss/_base_forms-range.scss +1 -45
  9. package/scss/_base_forms.scss +12 -23
  10. package/scss/_base_grid-definitions.scss +2 -23
  11. package/scss/_base_hr.scss +1 -1
  12. package/scss/_base_icon-definitions.scss +0 -24
  13. package/scss/_base_lists.scss +5 -5
  14. package/scss/_base_media.scss +1 -6
  15. package/scss/_base_placeholders.scss +27 -30
  16. package/scss/_base_tables.scss +7 -7
  17. package/scss/_base_typography-definitions.scss +50 -58
  18. package/scss/_base_typography.scss +8 -18
  19. package/scss/_global_functions.scss +3 -11
  20. package/scss/_layouts_application-panels.scss +1 -1
  21. package/scss/_layouts_application.scss +1 -1
  22. package/scss/_layouts_fluid-breakout.scss +40 -150
  23. package/scss/_patterns_accordion.scss +16 -71
  24. package/scss/_patterns_article-pagination.scss +3 -6
  25. package/scss/_patterns_breadcrumbs.scss +1 -1
  26. package/scss/_patterns_buttons.scss +1 -35
  27. package/scss/_patterns_card.scss +8 -8
  28. package/scss/_patterns_chip.scss +89 -47
  29. package/scss/_patterns_code-snippet.scss +7 -7
  30. package/scss/_patterns_contextual-menu.scss +1 -1
  31. package/scss/_patterns_divider.scss +4 -4
  32. package/scss/_patterns_form-help-text.scss +2 -2
  33. package/scss/_patterns_form-password-toggle.scss +0 -6
  34. package/scss/_patterns_form-tick-elements.scss +217 -27
  35. package/scss/_patterns_form-validation.scss +2 -2
  36. package/scss/_patterns_forms.scss +7 -7
  37. package/scss/_patterns_grid.scss +6 -20
  38. package/scss/_patterns_heading-icon.scss +7 -7
  39. package/scss/_patterns_headings.scss +0 -26
  40. package/scss/_patterns_icons.scss +0 -58
  41. package/scss/_patterns_label.scss +1 -1
  42. package/scss/_patterns_links.scss +4 -33
  43. package/scss/_patterns_list-tree.scss +0 -1
  44. package/scss/_patterns_lists.scss +17 -32
  45. package/scss/_patterns_logo-section.scss +7 -5
  46. package/scss/_patterns_matrix.scss +19 -21
  47. package/scss/_patterns_media-object.scss +4 -4
  48. package/scss/_patterns_modal.scss +9 -9
  49. package/scss/_patterns_navigation.scss +317 -312
  50. package/scss/_patterns_notifications.scss +15 -57
  51. package/scss/_patterns_pagination.scss +6 -6
  52. package/scss/_patterns_pull-quotes.scss +4 -4
  53. package/scss/_patterns_search-and-filter.scss +8 -8
  54. package/scss/_patterns_search-box.scss +2 -3
  55. package/scss/_patterns_separator.scss +4 -4
  56. package/scss/_patterns_side-navigation.scss +12 -15
  57. package/scss/_patterns_strip.scss +1 -1
  58. package/scss/_patterns_switch.scss +11 -11
  59. package/scss/_patterns_table-expanding.scss +0 -13
  60. package/scss/_patterns_table-icons.scss +2 -2
  61. package/scss/_patterns_table-mobile-card.scss +4 -11
  62. package/scss/_patterns_table-of-contents.scss +1 -1
  63. package/scss/_patterns_tabs.scss +2 -2
  64. package/scss/_patterns_tooltips.scss +5 -5
  65. package/scss/_settings_breakpoints.scss +2 -3
  66. package/scss/_settings_colors.scss +18 -0
  67. package/scss/_settings_grid.scss +1 -4
  68. package/scss/_settings_spacing.scss +76 -98
  69. package/scss/_settings_system.scss +1 -7
  70. package/scss/_utilities_baseline-grid.scss +1 -1
  71. package/scss/_utilities_content-align.scss +2 -2
  72. package/scss/_utilities_embedded-media.scss +2 -2
  73. package/scss/_utilities_equal-height.scss +1 -1
  74. package/scss/_utilities_floats.scss +4 -4
  75. package/scss/_utilities_hide.scss +8 -8
  76. package/scss/_utilities_image-position.scss +1 -1
  77. package/scss/_utilities_show.scss +2 -6
  78. package/scss/_utilities_vertical-spacing.scss +6 -12
  79. package/scss/_vanilla.scss +0 -11
  80. package/scss/_base_forms-tick-elements.scss +0 -607
  81. package/scss/_base_typography-max-widths.scss +0 -36
  82. package/scss/_patterns_code-copyable.scss +0 -43
  83. package/scss/_patterns_code-numbered.scss +0 -13
  84. package/scss/_patterns_inline-images.scss +0 -37
  85. package/scss/_patterns_subnav.scss +0 -210
  86. package/scss/standalone/base.scss +0 -2
  87. package/scss/standalone/custom.scss +0 -7
  88. package/scss/standalone/dark.scss +0 -11
  89. package/scss/standalone/example.scss +0 -15
  90. package/scss/standalone/import.scss +0 -2
  91. package/scss/standalone/layouts_fluid-breakout-full.scss +0 -8
  92. package/scss/standalone/layouts_fluid-breakout.scss +0 -8
  93. package/scss/standalone/patterns_accordion.scss +0 -6
  94. package/scss/standalone/patterns_article-pagination.scss +0 -4
  95. package/scss/standalone/patterns_breadcrumbs.scss +0 -4
  96. package/scss/standalone/patterns_buttons.scss +0 -9
  97. package/scss/standalone/patterns_card.scss +0 -9
  98. package/scss/standalone/patterns_chip.scss +0 -6
  99. package/scss/standalone/patterns_code-copyable.scss +0 -4
  100. package/scss/standalone/patterns_code-numbered.scss +0 -4
  101. package/scss/standalone/patterns_code-snippet.scss +0 -6
  102. package/scss/standalone/patterns_contextual-menu.scss +0 -9
  103. package/scss/standalone/patterns_divider.scss +0 -7
  104. package/scss/standalone/patterns_form-password-toggle.scss +0 -19
  105. package/scss/standalone/patterns_form-tick-elements.scss +0 -13
  106. package/scss/standalone/patterns_forms.scss +0 -17
  107. package/scss/standalone/patterns_grid.scss +0 -4
  108. package/scss/standalone/patterns_heading-icon.scss +0 -4
  109. package/scss/standalone/patterns_headings.scss +0 -4
  110. package/scss/standalone/patterns_icons-additional.scss +0 -104
  111. package/scss/standalone/patterns_icons.scss +0 -7
  112. package/scss/standalone/patterns_image.scss +0 -4
  113. package/scss/standalone/patterns_inline-images.scss +0 -4
  114. package/scss/standalone/patterns_label.scss +0 -4
  115. package/scss/standalone/patterns_links.scss +0 -4
  116. package/scss/standalone/patterns_list-tree.scss +0 -4
  117. package/scss/standalone/patterns_lists.scss +0 -4
  118. package/scss/standalone/patterns_logo-section.scss +0 -4
  119. package/scss/standalone/patterns_matrix.scss +0 -4
  120. package/scss/standalone/patterns_media-object.scss +0 -4
  121. package/scss/standalone/patterns_modal.scss +0 -9
  122. package/scss/standalone/patterns_muted-heading.scss +0 -4
  123. package/scss/standalone/patterns_navigation.scss +0 -4
  124. package/scss/standalone/patterns_notifications.scss +0 -11
  125. package/scss/standalone/patterns_pagination.scss +0 -7
  126. package/scss/standalone/patterns_pull-quotes.scss +0 -4
  127. package/scss/standalone/patterns_search-and-filter.scss +0 -8
  128. package/scss/standalone/patterns_search-box.scss +0 -15
  129. package/scss/standalone/patterns_separator.scss +0 -4
  130. package/scss/standalone/patterns_side-navigation.scss +0 -11
  131. package/scss/standalone/patterns_skip-link.scss +0 -8
  132. package/scss/standalone/patterns_slider.scss +0 -4
  133. package/scss/standalone/patterns_strip.scss +0 -10
  134. package/scss/standalone/patterns_subnav.scss +0 -9
  135. package/scss/standalone/patterns_switch.scss +0 -4
  136. package/scss/standalone/patterns_tab-buttons.scss +0 -7
  137. package/scss/standalone/patterns_table-expanding.scss +0 -10
  138. package/scss/standalone/patterns_table-mobile-card.scss +0 -10
  139. package/scss/standalone/patterns_table-of-contents.scss +0 -7
  140. package/scss/standalone/patterns_table-overflow.scss +0 -10
  141. package/scss/standalone/patterns_table-sortable.scss +0 -10
  142. package/scss/standalone/patterns_tabs.scss +0 -4
  143. package/scss/standalone/patterns_tooltips.scss +0 -6
@@ -35,18 +35,16 @@
35
35
 
36
36
  %vf-card-padding {
37
37
  overflow: auto;
38
- padding: $spv-inner--large;
38
+ padding: $spv--large;
39
39
  }
40
40
 
41
41
  %vf-card {
42
42
  @extend %vf-bg--x-light;
43
43
  @extend %vf-card-padding;
44
44
 
45
- margin-bottom: $spv-outer--scaleable;
46
- }
47
-
48
- %vf-card-inner {
49
- @extend %vf-card-padding;
45
+ margin-bottom: $spv--x-large;
46
+ overflow: auto; // prevent overflow of child margins
47
+ padding: $spv--large;
50
48
  }
51
49
 
52
50
  //accordion, table
@@ -102,38 +100,37 @@
102
100
 
103
101
  // Spacing
104
102
  %section-padding--shallow {
105
- padding-bottom: $spv-outer--shallow-scaleable * 0.5;
106
- padding-top: $spv-outer--shallow-scaleable * 0.5;
103
+ padding-bottom: $spv--x-large * 0.5;
104
+ padding-top: $spv--x-large * 0.5;
107
105
 
108
106
  @media (min-width: $breakpoint-large) {
109
- padding-bottom: $spv-outer--shallow-scaleable;
110
- padding-top: $spv-outer--shallow-scaleable;
107
+ padding-bottom: $spv--x-large;
108
+ padding-top: $spv--x-large;
111
109
  }
112
110
  }
113
111
 
114
112
  %section-padding--default {
115
- padding-bottom: $spv-outer--regular-scaleable * 0.5;
116
- padding-top: $spv-outer--regular-scaleable * 0.5;
113
+ padding-bottom: $spv--strip-regular * 0.5;
114
+ padding-top: $spv--strip-regular * 0.5;
117
115
 
118
116
  @media (min-width: $breakpoint-large) {
119
- padding-bottom: $spv-outer--regular-scaleable;
120
- padding-top: $spv-outer--regular-scaleable;
117
+ padding-bottom: $spv--strip-regular;
118
+ padding-top: $spv--strip-regular;
121
119
  }
122
120
  }
123
121
 
124
122
  %section-padding--deep {
125
- padding: $spv-outer--deep-scaleable * 0.5 0 $spv-outer--deep-scaleable * 0.5;
123
+ padding: $spv--strip-deep * 0.5 0 $spv--strip-deep * 0.5;
126
124
 
127
125
  @media (min-width: $breakpoint-large) {
128
- padding: $spv-outer--deep-scaleable 0;
126
+ padding: $spv--strip-deep 0;
129
127
  }
130
128
  }
131
129
 
132
130
  // Utilities
133
131
  %vf-hide-text {
134
132
  overflow: hidden;
135
- // vw value necessary because text indent in % does not work with padding,
136
- // and IE 11 does not support calc() on text-indent;
133
+ // vw value necessary because text indent in % does not work with padding;
137
134
  // 110vw ensures the text is off the screen, and in most cases will
138
135
  // still be smaller than 9999px, so should have better performance
139
136
  text-indent: 110vw;
@@ -153,55 +150,55 @@
153
150
  }
154
151
 
155
152
  %u-no-margin--bottom--h1 {
156
- margin-bottom: -#{map-get($nudges, nudge--h1-mobile)} !important;
153
+ margin-bottom: -#{map-get($nudges, h1-mobile)} !important;
157
154
 
158
155
  @media (min-width: $breakpoint-heading-threshold) {
159
- margin-bottom: -#{map-get($nudges, nudge--h1)} !important;
156
+ margin-bottom: -#{map-get($nudges, h1)} !important;
160
157
  }
161
158
 
162
159
  @if ($increase-font-size-on-larger-screens) {
163
160
  @media (min-width: $breakpoint-x-large) {
164
- margin-bottom: -#{map-get($nudges, nudge--h1-large)} !important;
161
+ margin-bottom: -#{map-get($nudges, h1-large)} !important;
165
162
  }
166
163
  }
167
164
  }
168
165
 
169
166
  %u-no-margin--bottom--h2 {
170
- margin-bottom: -#{map-get($nudges, nudge--h2-mobile)} !important;
167
+ margin-bottom: -#{map-get($nudges, h2-mobile)} !important;
171
168
 
172
169
  @media (min-width: $breakpoint-heading-threshold) {
173
- margin-bottom: -#{map-get($nudges, nudge--h2)} !important;
170
+ margin-bottom: -#{map-get($nudges, h2)} !important;
174
171
  }
175
172
  }
176
173
 
177
174
  %u-no-margin--bottom--h3 {
178
- margin-bottom: #{$sp-unit - map-get($nudges, nudge--h3-mobile)} !important;
175
+ margin-bottom: #{$sp-unit - map-get($nudges, h3-mobile)} !important;
179
176
 
180
177
  @media (min-width: $breakpoint-heading-threshold) {
181
- margin-bottom: -#{map-get($nudges, nudge--h3)} !important;
178
+ margin-bottom: -#{map-get($nudges, h3)} !important;
182
179
  }
183
180
  }
184
181
 
185
182
  %u-no-margin--bottom--h4 {
186
- margin-bottom: #{$sp-unit - map-get($nudges, nudge--h4-mobile)} !important;
183
+ margin-bottom: #{$sp-unit - map-get($nudges, h4-mobile)} !important;
187
184
 
188
185
  @media (min-width: $breakpoint-heading-threshold) {
189
- margin-bottom: -#{map-get($nudges, nudge--h4)} !important;
186
+ margin-bottom: -#{map-get($nudges, h4)} !important;
190
187
  }
191
188
 
192
189
  @if ($increase-font-size-on-larger-screens) {
193
190
  @media (min-width: $breakpoint-x-large) {
194
- margin-bottom: -#{map-get($nudges, nudge--h4-large)} !important;
191
+ margin-bottom: -#{map-get($nudges, h4-large)} !important;
195
192
  }
196
193
  }
197
194
  }
198
195
 
199
196
  %u-no-margin--bottom--default-text {
200
- margin-bottom: #{$sp-unit - map-get($nudges, nudge--p)} !important;
197
+ margin-bottom: #{$sp-unit - map-get($nudges, p)} !important;
201
198
  }
202
199
 
203
200
  %u-no-margin--bottom--small {
204
- margin-bottom: -#{map-get($nudges, nudge--small)} !important;
201
+ margin-bottom: -#{map-get($nudges, small)} !important;
205
202
  }
206
203
 
207
204
  %u-no-margin--bottom--hr {
@@ -8,7 +8,7 @@
8
8
  border-collapse: collapse;
9
9
  caption-side: bottom;
10
10
  line-height: map-get($line-heights, default-text);
11
- margin-bottom: $spv-outer--scaleable;
11
+ margin-bottom: $spv--x-large;
12
12
  overflow-x: auto;
13
13
  width: 100%;
14
14
 
@@ -25,8 +25,8 @@
25
25
 
26
26
  font-weight: $font-weight-regular-text;
27
27
  overflow: hidden;
28
- padding-left: $sph-inner--small;
29
- padding-right: $sph-inner--small;
28
+ padding-left: $sph--small;
29
+ padding-right: $sph--small;
30
30
  text-align: left;
31
31
  text-overflow: ellipsis;
32
32
  vertical-align: top;
@@ -40,8 +40,8 @@
40
40
  th {
41
41
  @extend %table-header-label;
42
42
 
43
- padding-bottom: $spv-inner--large - map-get($nudges, nudge--x-small);
44
- padding-top: map-get($nudges, nudge--x-small) + map-get($browser-rounding-compensations, small) + $sp-unit;
43
+ padding-bottom: $spv--large - map-get($nudges, x-small);
44
+ padding-top: map-get($nudges, x-small) + map-get($browser-rounding-compensations, small) + $sp-unit;
45
45
  }
46
46
 
47
47
  tr {
@@ -65,8 +65,8 @@
65
65
  }
66
66
 
67
67
  caption {
68
- padding-bottom: $spv-inner--small;
69
- padding-top: $spv-inner--small;
68
+ padding-bottom: $spv--small;
69
+ padding-top: $spv--small;
70
70
  }
71
71
  // stylelint-enable selector-max-type
72
72
 
@@ -1,29 +1,26 @@
1
- @import 'base_typography-max-widths';
2
-
3
1
  @mixin vf-b-typography-definitions {
4
2
  //@section Heading styling in placeholders
5
3
  %vf-heading-1 {
6
- @include heading-max-width--short;
7
-
8
4
  font-size: #{map-get($font-sizes, h1-mobile)}rem;
9
5
  font-style: normal;
10
6
  font-weight: $font-weight-display-heading;
11
7
  line-height: map-get($line-heights, h1-mobile);
12
- margin-bottom: map-get($sp-after, h1-mobile) - map-get($nudges, nudge--h1-mobile);
8
+ margin-bottom: map-get($sp-after, h1-mobile) - map-get($nudges, h1-mobile);
13
9
  margin-top: 0;
14
- padding-top: map-get($nudges, nudge--h1-mobile) + map-get($browser-rounding-compensations, h1);
10
+ max-width: $text-max-width;
11
+ padding-top: map-get($nudges, h1-mobile) + map-get($browser-rounding-compensations, h1);
15
12
 
16
13
  @media (min-width: $breakpoint-heading-threshold) {
17
14
  font-size: #{map-get($font-sizes, h1)}rem;
18
15
  line-height: map-get($line-heights, h1);
19
- margin-bottom: map-get($sp-after, h1) - map-get($nudges, nudge--h1);
20
- padding-top: map-get($nudges, nudge--h1) + map-get($browser-rounding-compensations, h1);
16
+ margin-bottom: map-get($sp-after, h1) - map-get($nudges, h1);
17
+ padding-top: map-get($nudges, h1) + map-get($browser-rounding-compensations, h1);
21
18
  }
22
19
 
23
20
  @if ($increase-font-size-on-larger-screens) {
24
21
  @media (min-width: $breakpoint-x-large) {
25
- margin-bottom: map-get($sp-after, h1) - map-get($nudges, nudge--h1-large);
26
- padding-top: map-get($nudges, nudge--h1-large) + map-get($browser-rounding-compensations, h1);
22
+ margin-bottom: map-get($sp-after, h1) - map-get($nudges, h1-large);
23
+ padding-top: map-get($nudges, h1-large) + map-get($browser-rounding-compensations, h1);
27
24
  }
28
25
  }
29
26
 
@@ -33,21 +30,20 @@
33
30
  }
34
31
 
35
32
  %vf-heading-2 {
36
- @include heading-max-width--short;
37
-
38
33
  font-size: #{map-get($font-sizes, h2-mobile)}rem;
39
34
  font-style: normal;
40
35
  font-weight: $font-weight-display-heading;
41
36
  line-height: map-get($line-heights, h2-mobile);
42
- margin-bottom: map-get($sp-after, h2-mobile) - map-get($nudges, nudge--h2-mobile);
37
+ margin-bottom: map-get($sp-after, h2-mobile) - map-get($nudges, h2-mobile);
43
38
  margin-top: 0;
44
- padding-top: map-get($nudges, nudge--h2-mobile) + map-get($browser-rounding-compensations, h2);
39
+ max-width: $text-max-width;
40
+ padding-top: map-get($nudges, h2-mobile) + map-get($browser-rounding-compensations, h2);
45
41
 
46
42
  @media (min-width: $breakpoint-heading-threshold) {
47
43
  font-size: #{map-get($font-sizes, h2)}rem;
48
44
  line-height: map-get($line-heights, h2);
49
- margin-bottom: map-get($sp-after, h2) - map-get($nudges, nudge--h2);
50
- padding-top: map-get($nudges, nudge--h2) + map-get($browser-rounding-compensations, h2);
45
+ margin-bottom: map-get($sp-after, h2) - map-get($nudges, h2);
46
+ padding-top: map-get($nudges, h2) + map-get($browser-rounding-compensations, h2);
51
47
  }
52
48
 
53
49
  &.u-no-margin--bottom {
@@ -56,21 +52,20 @@
56
52
  }
57
53
 
58
54
  %vf-heading-3 {
59
- @include heading-max-width--long;
60
-
61
55
  font-size: #{map-get($font-sizes, h3-mobile)}rem;
62
56
  font-style: normal;
63
57
  font-weight: $font-weight-display-heading;
64
58
  line-height: map-get($line-heights, h3-mobile);
65
- margin-bottom: map-get($sp-after, h3-mobile) - map-get($nudges, nudge--h3-mobile);
59
+ margin-bottom: map-get($sp-after, h3-mobile) - map-get($nudges, h3-mobile);
66
60
  margin-top: 0;
67
- padding-top: map-get($nudges, nudge--h3-mobile);
61
+ max-width: $text-max-width;
62
+ padding-top: map-get($nudges, h3-mobile);
68
63
 
69
64
  @media (min-width: $breakpoint-heading-threshold) {
70
65
  font-size: #{map-get($font-sizes, h3)}rem;
71
66
  line-height: map-get($line-heights, h3);
72
- margin-bottom: map-get($sp-after, h3) - map-get($nudges, nudge--h3);
73
- padding-top: map-get($nudges, nudge--h3) + map-get($browser-rounding-compensations, h3);
67
+ margin-bottom: map-get($sp-after, h3) - map-get($nudges, h3);
68
+ padding-top: map-get($nudges, h3) + map-get($browser-rounding-compensations, h3);
74
69
  }
75
70
 
76
71
  &.u-no-margin--bottom {
@@ -79,27 +74,26 @@
79
74
  }
80
75
 
81
76
  %vf-heading-4 {
82
- @include heading-max-width--long;
83
-
84
77
  font-size: #{map-get($font-sizes, h4-mobile)}rem;
85
78
  font-style: normal;
86
79
  font-weight: $font-weight-regular-text;
87
80
  line-height: map-get($line-heights, h4-mobile);
88
- margin-bottom: map-get($sp-after, h4-mobile) - map-get($nudges, nudge--h4-mobile);
81
+ margin-bottom: map-get($sp-after, h4-mobile) - map-get($nudges, h4-mobile);
89
82
  margin-top: 0;
90
- padding-top: map-get($nudges, nudge--h4-mobile) + map-get($browser-rounding-compensations, h4);
83
+ max-width: $text-max-width;
84
+ padding-top: map-get($nudges, h4-mobile) + map-get($browser-rounding-compensations, h4);
91
85
 
92
86
  @media (min-width: $breakpoint-heading-threshold) {
93
87
  font-size: #{map-get($font-sizes, h4)}rem;
94
88
  line-height: map-get($line-heights, h4);
95
- margin-bottom: map-get($sp-after, h4) - map-get($nudges, nudge--h4);
96
- padding-top: map-get($nudges, nudge--h4) + map-get($browser-rounding-compensations, h4);
89
+ margin-bottom: map-get($sp-after, h4) - map-get($nudges, h4);
90
+ padding-top: map-get($nudges, h4) + map-get($browser-rounding-compensations, h4);
97
91
  }
98
92
 
99
93
  @if ($increase-font-size-on-larger-screens) {
100
94
  @media (min-width: $breakpoint-x-large) {
101
- margin-bottom: map-get($sp-after, h4) - map-get($nudges, nudge--h4-large);
102
- padding-top: map-get($nudges, nudge--h4-large) + map-get($browser-rounding-compensations, h4);
95
+ margin-bottom: map-get($sp-after, h4) - map-get($nudges, h4-large);
96
+ padding-top: map-get($nudges, h4-large) + map-get($browser-rounding-compensations, h4);
103
97
  }
104
98
  }
105
99
 
@@ -109,15 +103,14 @@
109
103
  }
110
104
 
111
105
  %vf-heading-5 {
112
- @include p-max-width;
113
-
114
106
  font-size: 1rem;
115
107
  font-style: normal;
116
108
  font-weight: $font-weight-bold;
117
109
  line-height: map-get($line-heights, default-text);
118
- margin-bottom: map-get($sp-after, p) - map-get($nudges, nudge--p);
110
+ margin-bottom: map-get($sp-after, p) - map-get($nudges, p);
119
111
  margin-top: 0;
120
- padding-top: map-get($nudges, nudge--p) + map-get($browser-rounding-compensations, h5);
112
+ max-width: $text-max-width;
113
+ padding-top: map-get($nudges, p) + map-get($browser-rounding-compensations, h5);
121
114
 
122
115
  &.u-no-margin--bottom {
123
116
  @extend %u-no-margin--bottom--default-text;
@@ -125,19 +118,18 @@
125
118
  }
126
119
 
127
120
  %vf-heading-6 {
128
- @include p-max-width;
129
-
130
121
  font-size: 1rem;
131
122
  font-style: italic;
132
123
  font-weight: $font-weight-regular-text;
133
124
  line-height: map-get($line-heights, default-text);
134
- margin-bottom: map-get($sp-after, p) - map-get($nudges, nudge--p);
125
+ margin-bottom: map-get($sp-after, p) - map-get($nudges, p);
135
126
  margin-top: 0;
136
- padding-top: map-get($nudges, nudge--h6) + map-get($browser-rounding-compensations, h6);
127
+ max-width: $text-max-width;
128
+ padding-top: map-get($nudges, h6) + map-get($browser-rounding-compensations, h6);
137
129
 
138
130
  @if ($increase-font-size-on-larger-screens) {
139
131
  @media (min-width: $breakpoint-x-large) {
140
- padding-top: map-get($nudges, nudge--h6-large) + map-get($browser-rounding-compensations, h6);
132
+ padding-top: map-get($nudges, h6-large) + map-get($browser-rounding-compensations, h6);
141
133
  }
142
134
  }
143
135
 
@@ -149,19 +141,19 @@
149
141
  %common-default-text-properties {
150
142
  line-height: map-get($line-heights, default-text);
151
143
  margin-top: 0;
152
- padding-top: map-get($nudges, nudge--p) + map-get($browser-rounding-compensations, p);
144
+ padding-top: map-get($nudges, p) + map-get($browser-rounding-compensations, p);
153
145
  }
154
146
 
155
147
  %default-text {
156
148
  @extend %common-default-text-properties;
157
149
 
158
- margin-bottom: map-get($sp-after, default-text) - map-get($nudges, nudge--p);
150
+ margin-bottom: map-get($sp-after, default-text) - map-get($nudges, p);
159
151
  }
160
152
 
161
153
  %paragraph {
162
154
  @extend %common-default-text-properties;
163
155
 
164
- margin-bottom: map-get($sp-after, p) - map-get($nudges, nudge--p);
156
+ margin-bottom: map-get($sp-after, p) - map-get($nudges, p);
165
157
 
166
158
  &:not([class*='p-heading--']):not([class*='p-muted-heading']) + & {
167
159
  margin-top: -#{$sp-unit};
@@ -175,12 +167,12 @@
175
167
  %small-text {
176
168
  font-size: #{map-get($font-sizes, small)}rem;
177
169
  line-height: map-get($line-heights, small);
178
- margin-bottom: map-get($sp-after, small) - map-get($nudges, nudge--small);
179
- padding-top: map-get($nudges, nudge--small) + map-get($browser-rounding-compensations, small);
170
+ margin-bottom: map-get($sp-after, small) - map-get($nudges, small);
171
+ padding-top: map-get($nudges, small) + map-get($browser-rounding-compensations, small);
180
172
 
181
173
  @if ($increase-font-size-on-larger-screens) {
182
174
  @media (min-width: $breakpoint-x-large) {
183
- padding-top: map-get($nudges, nudge--small) + map-get($browser-rounding-compensations, small-largescreen);
175
+ padding-top: map-get($nudges, small) + map-get($browser-rounding-compensations, small-largescreen);
184
176
  }
185
177
  }
186
178
 
@@ -193,12 +185,12 @@
193
185
  font-size: #{map-get($font-sizes, x-small)}rem;
194
186
  font-weight: $font-weight-bold;
195
187
  line-height: map-get($line-heights, x-small);
196
- margin-bottom: map-get($sp-after, x-small) - map-get($nudges, nudge--x-small);
197
- padding-top: map-get($nudges, nudge--x-small) + map-get($browser-rounding-compensations, small);
188
+ margin-bottom: map-get($sp-after, x-small) - map-get($nudges, x-small);
189
+ padding-top: map-get($nudges, x-small) + map-get($browser-rounding-compensations, small);
198
190
 
199
191
  @if ($increase-font-size-on-larger-screens) {
200
192
  @media (min-width: $breakpoint-x-large) {
201
- padding-top: map-get($nudges, nudge--x-small) + map-get($browser-rounding-compensations, small-largescreen);
193
+ padding-top: map-get($nudges, x-small) + map-get($browser-rounding-compensations, small-largescreen);
202
194
  }
203
195
  }
204
196
 
@@ -234,42 +226,42 @@
234
226
  // Placeholder naming: $sp + -- + {preceding element} + {following element}, e.g. for p + h1: $sp--ph1
235
227
 
236
228
  %sp--ph1 {
237
- padding-top: map-get($nudges, nudge--h1-mobile) + $spv-outer--scaleable;
229
+ padding-top: map-get($nudges, h1-mobile) + $spv--x-large;
238
230
 
239
231
  @media (min-width: $breakpoint-heading-threshold) {
240
- padding-top: map-get($nudges, nudge--h1) + $spv-outer--scaleable;
232
+ padding-top: map-get($nudges, h1) + $spv--x-large;
241
233
  }
242
234
  }
243
235
 
244
236
  %sp--ph2 {
245
- padding-top: map-get($nudges, nudge--h2-mobile) + $spv-outer--scaleable;
237
+ padding-top: map-get($nudges, h2-mobile) + $spv--x-large;
246
238
 
247
239
  @media (min-width: $breakpoint-heading-threshold) {
248
- padding-top: map-get($nudges, nudge--h2) + $spv-outer--scaleable;
240
+ padding-top: map-get($nudges, h2) + $spv--x-large;
249
241
  }
250
242
  }
251
243
 
252
244
  %sp--ph3 {
253
- padding-top: map-get($nudges, nudge--h3-mobile) + $spv-outer--scaleable;
245
+ padding-top: map-get($nudges, h3-mobile) + $spv--x-large;
254
246
 
255
247
  @media (min-width: $breakpoint-heading-threshold) {
256
- padding-top: map-get($nudges, nudge--h3) + $spv-outer--scaleable;
248
+ padding-top: map-get($nudges, h3) + $spv--x-large;
257
249
  }
258
250
  }
259
251
 
260
252
  %sp--ph4 {
261
- padding-top: map-get($nudges, nudge--h4-mobile) + $spv-outer--scaleable;
253
+ padding-top: map-get($nudges, h4-mobile) + $spv--x-large;
262
254
 
263
255
  @media (min-width: $breakpoint-heading-threshold) {
264
- padding-top: map-get($nudges, nudge--h4) + $spv-outer--scaleable;
256
+ padding-top: map-get($nudges, h4) + $spv--x-large;
265
257
  }
266
258
  }
267
259
 
268
260
  %sp--ph5 {
269
- padding-top: map-get($nudges, nudge--p) + $spv-outer--scaleable;
261
+ padding-top: map-get($nudges, p) + $spv--x-large;
270
262
  }
271
263
 
272
264
  %sp--pmuted {
273
- padding-top: map-get($nudges, nudge--small) + $spv-outer--scaleable;
265
+ padding-top: map-get($nudges, small) + $spv--x-large;
274
266
  }
275
267
  }
@@ -1,16 +1,11 @@
1
1
  @import 'settings';
2
2
  @import 'base_fontfaces';
3
- @import 'base_typography-max-widths';
4
3
  @import 'base_typography-heading-mixins';
5
4
 
6
5
  // Typographic element styles
7
6
  @mixin vf-b-typography {
8
7
  @include vf-b-typography-fontfaces;
9
8
 
10
- @include deprecate('3.0.0', 'The unused `vf-b-typography-max-widths` mixin will be removed') {
11
- @include vf-b-typography-max-widths;
12
- }
13
-
14
9
  // stylelint-disable selector-max-type -- base styles can use type selectors
15
10
  html {
16
11
  color: $color-dark;
@@ -62,7 +57,8 @@
62
57
 
63
58
  p {
64
59
  @extend %paragraph;
65
- @include p-max-width;
60
+
61
+ max-width: $text-max-width;
66
62
  }
67
63
 
68
64
  .p-text--default {
@@ -74,7 +70,7 @@
74
70
  @extend %small-text;
75
71
 
76
72
  &.dense {
77
- margin-bottom: map-get($sp-after, small--dense) + map-get($line-heights, default-text) - map-get($line-heights, small) - map-get($nudges, nudge--small);
73
+ margin-bottom: map-get($sp-after, small--dense) + map-get($line-heights, default-text) - map-get($line-heights, small) - map-get($nudges, small);
78
74
  }
79
75
  }
80
76
 
@@ -92,35 +88,29 @@
92
88
  //@section Adjusted spacing for headings (or a p) following a paragraph
93
89
  p:not([class*='p-heading--']):not([class*='p-muted-heading']) {
94
90
  & + h1,
95
- & + .p-heading--1,
96
- & + .p-heading--one {
91
+ & + .p-heading--1 {
97
92
  @extend %sp--ph1;
98
93
  }
99
94
 
100
95
  & + h2,
101
- & + .p-heading--2,
102
- & + .p-heading--two {
96
+ & + .p-heading--2 {
103
97
  @extend %sp--ph2;
104
98
  }
105
99
 
106
100
  & + h3,
107
- & + .p-heading--3,
108
- & + .p-heading--three {
101
+ & + .p-heading--3 {
109
102
  @extend %sp--ph3;
110
103
  }
111
104
 
112
105
  & + h4,
113
- & + .p-heading--4,
114
- & + .p-heading--four {
106
+ & + .p-heading--4 {
115
107
  @extend %sp--ph4;
116
108
  }
117
109
 
118
110
  & + h5,
119
111
  & + .p-heading--5,
120
- & + .p-heading--five,
121
112
  & + h6,
122
- & + .p-heading--6,
123
- & + .p-heading--six {
113
+ & + .p-heading--6 {
124
114
  @extend %sp--ph5;
125
115
  }
126
116
 
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  // Functions used across multiple patterns or utils
2
4
 
3
5
  /// Replace `$search` with `$replace` in `$string`
@@ -38,16 +40,6 @@
38
40
  }
39
41
  }
40
42
 
41
- @mixin vf-external-link-color($color-link: $color-link, $color-icon: currentColor) {
42
- .p-link--external {
43
- color: $color-link;
44
-
45
- &::after {
46
- background-color: $color-icon;
47
- }
48
- }
49
- }
50
-
51
43
  // Returns the font color to be presented on the passed background-color
52
44
  // variable.
53
45
  @function vf-determine-text-color($background-color) {
@@ -101,7 +93,7 @@
101
93
  }
102
94
  } @else if $exponent < 0 {
103
95
  @for $i from 1 through -$exponent {
104
- $value: $value / $number;
96
+ $value: math.div($value, $number);
105
97
  }
106
98
  }
107
99
 
@@ -62,7 +62,7 @@
62
62
 
63
63
  .p-panel__controls {
64
64
  margin-left: auto;
65
- padding-top: $spv-inner--large;
65
+ padding-top: $spv--large;
66
66
  }
67
67
 
68
68
  .p-panel__toggle {
@@ -3,7 +3,7 @@
3
3
  // default max width of the pinned aside panel in the application layout
4
4
  $application-layout--aside-panel-max-width: 50vw !default;
5
5
  // screen width breakpoint (min-width) at which side navigation is in collapsed mode
6
- $application-layout--breakpoint-side-nav-collapsed: $breakpoint-medium !default;
6
+ $application-layout--breakpoint-side-nav-collapsed: $breakpoint-small !default;
7
7
  // screen width breakpoint (min-width) at which side navigation is in expanded mode
8
8
  $application-layout--breakpoint-side-nav-expanded: $breakpoint-large !default;
9
9
  // width of the collapsed side navigation