vanilla-framework 4.26.0 → 4.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/package.json +1 -1
  2. package/scss/_base_button.scss +4 -4
  3. package/scss/_base_code.scss +4 -4
  4. package/scss/_base_details.scss +1 -1
  5. package/scss/_base_forms.scss +4 -4
  6. package/scss/_base_placeholders.scss +32 -12
  7. package/scss/_base_tables.scss +3 -3
  8. package/scss/_base_typography-definitions.scss +168 -82
  9. package/scss/_base_typography.scss +7 -3
  10. package/scss/_layouts_full-width.scss +1 -1
  11. package/scss/_patterns_badge.scss +1 -1
  12. package/scss/_patterns_chip.scss +3 -3
  13. package/scss/_patterns_grid-8.scss +256 -7
  14. package/scss/_patterns_grid.scss +0 -1
  15. package/scss/_patterns_heading-icon.scss +2 -2
  16. package/scss/_patterns_image.scss +48 -22
  17. package/scss/_patterns_lists.scss +19 -8
  18. package/scss/_patterns_matrix.scss +4 -4
  19. package/scss/_patterns_navigation-reduced.scss +5 -5
  20. package/scss/_patterns_navigation.scss +5 -5
  21. package/scss/_patterns_notifications.scss +2 -2
  22. package/scss/_patterns_search-and-filter.scss +2 -2
  23. package/scss/_patterns_search-box.scss +2 -2
  24. package/scss/_patterns_status-label.scss +1 -1
  25. package/scss/_patterns_table-mobile-card.scss +1 -1
  26. package/scss/_patterns_table-sortable.scss +1 -1
  27. package/scss/_patterns_tabs.scss +1 -1
  28. package/scss/_settings.scss +1 -1
  29. package/scss/_settings_font.scss +11 -1
  30. package/scss/_settings_grid.scss +4 -0
  31. package/scss/_settings_spacing.scss +329 -82
  32. package/scss/_utilities_content-align.scss +2 -2
  33. package/templates/_macros/vf_rich-vertical-list.jinja +5 -5
  34. package/templates/_macros/vf_text-spotlight.jinja +3 -3
  35. package/templates/_macros/vf_tiered-list.jinja +17 -17
@@ -58,7 +58,7 @@ $notification-content-icon-space: 2 * $sph--large + map-get($icon-sizes, default
58
58
  // the icon is a background element, so it needs to be manually positioned to match the text next to it;
59
59
  // Step 1: push down by the same amount applied as padding top on text ($spv-nudge)
60
60
  // Step 2: to center the icon within the line-height of text, we subtract icon height from text line-height and multiply by .5; this is the amount we need to push the icon down by
61
- $borderless-notification-icon-vert-offset: $spv-nudge + 0.5 * (map-get($line-heights, default-text) - map-get($icon-sizes, default));
61
+ $borderless-notification-icon-vert-offset: $spv-nudge + 0.5 * (map-get($settings-text-default, line-height) - map-get($icon-sizes, default));
62
62
  // Step 3: Add the notification padding-top (if it exists); we have two cases, so at this point we create a second var that contains the first one + the notification padding-top
63
63
  $notification-icon-vert-offset: $spv--small + $borderless-notification-icon-vert-offset;
64
64
 
@@ -133,7 +133,7 @@ $notification-text-margin-bottom: $spv--large - $spv-nudge;
133
133
  .p-notification__title {
134
134
  font-size: 1rem;
135
135
  font-weight: $font-weight-bold;
136
- line-height: map-get($line-heights, default-text);
136
+ line-height: map-get($settings-text-default, line-height);
137
137
  margin: 0;
138
138
  padding: 0;
139
139
  }
@@ -19,7 +19,7 @@
19
19
  // When the search and filter is not expanded, but is overflowing with chips, we need to
20
20
  // specify a height that matches that of a standard input element. This height is a combination
21
21
  // of an input's line-height, its vertical padding, and the (top transparent) border.
22
- $input-height: calc(map-get($line-heights, default-text) + $input-vertical-padding + $input-vertical-padding + $input-border-thickness);
22
+ $input-height: calc(map-get($settings-text-default, line-height) + $input-vertical-padding + $input-vertical-padding + $input-border-thickness);
23
23
 
24
24
  .p-search-and-filter {
25
25
  border-bottom: $input-border-thickness solid $colors--theme--border-high-contrast;
@@ -103,7 +103,7 @@
103
103
 
104
104
  border: none;
105
105
  bottom: $focus-outline-offset;
106
- line-height: map-get($line-heights, small);
106
+ line-height: map-get($settings-text-small, line-height);
107
107
  margin: 0;
108
108
  position: absolute;
109
109
  right: $focus-outline-offset;
@@ -1,7 +1,7 @@
1
1
  @mixin vf-p-search-box {
2
2
  %search-box-button {
3
3
  display: block;
4
- height: calc((2 * $spv-nudge + map-get($line-heights, default-text)) - (2 * $bar-thickness)); // side padding + icon width - focus outline width * 2
4
+ height: calc((2 * $spv-nudge + map-get($settings-text-default, line-height)) - (2 * $bar-thickness)); // side padding + icon width - focus outline width * 2
5
5
  margin: $bar-thickness 0;
6
6
  position: relative;
7
7
 
@@ -37,7 +37,7 @@
37
37
  .p-search-box__input {
38
38
  flex: 1 1 100%;
39
39
  margin-bottom: 0;
40
- padding-right: calc(2 * (2 * $spv-nudge + map-get($line-heights, default-text)));
40
+ padding-right: calc(2 * (2 * $spv-nudge + map-get($settings-text-default, line-height)));
41
41
  position: absolute;
42
42
  right: 0;
43
43
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  display: inline-block;
21
21
  font-weight: $font-weight-bold;
22
- padding: map-get($nudges, x-small) $sph--small;
22
+ padding: map-get($settings-text-x-small, nudge) $sph--small;
23
23
  text-align: center;
24
24
  text-decoration: none;
25
25
  white-space: nowrap;
@@ -56,7 +56,7 @@
56
56
  &[data-heading]::before {
57
57
  content: attr(data-heading);
58
58
  display: block;
59
- margin-bottom: map-get($sp-after, x-small) - map-get($nudges, x-small) - $sp-unit;
59
+ margin-bottom: map-get($settings-text-x-small, sp-after) - map-get($settings-text-x-small, nudge) - $sp-unit;
60
60
  overflow: hidden;
61
61
  padding-left: 0;
62
62
  padding-right: 0;
@@ -15,7 +15,7 @@
15
15
  display: inline-block;
16
16
  margin-left: $sp-x-small;
17
17
  // table heading text is smaller than the icon, so we need to compensate with negative top margin
18
- margin-top: calc(#{map-get($font-sizes, x-small)}rem - $default-icon-size);
18
+ margin-top: calc(#{map-get($settings-text-x-small, font-size)}rem - $default-icon-size);
19
19
  vertical-align: calc($vertical-offset + 0.5 * $cap-height - 0.5 * $default-icon-size);
20
20
  }
21
21
 
@@ -45,7 +45,7 @@
45
45
  display: flex;
46
46
  gap: $sph--small;
47
47
  height: 100%;
48
- line-height: map-get($line-heights, default-text);
48
+ line-height: map-get($settings-text-default, line-height);
49
49
  margin-bottom: 0;
50
50
  padding: $spv--medium $sph--large;
51
51
  position: relative;
@@ -7,12 +7,12 @@
7
7
  @import 'global_functions';
8
8
 
9
9
  // Settings
10
+ @import 'settings_font';
10
11
  @import 'settings_spacing';
11
12
  @import 'settings_animations';
12
13
  @import 'settings_assets';
13
14
  @import 'settings_breakpoints';
14
15
  @import 'settings_colors';
15
- @import 'settings_font';
16
16
  @import 'settings_grid';
17
17
  @import 'settings_placeholders';
18
18
  @import 'settings_tables';
@@ -11,10 +11,20 @@ $base-font-sizes: (
11
11
  base: 1rem,
12
12
  large: $font-size-largescreen,
13
13
  ) !default;
14
- $font-weight-display-heading: 100 !default;
14
+
15
+ // TODO removeme? This variable is not used in Vanilla - worth seeing if it's used downstream.
15
16
  $font-weight-thin: 300 !default;
16
17
  $font-weight-regular-text: 400 !default;
17
18
  $font-weight-bold: 550 !default;
19
+ $font-weight-display-heading: 100 !default;
20
+
21
+ // Heading levels - allow overriding of weights for headings
22
+ $font-weight-h1: $font-weight-bold !default;
23
+ $font-weight-h2: 180 !default;
24
+ $font-weight-h3: $font-weight-bold !default;
25
+ $font-weight-h4: 275 !default;
26
+ $font-weight-h5: $font-weight-bold !default;
27
+ $font-weight-h6: $font-weight-regular-text !default;
18
28
 
19
29
  // Ubuntu Font metrics
20
30
  $baseline-position: 0.932em !default; // HHead Ascent from the font file's metrics. Viewable in Fontforge Font Information>OS/2
@@ -6,8 +6,12 @@ $grid-max-width: 80rem !default;
6
6
  $grid-columns-small: 4 !default;
7
7
  $grid-columns-medium: 6 !default;
8
8
  $grid-columns: 12 !default;
9
+ // legacy grid only
9
10
  $threshold-4-6-col: $breakpoint-small !default;
10
11
  $threshold-6-12-col: $breakpoint-large !default;
12
+ // New grid thresholds
13
+ $threshold-4-small-4-med-col: $breakpoint-small !default;
14
+ $threshold-4-8-col: $breakpoint-large !default;
11
15
 
12
16
  $grid-column-prefix: 'col-' !default;
13
17
  $grid-small-col-prefix: '#{$grid-column-prefix}small-' !default;
@@ -7,59 +7,343 @@ $sp-unit-ratio: 0.5 !default;
7
7
  // Baseline grid settings
8
8
  $sp-unit: 1rem * $sp-unit-ratio !default;
9
9
 
10
+ // Main spacing variables. spv stands spacing-vertical; sph stands for spacing-horizontal.
11
+
12
+ $spv--x-small: $sp-unit * 0.5 !default;
13
+ $spv--small: $sp-unit !default;
14
+ $spv--medium: $sp-unit * 1.5 !default;
15
+ $spv--large: $sp-unit * 2;
16
+ $spv--x-large: $sp-unit * 3 !default;
17
+ $spv--strip-shallow: $sp-unit * 3 !default;
18
+ $spv--strip-regular: $sp-unit * 8 !default;
19
+ $spv--strip-deep: $sp-unit * 16 !default;
20
+
21
+ $sph--x-small: $sp-unit * 0.5 !default; // to be used in place of an inline space between characters/words
22
+ $sph--small: $sp-unit !default;
23
+ $sph--large: $sp-unit * 2 !default;
24
+ $sph--x-large: $sp-unit * 3 !default;
25
+
26
+ // Typography settings - per-level configuration maps
27
+ // Each settings map contains: nudge, line-height, font-size, sp-after, and sp-before (font-weight handled separately)
28
+
29
+ $settings-text-display: (
30
+ nudge: 0.35rem,
31
+ line-height: 11 * $sp-unit,
32
+ font-size: 5,
33
+ sp-after: $spv--x-large,
34
+ sp-before: 0,
35
+ ) !default;
36
+
37
+ $settings-text-display-mobile: (
38
+ nudge: 0.25rem,
39
+ line-height: 9 * $sp-unit,
40
+ font-size: 4,
41
+ sp-after: $spv--x-large,
42
+ sp-before: 0,
43
+ ) !default;
44
+
45
+ $settings-text-h1: (
46
+ nudge: 0.55rem,
47
+ line-height: 6 * $sp-unit,
48
+ font-size: 2.5,
49
+ sp-after: $spv--x-large,
50
+ sp-before: $spv--x-large,
51
+ ) !default;
52
+
53
+ $settings-text-h1-large: (
54
+ nudge: 0.55rem,
55
+ line-height: 6 * $sp-unit,
56
+ font-size: 2.5,
57
+ sp-after: $spv--x-large,
58
+ sp-before: $spv--x-large,
59
+ ) !default;
60
+
61
+ $settings-text-h1-mobile: (
62
+ nudge: 0.55rem,
63
+ line-height: 5 * $sp-unit,
64
+ font-size: 2,
65
+ sp-after: $spv--x-large,
66
+ sp-before: $spv--x-large,
67
+ ) !default;
68
+
69
+ $settings-text-h2: (
70
+ nudge: 0.55rem,
71
+ line-height: 6 * $sp-unit,
72
+ font-size: 2.5,
73
+ sp-after: $spv--x-large,
74
+ sp-before: $spv--x-large,
75
+ ) !default;
76
+
77
+ $settings-text-h2-large: (
78
+ nudge: 0.55rem,
79
+ line-height: 6 * $sp-unit,
80
+ font-size: 2.5,
81
+ sp-after: $spv--x-large,
82
+ sp-before: $spv--x-large,
83
+ ) !default;
84
+
85
+ $settings-text-h2-mobile: (
86
+ nudge: 0.55rem,
87
+ line-height: 5 * $sp-unit,
88
+ font-size: 2,
89
+ sp-after: $spv--x-large,
90
+ sp-before: $spv--x-large,
91
+ ) !default;
92
+
93
+ $settings-text-h3: (
94
+ nudge: 0.45rem,
95
+ line-height: 4 * $sp-unit,
96
+ font-size: 1.5,
97
+ sp-after: $spv--x-large,
98
+ sp-before: $spv--x-large,
99
+ ) !default;
100
+
101
+ $settings-text-h3-large: (
102
+ nudge: 0.45rem,
103
+ line-height: 4 * $sp-unit,
104
+ font-size: 1.5,
105
+ sp-after: $spv--x-large,
106
+ sp-before: $spv--x-large,
107
+ ) !default;
108
+
109
+ $settings-text-h3-mobile: (
110
+ nudge: 0.45rem,
111
+ line-height: 4 * $sp-unit,
112
+ font-size: 1.5,
113
+ sp-after: $spv--x-large,
114
+ sp-before: $spv--x-large,
115
+ ) !default;
116
+
117
+ $settings-text-h4: (
118
+ nudge: 0.45rem,
119
+ line-height: 4 * $sp-unit,
120
+ font-size: 1.5,
121
+ sp-after: $spv--x-large,
122
+ sp-before: $spv--x-large,
123
+ ) !default;
124
+
125
+ $settings-text-h4-large: (
126
+ nudge: 0.45rem,
127
+ line-height: 4 * $sp-unit,
128
+ font-size: 1.5,
129
+ sp-after: $spv--x-large,
130
+ sp-before: $spv--x-large,
131
+ ) !default;
132
+
133
+ $settings-text-h4-mobile: (
134
+ nudge: 0.45rem,
135
+ line-height: 4 * $sp-unit,
136
+ font-size: 1.5,
137
+ sp-after: $spv--x-large,
138
+ sp-before: $spv--x-large,
139
+ ) !default;
140
+
141
+ $settings-text-h5: (
142
+ nudge: 0.375rem,
143
+ line-height: 3 * $sp-unit,
144
+ font-size: 1,
145
+ sp-after: $spv--x-large,
146
+ sp-before: $spv--x-large,
147
+ ) !default;
148
+
149
+ $settings-text-h5-large: (
150
+ nudge: 0.375rem,
151
+ line-height: 3 * $sp-unit,
152
+ font-size: 1,
153
+ sp-after: $spv--x-large,
154
+ sp-before: $spv--x-large,
155
+ ) !default;
156
+
157
+ $settings-text-h5-mobile: (
158
+ nudge: 0.375rem,
159
+ line-height: 3 * $sp-unit,
160
+ font-size: 1,
161
+ sp-after: $spv--x-large,
162
+ sp-before: $spv--x-large,
163
+ ) !default;
164
+
165
+ $settings-text-h6: (
166
+ nudge: 0.375rem,
167
+ line-height: 3 * $sp-unit,
168
+ font-size: 1,
169
+ sp-after: $spv--x-large,
170
+ sp-before: $spv--x-large,
171
+ ) !default;
172
+
173
+ $settings-text-h6-large: (
174
+ nudge: 0.375rem,
175
+ line-height: 3 * $sp-unit,
176
+ font-size: 1,
177
+ sp-after: $spv--x-large,
178
+ sp-before: $spv--x-large,
179
+ ) !default;
180
+
181
+ $settings-text-h6-mobile: (
182
+ nudge: 0.375rem,
183
+ line-height: 3 * $sp-unit,
184
+ font-size: 1,
185
+ sp-after: $spv--x-large,
186
+ sp-before: $spv--x-large,
187
+ ) !default;
188
+
189
+ $settings-text-p: (
190
+ nudge: 0.375rem,
191
+ line-height: 3 * $sp-unit,
192
+ font-size: 1,
193
+ sp-after: $spv--x-large,
194
+ sp-before: 0,
195
+ ) !default;
196
+
197
+ $settings-text-small: (
198
+ nudge: 0.05rem,
199
+ line-height: 2.5 * $sp-unit,
200
+ font-size: 0.875,
201
+ sp-after: $spv--large,
202
+ sp-before: $spv--x-large,
203
+ ) !default;
204
+
205
+ $settings-text-small-dense: (
206
+ nudge: 0.05rem,
207
+ line-height: 2.5 * $sp-unit,
208
+ font-size: 0.875,
209
+ sp-after: $spv--large,
210
+ sp-before: $spv--x-large,
211
+ ) !default;
212
+
213
+ $settings-text-x-small: (
214
+ nudge: 0.25rem,
215
+ line-height: 2 * $sp-unit,
216
+ font-size: 0.75,
217
+ sp-after: $spv--large,
218
+ sp-before: 0,
219
+ ) !default;
220
+
221
+ $settings-text-default: (
222
+ nudge: 0.375rem,
223
+ line-height: 3 * $sp-unit,
224
+ font-size: 1,
225
+ sp-after: $sp-unit,
226
+ sp-before: 0,
227
+ ) !default;
228
+
229
+ // Legacy maps for backwards compatibility
10
230
  $font-sizes: (
11
- display: 5,
12
- display-mobile: 4,
13
- h1: 2.5,
14
- h1-mobile: 2,
15
- h2: 2.5,
16
- h2-mobile: 2,
17
- h3: 1.5,
18
- h3-mobile: 1.5,
19
- h4: 1.5,
20
- h4-mobile: 1.5,
21
- default: 1,
22
- small: 0.875,
23
- x-small: 0.75,
231
+ display: map-get($settings-text-display, font-size),
232
+ display-mobile: map-get($settings-text-display-mobile, font-size),
233
+ h1: map-get($settings-text-h1, font-size),
234
+ h1-large: map-get($settings-text-h1-large, font-size),
235
+ h1-mobile: map-get($settings-text-h1-mobile, font-size),
236
+ h2: map-get($settings-text-h2, font-size),
237
+ h2-large: map-get($settings-text-h2-large, font-size),
238
+ h2-mobile: map-get($settings-text-h2-mobile, font-size),
239
+ h3: map-get($settings-text-h3, font-size),
240
+ h3-large: map-get($settings-text-h3-large, font-size),
241
+ h3-mobile: map-get($settings-text-h3-mobile, font-size),
242
+ h4: map-get($settings-text-h4, font-size),
243
+ h4-large: map-get($settings-text-h4-large, font-size),
244
+ h4-mobile: map-get($settings-text-h4-mobile, font-size),
245
+ h5: map-get($settings-text-h5, font-size),
246
+ h5-large: map-get($settings-text-h5-large, font-size),
247
+ h5-mobile: map-get($settings-text-h5-mobile, font-size),
248
+ h6: map-get($settings-text-h6, font-size),
249
+ h6-large: map-get($settings-text-h6-large, font-size),
250
+ h6-mobile: map-get($settings-text-h6-mobile, font-size),
251
+ default: map-get($settings-text-default, font-size),
252
+ small: map-get($settings-text-small, font-size),
253
+ x-small: map-get($settings-text-x-small, font-size),
24
254
  ) !default;
25
255
 
26
256
  $line-heights: (
27
- display: 11 * $sp-unit,
28
- display-mobile: 9 * $sp-unit,
29
- h1: 6 * $sp-unit,
30
- h1-mobile: 5 * $sp-unit,
31
- h2: 6 * $sp-unit,
32
- h2-mobile: 5 * $sp-unit,
33
- h3: 4 * $sp-unit,
34
- h3-mobile: 4 * $sp-unit,
35
- h4: 4 * $sp-unit,
36
- h4-mobile: 4 * $sp-unit,
37
- default-text: 3 * $sp-unit,
38
- small: 2.5 * $sp-unit,
39
- x-small: 2 * $sp-unit,
257
+ display: map-get($settings-text-display, line-height),
258
+ display-mobile: map-get($settings-text-display-mobile, line-height),
259
+ h1: map-get($settings-text-h1, line-height),
260
+ h1-large: map-get($settings-text-h1-large, line-height),
261
+ h1-mobile: map-get($settings-text-h1-mobile, line-height),
262
+ h2: map-get($settings-text-h2, line-height),
263
+ h2-large: map-get($settings-text-h2-large, line-height),
264
+ h2-mobile: map-get($settings-text-h2-mobile, line-height),
265
+ h3: map-get($settings-text-h3, line-height),
266
+ h3-large: map-get($settings-text-h3-large, line-height),
267
+ h3-mobile: map-get($settings-text-h3-mobile, line-height),
268
+ h4: map-get($settings-text-h4, line-height),
269
+ h4-large: map-get($settings-text-h4-large, line-height),
270
+ h4-mobile: map-get($settings-text-h4-mobile, line-height),
271
+ h5: map-get($settings-text-h5, line-height),
272
+ h5-large: map-get($settings-text-h5-large, line-height),
273
+ h5-mobile: map-get($settings-text-h5-mobile, line-height),
274
+ h6: map-get($settings-text-h6, line-height),
275
+ h6-large: map-get($settings-text-h6-large, line-height),
276
+ h6-mobile: map-get($settings-text-h6-mobile, line-height),
277
+ default-text: map-get($settings-text-default, line-height),
278
+ small: map-get($settings-text-small, line-height),
279
+ x-small: map-get($settings-text-x-small, line-height),
40
280
  ) !default;
41
281
 
42
282
  // baseline nudges for type scale ratio of (16/14)^2
43
283
  $nudges: (
44
- display: 0.35rem,
45
- display-mobile: 0.25rem,
46
- h1-large: 0.55rem,
47
- h1-mobile: 0.55rem,
48
- h1: 0.55rem,
49
- h2: 0.55rem,
50
- h2-mobile: 0.55rem,
51
- h3: 0.45rem,
52
- h3-mobile: 0.45rem,
53
- h4-large: 0.45rem,
54
- h4: 0.45rem,
55
- h4-mobile: 0.45rem,
56
- h5: 0.375rem,
57
- h6: 0.375em,
58
- h6-large: 0.375rem,
59
- p: 0.375rem,
284
+ display: map-get($settings-text-display, nudge),
285
+ display-mobile: map-get($settings-text-display-mobile, nudge),
286
+ h1-large: map-get($settings-text-h1, nudge),
287
+ // fallback to h1 nudge
288
+ h1-mobile: map-get($settings-text-h1-mobile, nudge),
289
+ h1: map-get($settings-text-h1, nudge),
290
+ h2: map-get($settings-text-h2, nudge),
291
+ h2-mobile: map-get($settings-text-h2-mobile, nudge),
292
+ h2-large: map-get($settings-text-h2, nudge),
293
+ // fallback to h2 nudge
294
+ h3: map-get($settings-text-h3, nudge),
295
+ h3-mobile: map-get($settings-text-h3-mobile, nudge),
296
+ h3-large: map-get($settings-text-h3, nudge),
297
+ // fallback to h3 nudge
298
+ h4-large: map-get($settings-text-h4, nudge),
299
+ // fallback to h4 nudge
300
+ h4: map-get($settings-text-h4, nudge),
301
+ h4-mobile: map-get($settings-text-h4-mobile, nudge),
302
+ h5: map-get($settings-text-h5, nudge),
303
+ h5-large: map-get($settings-text-h5, nudge),
304
+ // fallback to h5 nudge
305
+ h5-mobile: map-get($settings-text-h5-mobile, nudge),
306
+ h6: map-get($settings-text-h6, nudge),
307
+ h6-mobile: map-get($settings-text-h6-mobile, nudge),
308
+ h6-large: map-get($settings-text-h6, nudge),
309
+ // fallback to h6 nudge
310
+ p: map-get($settings-text-p, nudge),
311
+ default: map-get($settings-text-default, nudge),
312
+ // not currently used in Vanilla, kept for backwards compatibility
60
313
  p-ubuntumono: 0.45rem,
61
- small: 0.05rem,
62
- x-small: 0.25rem,
314
+ // fallback
315
+ small: map-get($settings-text-small, nudge),
316
+ x-small: map-get($settings-text-x-small, nudge),
317
+ ) !default;
318
+
319
+ $sp-after: (
320
+ display: map-get($settings-text-display, sp-after),
321
+ display-mobile: map-get($settings-text-display-mobile, sp-after),
322
+ h1: map-get($settings-text-h1, sp-after),
323
+ h1-large: map-get($settings-text-h1-large, sp-after),
324
+ h1-mobile: map-get($settings-text-h1-mobile, sp-after),
325
+ h2: map-get($settings-text-h2, sp-after),
326
+ h2-large: map-get($settings-text-h2-large, sp-after),
327
+ h2-mobile: map-get($settings-text-h2-mobile, sp-after),
328
+ h3: map-get($settings-text-h3, sp-after),
329
+ h3-large: map-get($settings-text-h3-large, sp-after),
330
+ h3-mobile: map-get($settings-text-h3-mobile, sp-after),
331
+ h4: map-get($settings-text-h4, sp-after),
332
+ h4-large: map-get($settings-text-h4-large, sp-after),
333
+ h4-mobile: map-get($settings-text-h4-mobile, sp-after),
334
+ h5: map-get($settings-text-h5, sp-after),
335
+ h5-large: map-get($settings-text-h5-large, sp-after),
336
+ h5-mobile: map-get($settings-text-h5-mobile, sp-after),
337
+ h6: map-get($settings-text-h6, sp-after),
338
+ h6-large: map-get($settings-text-h6-large, sp-after),
339
+ h6-mobile: map-get($settings-text-h6-mobile, sp-after),
340
+ p: map-get($settings-text-p, sp-after),
341
+ p-small-caps: map-get($settings-text-small, sp-after),
342
+ p-dense: map-get($settings-text-small, sp-after),
343
+ default-text: map-get($settings-text-default, sp-after),
344
+ small: map-get($settings-text-small, sp-after),
345
+ small--dense: map-get($settings-text-small, sp-after),
346
+ x-small: map-get($settings-text-x-small, sp-after),
63
347
  ) !default;
64
348
 
65
349
  // Correct baseline drift due to browser rounding. (Visible in text > 1000 lines)
@@ -77,45 +361,8 @@ $browser-rounding-compensations: (
77
361
  small: 0,
78
362
  ) !default;
79
363
 
80
- // Main spacing variables. spv stands spacing-vertical; sph stands for spacing-horizontal.
81
-
82
- $spv--x-small: $sp-unit * 0.5 !default;
83
- $spv--small: $sp-unit !default;
84
- $spv--medium: $sp-unit * 1.5 !default;
85
- $spv--large: $sp-unit * 2;
86
- $spv--x-large: $sp-unit * 3 !default;
87
- $spv--strip-shallow: $sp-unit * 3 !default;
88
- $spv--strip-regular: $sp-unit * 8 !default;
89
- $spv--strip-deep: $sp-unit * 16 !default;
90
-
91
- $sph--x-small: $sp-unit * 0.5 !default; // to be used in place of an inline space between characters/words
92
- $sph--small: $sp-unit !default;
93
- $sph--large: $sp-unit * 2 !default;
94
- $sph--x-large: $sp-unit * 3 !default;
95
-
96
- // Space after text elements
97
- $sp-after: (
98
- display: $spv--x-large,
99
- display-mobile: $spv--x-large,
100
- h1: $spv--x-large,
101
- h1-mobile: $spv--x-large,
102
- h2: $spv--x-large,
103
- h2-mobile: $spv--x-large,
104
- h3: $spv--x-large,
105
- h3-mobile: $spv--x-large,
106
- h4: $spv--x-large,
107
- h4-mobile: $spv--x-large,
108
- p: $spv--x-large,
109
- p-small-caps: $spv--large,
110
- p-dense: $spv--large,
111
- default-text: $sp-unit,
112
- small: $spv--large,
113
- small--dense: $spv--large,
114
- x-small: $spv--large,
115
- ) !default;
116
-
117
364
  // commonly occuring calculations available as variables
118
- $spv-nudge: map-get($nudges, p) !default; // top: nudge; bottom: unit - nudge; result: height = exact multiple of base unit
365
+ $spv-nudge: map-get($settings-text-p, nudge) !default; // top: nudge; bottom: unit - nudge; result: height = exact multiple of base unit
119
366
  $spv-nudge-compensation: $sp-unit - $spv-nudge !default;
120
367
 
121
368
  // form input spacing variables
@@ -69,10 +69,10 @@
69
69
  }
70
70
 
71
71
  .u-align-text--small-to-default {
72
- padding-top: map-get($nudges, small) + $sp-unit;
72
+ padding-top: map-get($settings-text-small, nudge) + $sp-unit;
73
73
  }
74
74
 
75
75
  .u-align-text--x-small-to-default {
76
- padding-top: map-get($nudges, x-small) + $sp-unit;
76
+ padding-top: map-get($settings-text-x-small, nudge) + $sp-unit;
77
77
  }
78
78
  }
@@ -103,21 +103,21 @@
103
103
  {%- endmacro -%}
104
104
 
105
105
  <div class="p-section">
106
- <div class="row--50-50-on-large">
106
+ <div class="grid-row--50-50-on-large">
107
107
  <hr>
108
108
  {% if not is_flipped -%}
109
- <div class="col">
109
+ <div class="grid-col">
110
110
  {{- _text_column_contents(list_items) -}}
111
111
  </div>
112
- <div class="col">
112
+ <div class="grid-col">
113
113
  {{- _image_column_contents() -}}
114
114
  </div>
115
115
  {%- else -%}
116
116
  {#- For flipped layout, place the image contents in the first column and the text in the second column -#}
117
- <div class="col">
117
+ <div class="grid-col">
118
118
  {{- _image_column_contents() -}}
119
119
  </div>
120
- <div class="col">
120
+ <div class="grid-col">
121
121
  {{- _text_column_contents(list_items) -}}
122
122
  </div>
123
123
  {%- endif -%}
@@ -8,11 +8,11 @@
8
8
  {% set has_list = list_items | length >= 2 and list_items | length <= 7 %}
9
9
  <section class="p-section">
10
10
  <hr class="p-rule is-fixed-width" />
11
- <div class="row--25-75-on-large">
12
- <div class="col">
11
+ <div class="grid-row--25-75-on-large">
12
+ <div class="grid-col">
13
13
  <h2 class="p-text--small-caps">{{ title_text }}</h2>
14
14
  </div>
15
- <div class="col">
15
+ <div class="grid-col">
16
16
  {%- if has_list -%}
17
17
  {%- for list_item in list_items -%}
18
18
  <p class="p-heading--2">{{- list_item -}}</p>