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.
- package/README.md +1 -1
- package/_index.scss +1 -0
- package/package.json +11 -9
- package/scss/_base_blockquotes.scss +2 -2
- package/scss/_base_button.scss +9 -27
- package/scss/_base_code.scss +8 -9
- package/scss/_base_details.scss +3 -3
- package/scss/_base_forms-range.scss +1 -45
- package/scss/_base_forms.scss +12 -23
- package/scss/_base_grid-definitions.scss +2 -23
- package/scss/_base_hr.scss +1 -1
- package/scss/_base_icon-definitions.scss +0 -24
- package/scss/_base_lists.scss +5 -5
- package/scss/_base_media.scss +1 -6
- package/scss/_base_placeholders.scss +27 -30
- package/scss/_base_tables.scss +7 -7
- package/scss/_base_typography-definitions.scss +50 -58
- package/scss/_base_typography.scss +8 -18
- package/scss/_global_functions.scss +3 -11
- package/scss/_layouts_application-panels.scss +1 -1
- package/scss/_layouts_application.scss +1 -1
- package/scss/_layouts_fluid-breakout.scss +40 -150
- package/scss/_patterns_accordion.scss +16 -71
- package/scss/_patterns_article-pagination.scss +3 -6
- package/scss/_patterns_breadcrumbs.scss +1 -1
- package/scss/_patterns_buttons.scss +1 -35
- package/scss/_patterns_card.scss +8 -8
- package/scss/_patterns_chip.scss +89 -47
- package/scss/_patterns_code-snippet.scss +7 -7
- package/scss/_patterns_contextual-menu.scss +1 -1
- package/scss/_patterns_divider.scss +4 -4
- package/scss/_patterns_form-help-text.scss +2 -2
- package/scss/_patterns_form-password-toggle.scss +0 -6
- package/scss/_patterns_form-tick-elements.scss +217 -27
- package/scss/_patterns_form-validation.scss +2 -2
- package/scss/_patterns_forms.scss +7 -7
- package/scss/_patterns_grid.scss +6 -20
- package/scss/_patterns_heading-icon.scss +7 -7
- package/scss/_patterns_headings.scss +0 -26
- package/scss/_patterns_icons.scss +0 -58
- package/scss/_patterns_label.scss +1 -1
- package/scss/_patterns_links.scss +4 -33
- package/scss/_patterns_list-tree.scss +0 -1
- package/scss/_patterns_lists.scss +17 -32
- package/scss/_patterns_logo-section.scss +7 -5
- package/scss/_patterns_matrix.scss +19 -21
- package/scss/_patterns_media-object.scss +4 -4
- package/scss/_patterns_modal.scss +9 -9
- package/scss/_patterns_navigation.scss +317 -312
- package/scss/_patterns_notifications.scss +15 -57
- package/scss/_patterns_pagination.scss +6 -6
- package/scss/_patterns_pull-quotes.scss +4 -4
- package/scss/_patterns_search-and-filter.scss +8 -8
- package/scss/_patterns_search-box.scss +2 -3
- package/scss/_patterns_separator.scss +4 -4
- package/scss/_patterns_side-navigation.scss +12 -15
- package/scss/_patterns_strip.scss +1 -1
- package/scss/_patterns_switch.scss +11 -11
- package/scss/_patterns_table-expanding.scss +0 -13
- package/scss/_patterns_table-icons.scss +2 -2
- package/scss/_patterns_table-mobile-card.scss +4 -11
- package/scss/_patterns_table-of-contents.scss +1 -1
- package/scss/_patterns_tabs.scss +2 -2
- package/scss/_patterns_tooltips.scss +5 -5
- package/scss/_settings_breakpoints.scss +2 -3
- package/scss/_settings_colors.scss +18 -0
- package/scss/_settings_grid.scss +1 -4
- package/scss/_settings_spacing.scss +76 -98
- package/scss/_settings_system.scss +1 -7
- package/scss/_utilities_baseline-grid.scss +1 -1
- package/scss/_utilities_content-align.scss +2 -2
- package/scss/_utilities_embedded-media.scss +2 -2
- package/scss/_utilities_equal-height.scss +1 -1
- package/scss/_utilities_floats.scss +4 -4
- package/scss/_utilities_hide.scss +8 -8
- package/scss/_utilities_image-position.scss +1 -1
- package/scss/_utilities_show.scss +2 -6
- package/scss/_utilities_vertical-spacing.scss +6 -12
- package/scss/_vanilla.scss +0 -11
- package/scss/_base_forms-tick-elements.scss +0 -607
- package/scss/_base_typography-max-widths.scss +0 -36
- package/scss/_patterns_code-copyable.scss +0 -43
- package/scss/_patterns_code-numbered.scss +0 -13
- package/scss/_patterns_inline-images.scss +0 -37
- package/scss/_patterns_subnav.scss +0 -210
- package/scss/standalone/base.scss +0 -2
- package/scss/standalone/custom.scss +0 -7
- package/scss/standalone/dark.scss +0 -11
- package/scss/standalone/example.scss +0 -15
- package/scss/standalone/import.scss +0 -2
- package/scss/standalone/layouts_fluid-breakout-full.scss +0 -8
- package/scss/standalone/layouts_fluid-breakout.scss +0 -8
- package/scss/standalone/patterns_accordion.scss +0 -6
- package/scss/standalone/patterns_article-pagination.scss +0 -4
- package/scss/standalone/patterns_breadcrumbs.scss +0 -4
- package/scss/standalone/patterns_buttons.scss +0 -9
- package/scss/standalone/patterns_card.scss +0 -9
- package/scss/standalone/patterns_chip.scss +0 -6
- package/scss/standalone/patterns_code-copyable.scss +0 -4
- package/scss/standalone/patterns_code-numbered.scss +0 -4
- package/scss/standalone/patterns_code-snippet.scss +0 -6
- package/scss/standalone/patterns_contextual-menu.scss +0 -9
- package/scss/standalone/patterns_divider.scss +0 -7
- package/scss/standalone/patterns_form-password-toggle.scss +0 -19
- package/scss/standalone/patterns_form-tick-elements.scss +0 -13
- package/scss/standalone/patterns_forms.scss +0 -17
- package/scss/standalone/patterns_grid.scss +0 -4
- package/scss/standalone/patterns_heading-icon.scss +0 -4
- package/scss/standalone/patterns_headings.scss +0 -4
- package/scss/standalone/patterns_icons-additional.scss +0 -104
- package/scss/standalone/patterns_icons.scss +0 -7
- package/scss/standalone/patterns_image.scss +0 -4
- package/scss/standalone/patterns_inline-images.scss +0 -4
- package/scss/standalone/patterns_label.scss +0 -4
- package/scss/standalone/patterns_links.scss +0 -4
- package/scss/standalone/patterns_list-tree.scss +0 -4
- package/scss/standalone/patterns_lists.scss +0 -4
- package/scss/standalone/patterns_logo-section.scss +0 -4
- package/scss/standalone/patterns_matrix.scss +0 -4
- package/scss/standalone/patterns_media-object.scss +0 -4
- package/scss/standalone/patterns_modal.scss +0 -9
- package/scss/standalone/patterns_muted-heading.scss +0 -4
- package/scss/standalone/patterns_navigation.scss +0 -4
- package/scss/standalone/patterns_notifications.scss +0 -11
- package/scss/standalone/patterns_pagination.scss +0 -7
- package/scss/standalone/patterns_pull-quotes.scss +0 -4
- package/scss/standalone/patterns_search-and-filter.scss +0 -8
- package/scss/standalone/patterns_search-box.scss +0 -15
- package/scss/standalone/patterns_separator.scss +0 -4
- package/scss/standalone/patterns_side-navigation.scss +0 -11
- package/scss/standalone/patterns_skip-link.scss +0 -8
- package/scss/standalone/patterns_slider.scss +0 -4
- package/scss/standalone/patterns_strip.scss +0 -10
- package/scss/standalone/patterns_subnav.scss +0 -9
- package/scss/standalone/patterns_switch.scss +0 -4
- package/scss/standalone/patterns_tab-buttons.scss +0 -7
- package/scss/standalone/patterns_table-expanding.scss +0 -10
- package/scss/standalone/patterns_table-mobile-card.scss +0 -10
- package/scss/standalone/patterns_table-of-contents.scss +0 -7
- package/scss/standalone/patterns_table-overflow.scss +0 -10
- package/scss/standalone/patterns_table-sortable.scss +0 -10
- package/scss/standalone/patterns_tabs.scss +0 -4
- package/scss/standalone/patterns_tooltips.scss +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
@import 'settings';
|
|
2
2
|
|
|
3
3
|
// space on the left of the icon + icon width + space on the right of the icon
|
|
4
|
-
$notification-content-icon-space: 2 * $sph
|
|
4
|
+
$notification-content-icon-space: 2 * $sph--large + map-get($icon-sizes, default);
|
|
5
5
|
|
|
6
6
|
// the icon is a background element, so it needs to be manually positioned to match the text next to it;
|
|
7
7
|
// Step 1: push down by the same amount applied as padding top on text ($spv-nudge)
|
|
8
8
|
// 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
|
|
9
9
|
$borderless-notification-icon-vert-offset: $spv-nudge + 0.5 * (map-get($line-heights, default-text) - map-get($icon-sizes, default));
|
|
10
10
|
// 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
|
|
11
|
-
$notification-icon-vert-offset: $spv
|
|
11
|
+
$notification-icon-vert-offset: $spv--small + $borderless-notification-icon-vert-offset;
|
|
12
12
|
|
|
13
13
|
// normally, paragraphs use a large margin-bottom (currently 1.5rem) to ensure elements that follow are sufficiently spaced.
|
|
14
14
|
// within the insulated context of a notification, less space is needed, as the notification itself has an ample margin on it.
|
|
15
15
|
// We still need a little space so things like the border on the __meta do not crash into the preceding text element, so we use a reduced amount of margin
|
|
16
16
|
// being text, it still needs to align to the baseline grid. So we need to subtract $spv-nudge (the amount applied to this text as padding-top) from the total amount of margin-bottom.
|
|
17
17
|
// As a result, padding-top + margin-bottom == an exact multiple of the base spacing unit, $sp-unit (which is .5rem)
|
|
18
|
-
$notification-text-margin-bottom: $spv
|
|
18
|
+
$notification-text-margin-bottom: $spv--large - $spv-nudge;
|
|
19
19
|
|
|
20
20
|
// Notification style patterns
|
|
21
21
|
@mixin vf-p-notification {
|
|
@@ -24,14 +24,14 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
24
24
|
@extend %vf-is-bordered;
|
|
25
25
|
@extend %vf-bg--x-light;
|
|
26
26
|
|
|
27
|
-
background-position: $sph
|
|
27
|
+
background-position: $sph--large $notification-icon-vert-offset;
|
|
28
28
|
background-repeat: no-repeat;
|
|
29
29
|
background-size: map-get($icon-sizes, default);
|
|
30
30
|
border-radius: 0 $border-radius $border-radius 0;
|
|
31
|
-
margin-bottom: $spv-
|
|
32
|
-
padding-bottom: calc(#{$spv
|
|
31
|
+
margin-bottom: $spv--x-large;
|
|
32
|
+
padding-bottom: calc(#{$spv--small} - 1px);
|
|
33
33
|
padding-left: $notification-content-icon-space;
|
|
34
|
-
padding-top: calc(#{$spv
|
|
34
|
+
padding-top: calc(#{$spv--small} - 1px);
|
|
35
35
|
position: relative;
|
|
36
36
|
|
|
37
37
|
&::before {
|
|
@@ -43,7 +43,7 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
43
43
|
background-position: 0 $borderless-notification-icon-vert-offset;
|
|
44
44
|
border: none;
|
|
45
45
|
margin-top: 0;
|
|
46
|
-
padding: 0 0 0 2 * $sph
|
|
46
|
+
padding: 0 0 0 2 * $sph--large;
|
|
47
47
|
|
|
48
48
|
&::before {
|
|
49
49
|
display: none;
|
|
@@ -75,7 +75,7 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
75
75
|
|
|
76
76
|
margin-bottom: $notification-text-margin-bottom;
|
|
77
77
|
max-width: unset;
|
|
78
|
-
padding-right: 2 * $sph
|
|
78
|
+
padding-right: 2 * $sph--large;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.p-notification__title {
|
|
@@ -102,8 +102,8 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
102
102
|
background-size: unset;
|
|
103
103
|
border: 0;
|
|
104
104
|
position: absolute;
|
|
105
|
-
right: $sph
|
|
106
|
-
top: $spv
|
|
105
|
+
right: $sph--large * 0.5;
|
|
106
|
+
top: $spv--small;
|
|
107
107
|
width: $default-icon-size;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -113,9 +113,9 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
113
113
|
align-items: flex-start;
|
|
114
114
|
display: flex;
|
|
115
115
|
justify-content: space-between;
|
|
116
|
-
margin-bottom: $spv
|
|
117
|
-
padding-right: $sph
|
|
118
|
-
padding-top: $spv
|
|
116
|
+
margin-bottom: $spv--small;
|
|
117
|
+
padding-right: $sph--large;
|
|
118
|
+
padding-top: $spv--small;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.p-notification__timestamp {
|
|
@@ -137,7 +137,7 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.p-notification__action + .p-notification__action {
|
|
140
|
-
margin-left: $sph
|
|
140
|
+
margin-left: $sph--large;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -146,7 +146,6 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
146
146
|
@include vf-notifications-caution;
|
|
147
147
|
@include vf-notifications-negative;
|
|
148
148
|
@include vf-notifications-information;
|
|
149
|
-
@include vf-notifications-deprecated;
|
|
150
149
|
}
|
|
151
150
|
|
|
152
151
|
// Default notification styling
|
|
@@ -193,44 +192,3 @@ $notification-text-margin-bottom: $spv-outer--medium - $spv-nudge;
|
|
|
193
192
|
@include vf-icon-info($color-mid-dark);
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
|
-
|
|
197
|
-
@mixin vf-notifications-deprecated {
|
|
198
|
-
@include deprecate('3.0.0', 'Use new notification structure instead') {
|
|
199
|
-
[class='p-notification'],
|
|
200
|
-
[class^='p-notification--'] {
|
|
201
|
-
position: relative;
|
|
202
|
-
|
|
203
|
-
.p-notification__response {
|
|
204
|
-
margin-bottom: $notification-text-margin-bottom;
|
|
205
|
-
padding-right: calc(#{$spv-inner--small} - 1px);
|
|
206
|
-
padding-top: map-get($nudges, nudge--p) + map-get($browser-rounding-compensations, p);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.p-notification__status {
|
|
210
|
-
@extend %bold;
|
|
211
|
-
|
|
212
|
-
display: block;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.p-notification__status::after,
|
|
216
|
-
.p-notification__action::before {
|
|
217
|
-
content: ' ';
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.p-notification__response,
|
|
221
|
-
.p-notification--floating {
|
|
222
|
-
max-width: unset;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.p-icon--close {
|
|
226
|
-
background-color: transparent;
|
|
227
|
-
background-size: map-get($icon-sizes, default);
|
|
228
|
-
border: 0;
|
|
229
|
-
padding: $sp-unit;
|
|
230
|
-
position: absolute;
|
|
231
|
-
right: $sph-inner;
|
|
232
|
-
top: $notification-icon-vert-offset;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
& + & {
|
|
28
28
|
&:not(:nth-child(2)):not(:nth-last-child(1)) {
|
|
29
|
-
margin-left: $sph
|
|
29
|
+
margin-left: $sph--small;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&:nth-child(2),
|
|
33
33
|
&:nth-last-child(1) {
|
|
34
|
-
margin-left: $sph
|
|
34
|
+
margin-left: $sph--large;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
[class*='p-icon'] {
|
|
53
53
|
.p-pagination__link--next &,
|
|
54
54
|
.p-pagination__link--previous & {
|
|
55
|
-
margin-left: $sph
|
|
56
|
-
margin-right: $sph
|
|
55
|
+
margin-left: $sph--small;
|
|
56
|
+
margin-right: $sph--small;
|
|
57
57
|
|
|
58
58
|
&:first-child {
|
|
59
|
-
margin-left:
|
|
59
|
+
margin-left: -$sph--small;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:last-child {
|
|
63
|
-
margin-right: -#{$sph
|
|
63
|
+
margin-right: -#{$sph--small};
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
@mixin vf-pull-quote {
|
|
11
11
|
border: 0;
|
|
12
|
-
margin: $spv-
|
|
12
|
+
margin: $spv--x-large 0 $spv--x-large;
|
|
13
13
|
overflow: visible;
|
|
14
14
|
position: relative;
|
|
15
15
|
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
.p-pull-quote__citation {
|
|
30
30
|
@extend %vf-heading-6;
|
|
31
31
|
|
|
32
|
-
margin-top: $spv
|
|
32
|
+
margin-top: $spv--small;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.p-pull-quote__image {
|
|
37
37
|
height: $sp-x-large;
|
|
38
|
-
margin: $spv
|
|
38
|
+
margin: $spv--large 0 $spv--small;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.p-pull-quote__quote {
|
|
@@ -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
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// this is the total width occupied by the search input clear button:
|
|
15
15
|
// the buttons left and right padding, plus the width of the icon,
|
|
16
16
|
// and finally the width of the focus outline defined above
|
|
17
|
-
$search-filter-actions-width: 2 * $sph
|
|
17
|
+
$search-filter-actions-width: 2 * $sph--small + map-get($icon-sizes, default) + $focus-outline-offset;
|
|
18
18
|
|
|
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
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
height: auto;
|
|
34
34
|
margin: 0;
|
|
35
35
|
overflow: hidden;
|
|
36
|
-
padding-left: $sph
|
|
36
|
+
padding-left: $sph--small;
|
|
37
37
|
padding-right: $search-filter-actions-width;
|
|
38
38
|
position: relative;
|
|
39
39
|
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.p-chip {
|
|
50
|
-
margin-bottom: $
|
|
51
|
-
margin-top: $
|
|
50
|
+
margin-bottom: $spv--x-small;
|
|
51
|
+
margin-top: $spv--x-small;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.p-search-and-filter__selected-count {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
border-radius: $border-radius;
|
|
77
77
|
box-shadow: $box-shadow;
|
|
78
78
|
opacity: 1;
|
|
79
|
-
padding: $input-vertical-padding $sph
|
|
79
|
+
padding: $input-vertical-padding $sph--large 0;
|
|
80
80
|
position: absolute;
|
|
81
81
|
width: 100%;
|
|
82
82
|
z-index: 9999;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
box-shadow: none;
|
|
128
128
|
flex-grow: 1;
|
|
129
129
|
margin-bottom: 0;
|
|
130
|
-
margin-left: -$sph
|
|
130
|
+
margin-left: -$sph--small; // compensate for the left padding of the container
|
|
131
131
|
margin-right: -$search-filter-actions-width; // compensate for the space reserved for counter
|
|
132
132
|
min-width: 6rem;
|
|
133
133
|
position: relative;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.p-chip + .p-search-and-filter__box {
|
|
141
|
-
margin-left: $sph
|
|
141
|
+
margin-left: $sph--small;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
.p-filter-panel-section {
|
|
148
148
|
border-bottom: 1px solid $color-mid-x-light;
|
|
149
149
|
margin: 0;
|
|
150
|
-
padding-bottom: $spv
|
|
150
|
+
padding-bottom: $spv--large;
|
|
151
151
|
|
|
152
152
|
&:last-child {
|
|
153
153
|
border: 0;
|
|
@@ -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;
|
|
@@ -20,8 +19,8 @@
|
|
|
20
19
|
vertical-align: 0; // reset vertical-align, as icon is aligned to the parent container, not the baseline of the text.
|
|
21
20
|
|
|
22
21
|
&:only-child {
|
|
23
|
-
margin-left:
|
|
24
|
-
margin-right:
|
|
22
|
+
margin-left: -$sph--small;
|
|
23
|
+
margin-right: -$sph--small;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@mixin vf-p-separator {
|
|
2
2
|
.p-separator {
|
|
3
3
|
// spacing based on %section-padding--default, but using margins on <hr>
|
|
4
|
-
margin-bottom: $spv-
|
|
5
|
-
margin-top: $spv-
|
|
4
|
+
margin-bottom: $spv--strip-regular * 0.5;
|
|
5
|
+
margin-top: $spv--strip-regular * 0.5;
|
|
6
6
|
|
|
7
7
|
@media (min-width: $breakpoint-large) {
|
|
8
|
-
margin-bottom: $spv-
|
|
9
|
-
margin-top: $spv-
|
|
8
|
+
margin-bottom: $spv--strip-regular;
|
|
9
|
+
margin-top: $spv--strip-regular;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
.p-side-navigation__drawer-header {
|
|
78
78
|
border-bottom-style: solid;
|
|
79
79
|
border-bottom-width: 1px;
|
|
80
|
-
margin-bottom: $spv
|
|
81
|
-
padding-bottom: calc(#{$spv
|
|
80
|
+
margin-bottom: $spv--small;
|
|
81
|
+
padding-bottom: calc(#{$spv--small} - 1px); // compensate for border thickness
|
|
82
82
|
padding-left: 0.25rem; // nudge to visually align icon with text
|
|
83
|
-
padding-top: $spv
|
|
83
|
+
padding-top: $spv--small;
|
|
84
84
|
position: sticky;
|
|
85
85
|
top: 0;
|
|
86
86
|
z-index: 1;
|
|
@@ -90,15 +90,12 @@
|
|
|
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
|
|
|
99
96
|
content: '';
|
|
100
|
-
margin-left:
|
|
101
|
-
margin-right: $sph
|
|
97
|
+
margin-left: -$sph--small;
|
|
98
|
+
margin-right: $sph--small;
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
|
|
@@ -116,7 +113,7 @@
|
|
|
116
113
|
}
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
@media (min-width: $
|
|
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 {
|
|
@@ -163,7 +160,7 @@
|
|
|
163
160
|
&::after {
|
|
164
161
|
@include vf-side-navigation-spacing-left($prop: left);
|
|
165
162
|
|
|
166
|
-
bottom: -0.5 * $spv-
|
|
163
|
+
bottom: -0.5 * $spv--x-large; // place border in the middle of the margin
|
|
167
164
|
}
|
|
168
165
|
|
|
169
166
|
.p-side-navigation--icons &::after {
|
|
@@ -187,9 +184,9 @@
|
|
|
187
184
|
@include vf-side-navigation-spacing-left;
|
|
188
185
|
|
|
189
186
|
display: flex;
|
|
190
|
-
padding-bottom: $spv
|
|
191
|
-
padding-right: $sph
|
|
192
|
-
padding-top: $spv
|
|
187
|
+
padding-bottom: $spv--x-small;
|
|
188
|
+
padding-right: $sph--large;
|
|
189
|
+
padding-top: $spv--x-small;
|
|
193
190
|
}
|
|
194
191
|
|
|
195
192
|
%side-navigation__link {
|
|
@@ -252,13 +249,13 @@
|
|
|
252
249
|
@include vf-side-navigation-spacing-left($prop: left);
|
|
253
250
|
|
|
254
251
|
position: absolute;
|
|
255
|
-
top: $spv
|
|
252
|
+
top: $spv--small;
|
|
256
253
|
}
|
|
257
254
|
}
|
|
258
255
|
|
|
259
256
|
.p-side-navigation__status {
|
|
260
257
|
margin-left: auto;
|
|
261
|
-
padding-left: $spv
|
|
258
|
+
padding-left: $spv--small;
|
|
262
259
|
}
|
|
263
260
|
|
|
264
261
|
// Styles for markup in raw HTML docs variant
|
|
@@ -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: $
|
|
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
|
-
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.p-switch__input {
|
|
7
10
|
margin: 0;
|
|
8
|
-
opacity: 0
|
|
9
|
-
position: absolute
|
|
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:
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
& span {
|
|
56
|
-
@extend %vf-hide-text;
|
|
57
|
-
}
|
|
56
|
+
.p-switch__label {
|
|
57
|
+
margin-left: $sph--small;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
// stylelint-disable selector-max-type -- table elements can use selector types
|
|
10
10
|
thead,
|
|
11
11
|
tbody {
|
|
12
|
-
display: block; // for IE we need to force display block
|
|
13
12
|
margin: 0;
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -57,16 +56,4 @@
|
|
|
57
56
|
}
|
|
58
57
|
// stylelint-enable selector-max-type
|
|
59
58
|
}
|
|
60
|
-
|
|
61
|
-
@include deprecate('3.0.0', 'Use the `.p-table--expanding` instead') {
|
|
62
|
-
.p-table-expanding {
|
|
63
|
-
// stylelint-disable-next-line scss/at-extend-no-missing-placeholder
|
|
64
|
-
@extend .p-table--expanding;
|
|
65
|
-
|
|
66
|
-
.p-table-expanding__panel {
|
|
67
|
-
// stylelint-disable-next-line scss/at-extend-no-missing-placeholder
|
|
68
|
-
@extend .p-table__expanding-panel;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
59
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
@mixin vf-p-table-icons {
|
|
4
4
|
.p-table__cell--icon-placeholder {
|
|
5
5
|
$table-icon-size: map-get($icon-sizes, default);
|
|
6
|
-
$table-icon-margin: $sph
|
|
6
|
+
$table-icon-margin: $sph--small;
|
|
7
7
|
|
|
8
|
-
padding-left: $sph
|
|
8
|
+
padding-left: $sph--small + $table-icon-size + $table-icon-margin;
|
|
9
9
|
|
|
10
10
|
[class^='p-icon']:first-child {
|
|
11
11
|
margin-left: -($table-icon-size + $table-icon-margin);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
text-align: left;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
@media (max-width: $
|
|
13
|
+
@media (max-width: $threshold-6-12-col - 1) {
|
|
14
14
|
@supports (display: grid) {
|
|
15
15
|
thead {
|
|
16
16
|
display: none;
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
grid-gap: 0 map-get($grid-gutter-widths, small);
|
|
32
32
|
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
33
33
|
grid-template-rows: auto;
|
|
34
|
-
margin-bottom: $spv-
|
|
35
|
-
padding: 0 $sph
|
|
34
|
+
margin-bottom: $spv--x-large;
|
|
35
|
+
padding: 0 $sph--large;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
td,
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
&[aria-label]::before {
|
|
60
60
|
content: attr(aria-label);
|
|
61
61
|
display: block;
|
|
62
|
-
margin-bottom: map-get($sp-after, x-small) - map-get($nudges,
|
|
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
|
}
|
package/scss/_patterns_tabs.scss
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@extend %vf-pseudo-border--bottom;
|
|
15
15
|
|
|
16
16
|
display: flex;
|
|
17
|
-
margin: 0 auto $spv-
|
|
17
|
+
margin: 0 auto $spv--x-large;
|
|
18
18
|
overflow-x: auto;
|
|
19
19
|
padding: 0;
|
|
20
20
|
position: relative;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
display: block;
|
|
48
48
|
line-height: map-get($line-heights, default-text);
|
|
49
49
|
margin-bottom: 0;
|
|
50
|
-
padding: $spv
|
|
50
|
+
padding: $spv--medium $sph--large;
|
|
51
51
|
position: relative;
|
|
52
52
|
|
|
53
53
|
&::before {
|
|
@@ -41,7 +41,7 @@ $tooltip-overlay-top-border-radius: 0% 0% 100% 100%;
|
|
|
41
41
|
display: none;
|
|
42
42
|
left: -2 * $triangle-height;
|
|
43
43
|
margin-bottom: 0;
|
|
44
|
-
padding: $spv
|
|
44
|
+
padding: $spv--small $sph--large;
|
|
45
45
|
position: absolute;
|
|
46
46
|
text-align: left;
|
|
47
47
|
text-decoration: initial;
|
|
@@ -66,7 +66,7 @@ $tooltip-overlay-top-border-radius: 0% 0% 100% 100%;
|
|
|
66
66
|
bottom: 100%;
|
|
67
67
|
content: '';
|
|
68
68
|
height: 0;
|
|
69
|
-
left: $sph
|
|
69
|
+
left: $sph--large;
|
|
70
70
|
pointer-events: none;
|
|
71
71
|
position: absolute;
|
|
72
72
|
width: 0;
|
|
@@ -125,7 +125,7 @@ $tooltip-overlay-top-border-radius: 0% 0% 100% 100%;
|
|
|
125
125
|
// tooltip
|
|
126
126
|
&::before {
|
|
127
127
|
left: initial;
|
|
128
|
-
right: $sph
|
|
128
|
+
right: $sph--large;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
// hover overlay
|
|
@@ -157,7 +157,7 @@ $tooltip-overlay-top-border-radius: 0% 0% 100% 100%;
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
bottom: -2 * $triangle-height;
|
|
160
|
-
left: $sph
|
|
160
|
+
left: $sph--large;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// hover overlay
|
|
@@ -229,7 +229,7 @@ $tooltip-overlay-top-border-radius: 0% 0% 100% 100%;
|
|
|
229
229
|
|
|
230
230
|
bottom: -2 * $triangle-height;
|
|
231
231
|
left: initial;
|
|
232
|
-
right: $sph
|
|
232
|
+
right: $sph--large;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
// hover overlay
|
|
@@ -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-
|
|
7
|
-
$breakpoint-heading-threshold: $breakpoint-
|
|
5
|
+
$breakpoint-navigation-threshold: $breakpoint-small !default;
|
|
6
|
+
$breakpoint-heading-threshold: $breakpoint-large !default;
|
|
8
7
|
$breakpoint-x-large: 1681px !default; // exclude most laptops
|
|
@@ -40,6 +40,7 @@ $color-focus-negative: #3b0006 !default;
|
|
|
40
40
|
// Button background color changes
|
|
41
41
|
$hover-background-opacity-amount: 0.05;
|
|
42
42
|
$active-background-opacity-amount: 0.08;
|
|
43
|
+
|
|
43
44
|
$muted-text-opacity-amount: 0.6;
|
|
44
45
|
$inactive-text-opacity-amount: 0.75;
|
|
45
46
|
|
|
@@ -92,6 +93,23 @@ $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
|
+
//XXX: add dark theme versions of tinted background and border colours for use with dark theme chips, notificaitons, etc.
|
|
97
|
+
$colors-light-theme--tinted-backgrounds: (
|
|
98
|
+
neutral: #f2f2f2,
|
|
99
|
+
positive: #e8fdec,
|
|
100
|
+
caution: #fef1dc,
|
|
101
|
+
negative: #fce8ea,
|
|
102
|
+
information: #e5f2ff,
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
$colors-light-theme--tinted-borders: (
|
|
106
|
+
neutral: $colors--light-theme--border-high-contrast,
|
|
107
|
+
positive: $color-positive,
|
|
108
|
+
caution: #ec6c04,
|
|
109
|
+
negative: $color-negative,
|
|
110
|
+
information: $color-information,
|
|
111
|
+
);
|
|
112
|
+
|
|
95
113
|
// Dark theme
|
|
96
114
|
$colors--dark-theme--text-default: hsl(0, 0%, 100%) !default;
|
|
97
115
|
$colors--dark-theme--text-hover: hsl(0, 0%, 76%) !default; // minimum contrast on primary that satisfies contrast checker AA
|
package/scss/_settings_grid.scss
CHANGED
|
@@ -7,7 +7,7 @@ $grid-columns-small: 4 !default;
|
|
|
7
7
|
$grid-columns-medium: 6 !default;
|
|
8
8
|
$grid-columns: 12 !default;
|
|
9
9
|
$threshold-4-6-col: $breakpoint-small !default;
|
|
10
|
-
$threshold-6-12-col: $breakpoint-
|
|
10
|
+
$threshold-6-12-col: $breakpoint-large !default;
|
|
11
11
|
|
|
12
12
|
$grid-column-prefix: 'col-' !default;
|
|
13
13
|
$grid-small-col-prefix: '#{$grid-column-prefix}small-' !default;
|
|
@@ -26,9 +26,6 @@ $grid-margin-widths: (
|
|
|
26
26
|
large: $sp-unit * 3,
|
|
27
27
|
) !default;
|
|
28
28
|
|
|
29
|
-
@include deprecate('3.0.0', 'Use the `$grid-margin-widths` map instead') {
|
|
30
|
-
$grid-margin-width: $sph-outer--large !default;
|
|
31
|
-
}
|
|
32
29
|
// Grid breakout template
|
|
33
30
|
$l-fluid-breakout-max-width: $grid-max-width !default;
|
|
34
31
|
$l-fluid-breakout-aside-width: 14rem !default;
|