vanilla-framework 3.0.0-beta.2 → 3.1.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.
- package/README.md +19 -21
- package/package.json +16 -16
- package/scss/_base_fontfaces.scss +183 -181
- package/scss/_base_forms-range.scss +14 -17
- package/scss/_base_grid-definitions.scss +6 -6
- package/scss/_base_hr.scss +4 -4
- package/scss/_layouts_fluid-breakout.scss +12 -12
- package/scss/_patterns_chip.scss +226 -60
- package/scss/_patterns_divider.scss +1 -1
- package/scss/_patterns_grid.scss +4 -4
- package/scss/_patterns_label.scss +5 -29
- package/scss/_patterns_lists.scss +19 -0
- package/scss/_patterns_logo-section.scss +4 -4
- package/scss/_patterns_navigation.scss +7 -7
- package/scss/_patterns_notifications.scss +2 -0
- package/scss/_patterns_pagination.scss +2 -1
- package/scss/_patterns_search-and-filter.scss +8 -4
- package/scss/_patterns_side-navigation.scss +4 -2
- package/scss/_patterns_switch.scss +11 -4
- package/scss/_patterns_table-expanding.scss +0 -4
- package/scss/_patterns_table-mobile-card.scss +4 -7
- package/scss/_settings_colors.scss +64 -9
- package/scss/_settings_grid.scss +2 -4
- package/scss/_settings_spacing.scss +1 -1
- package/scss/_settings_themes.scss +1 -0
package/scss/_base_hr.scss
CHANGED
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
width: calc(100% - #{2 * map-get($grid-margin-widths, small)});
|
|
25
25
|
|
|
26
26
|
@media (min-width: $threshold-4-6-col) {
|
|
27
|
-
max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths,
|
|
28
|
-
width: calc(100% - #{2 * map-get($grid-margin-widths,
|
|
27
|
+
max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths, default)});
|
|
28
|
+
width: calc(100% - #{2 * map-get($grid-margin-widths, default)});
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
@media (min-width: $threshold-6-12-col) {
|
|
32
|
-
max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths,
|
|
33
|
-
width: calc(100% - #{2 * map-get($grid-margin-widths,
|
|
32
|
+
max-width: calc(#{$grid-max-width} - #{2 * map-get($grid-margin-widths, default)});
|
|
33
|
+
width: calc(100% - #{2 * map-get($grid-margin-widths, default)});
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.row &,
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@media (min-width: $threshold-4-6-col) {
|
|
28
|
-
padding-left: map-get($grid-margin-widths,
|
|
29
|
-
padding-right: map-get($grid-margin-widths,
|
|
28
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
29
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@media (min-width: $threshold-6-12-col) {
|
|
33
|
-
padding-left: map-get($grid-margin-widths,
|
|
34
|
-
padding-right: map-get($grid-margin-widths,
|
|
33
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
34
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@media (min-width: $l-fluid-breakout-3-col-threshold) {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
width: 100%;
|
|
52
52
|
|
|
53
53
|
@media (min-width: $l-fluid-breakout-3-col-threshold) {
|
|
54
|
-
padding-left: map-get($grid-margin-widths,
|
|
55
|
-
padding-right: map-get($grid-margin-widths,
|
|
54
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
55
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
@media (min-width: $breakpoint-large) {
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
@extend %l-fluid-breakout__aside-common-properties#{$suffix};
|
|
98
98
|
|
|
99
99
|
@media (min-width: $breakpoint-large) {
|
|
100
|
-
padding-right: map-get($grid-margin-widths,
|
|
100
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@media (min-width: $l-fluid-breakout-3-col-threshold) {
|
|
104
|
-
padding-left: map-get($grid-margin-widths,
|
|
104
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
105
105
|
padding-right: 0;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
@extend %l-fluid-breakout__aside-common-properties#{$suffix};
|
|
111
111
|
|
|
112
112
|
@media (min-width: $breakpoint-large) {
|
|
113
|
-
padding-left: map-get($grid-margin-widths,
|
|
113
|
+
padding-left: map-get($grid-margin-widths, default);
|
|
114
114
|
padding-right: 0;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
@media (min-width: $l-fluid-breakout-3-col-threshold) {
|
|
118
118
|
padding-left: 0;
|
|
119
|
-
padding-right: map-get($grid-margin-widths,
|
|
119
|
+
padding-right: map-get($grid-margin-widths, default);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
@extend %l-fluid-breakout__aside-common-properties#{$suffix};
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
@media (min-width: $l-fluid-breakout-3-col-threshold) {
|
|
142
|
-
margin-left: map-get($grid-margin-widths,
|
|
143
|
-
margin-right: map-get($grid-margin-widths,
|
|
142
|
+
margin-left: map-get($grid-margin-widths, default);
|
|
143
|
+
margin-right: map-get($grid-margin-widths, default);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
package/scss/_patterns_chip.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
1
2
|
@import 'settings';
|
|
2
3
|
|
|
3
4
|
@mixin vf-p-chip {
|
|
@@ -28,14 +29,12 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.p-chip__lead {
|
|
31
|
-
@extend %muted-text;
|
|
32
32
|
@extend %x-small-text;
|
|
33
33
|
|
|
34
34
|
text-transform: uppercase;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.p-chip__lead + .p-chip__value::before {
|
|
38
|
-
@extend %muted-text;
|
|
39
38
|
@extend %x-small-text;
|
|
40
39
|
|
|
41
40
|
content: ': ';
|
|
@@ -43,27 +42,21 @@
|
|
|
43
42
|
|
|
44
43
|
.p-chip__value {
|
|
45
44
|
@extend %small-text;
|
|
45
|
+
font-weight: $font-weight-bold;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.p-chip__dismiss {
|
|
49
|
-
@
|
|
50
|
-
|
|
51
|
-
$button-border-color: transparent,
|
|
52
|
-
$button-hover-background-color: transparent,
|
|
53
|
-
$button-hover-border-color: transparent
|
|
54
|
-
);
|
|
49
|
+
@extend %icon;
|
|
50
|
+
// also includes button and close icon styles in the theming section
|
|
55
51
|
|
|
56
52
|
align-self: center;
|
|
57
|
-
|
|
53
|
+
background-size: map-get($icon-sizes, small);
|
|
54
|
+
border-radius: 50%;
|
|
58
55
|
flex: 0 0 auto;
|
|
59
|
-
height: $default-icon-size;
|
|
60
|
-
line-height: $default-icon-size;
|
|
61
|
-
margin-bottom: 0;
|
|
62
56
|
margin-left: $sph--x-small;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
width: $default-icon-size;
|
|
57
|
+
@media (min-width: $breakpoint-x-large) {
|
|
58
|
+
background-size: math.div(map-get($icon-sizes, small), $font-size-ratio--largescreen); //ensure no rounding happens as it positions the icon off center
|
|
59
|
+
}
|
|
67
60
|
}
|
|
68
61
|
|
|
69
62
|
&.is-dense {
|
|
@@ -71,66 +64,239 @@
|
|
|
71
64
|
}
|
|
72
65
|
|
|
73
66
|
&.is-inline {
|
|
74
|
-
margin
|
|
75
|
-
margin-top: 0;
|
|
67
|
+
margin: 0;
|
|
76
68
|
vertical-align: baseline;
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@mixin vf-chip-default {
|
|
88
|
-
.p-chip {
|
|
72
|
+
.p-chip,
|
|
73
|
+
.p-chip--positive,
|
|
74
|
+
.p-chip--caution,
|
|
75
|
+
.p-chip--negative,
|
|
76
|
+
.p-chip--information {
|
|
89
77
|
@extend %vf-chip;
|
|
90
|
-
@include vf-chip-type(default);
|
|
91
78
|
}
|
|
92
|
-
}
|
|
93
79
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
80
|
+
// Theming
|
|
81
|
+
@if ($theme-default-p-chip == 'dark') {
|
|
82
|
+
.p-chip {
|
|
83
|
+
@include vf-chip-dark-theme;
|
|
84
|
+
}
|
|
85
|
+
.p-chip.is-light {
|
|
86
|
+
@include vf-chip-light-theme;
|
|
87
|
+
}
|
|
88
|
+
// stylelint-disable-next-line selector-max-type
|
|
89
|
+
button.p-chip {
|
|
90
|
+
@include vf-chip-dark-theme($is-interactive: true);
|
|
91
|
+
}
|
|
92
|
+
// stylelint-disable-next-line selector-max-type
|
|
93
|
+
button.p-chip.is-light {
|
|
94
|
+
@include vf-chip-light-theme($is-interactive: true);
|
|
95
|
+
}
|
|
100
96
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
97
|
+
.p-chip--positive {
|
|
98
|
+
@include vf-chip-dark-theme(positive);
|
|
99
|
+
}
|
|
100
|
+
.p-chip--positive.is-light {
|
|
101
|
+
@include vf-chip-light-theme(positive);
|
|
102
|
+
}
|
|
103
|
+
// stylelint-disable-next-line selector-max-type
|
|
104
|
+
button.p-chip--positive {
|
|
105
|
+
@include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
|
|
106
|
+
}
|
|
107
|
+
// stylelint-disable-next-line selector-max-type
|
|
108
|
+
button.p-chip--positive.is-light {
|
|
109
|
+
@include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
|
|
110
|
+
}
|
|
107
111
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
.p-chip--caution {
|
|
113
|
+
@include vf-chip-dark-theme(caution);
|
|
114
|
+
}
|
|
115
|
+
.p-chip--caution.is-light {
|
|
116
|
+
@include vf-chip-light-theme(caution);
|
|
117
|
+
}
|
|
118
|
+
// stylelint-disable-next-line selector-max-type
|
|
119
|
+
button.p-chip--caution {
|
|
120
|
+
@include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
|
|
121
|
+
}
|
|
122
|
+
// stylelint-disable-next-line selector-max-type
|
|
123
|
+
button.p-chip--caution.is-light {
|
|
124
|
+
@include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.p-chip--negative {
|
|
128
|
+
@include vf-chip-dark-theme(negative);
|
|
129
|
+
}
|
|
130
|
+
.p-chip--negative.is-light {
|
|
131
|
+
@include vf-chip-light-theme(negative);
|
|
132
|
+
}
|
|
133
|
+
// stylelint-disable-next-line selector-max-type
|
|
134
|
+
button.p-chip--negative {
|
|
135
|
+
@include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
|
|
136
|
+
}
|
|
137
|
+
// stylelint-disable-next-line selector-max-type
|
|
138
|
+
button.p-chip--negative.is-light {
|
|
139
|
+
@include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.p-chip--information {
|
|
143
|
+
@include vf-chip-dark-theme(information);
|
|
144
|
+
}
|
|
145
|
+
.p-chip--information.is-light {
|
|
146
|
+
@include vf-chip-light-theme(information);
|
|
147
|
+
}
|
|
148
|
+
// stylelint-disable-next-line selector-max-type
|
|
149
|
+
button.p-chip--information {
|
|
150
|
+
@include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
|
|
151
|
+
}
|
|
152
|
+
// stylelint-disable-next-line selector-max-type
|
|
153
|
+
button.p-chip--information.is-light {
|
|
154
|
+
@include vf-chip-light-theme($chip-type: information, $is-interactive: true);
|
|
155
|
+
}
|
|
156
|
+
} @else {
|
|
157
|
+
.p-chip {
|
|
158
|
+
@include vf-chip-light-theme;
|
|
159
|
+
}
|
|
160
|
+
.p-chip.is-dark {
|
|
161
|
+
@include vf-chip-dark-theme;
|
|
162
|
+
}
|
|
163
|
+
// stylelint-disable-next-line selector-max-type
|
|
164
|
+
button.p-chip {
|
|
165
|
+
@include vf-chip-light-theme($is-interactive: true);
|
|
166
|
+
}
|
|
167
|
+
// stylelint-disable-next-line selector-max-type
|
|
168
|
+
button.p-chip.is-dark {
|
|
169
|
+
@include vf-chip-dark-theme($is-interactive: true);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.p-chip--positive {
|
|
173
|
+
@include vf-chip-light-theme(positive);
|
|
174
|
+
}
|
|
175
|
+
.p-chip--positive.is-dark {
|
|
176
|
+
@include vf-chip-dark-theme(positive);
|
|
177
|
+
}
|
|
178
|
+
// stylelint-disable-next-line selector-max-type
|
|
179
|
+
button.p-chip--positive {
|
|
180
|
+
@include vf-chip-light-theme($chip-type: positive, $is-interactive: true);
|
|
181
|
+
}
|
|
182
|
+
// stylelint-disable-next-line selector-max-type
|
|
183
|
+
button.p-chip--positive.is-dark {
|
|
184
|
+
@include vf-chip-dark-theme($chip-type: positive, $is-interactive: true);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.p-chip--caution {
|
|
188
|
+
@include vf-chip-light-theme(caution);
|
|
189
|
+
}
|
|
190
|
+
.p-chip--caution.is-dark {
|
|
191
|
+
@include vf-chip-dark-theme(caution);
|
|
192
|
+
}
|
|
193
|
+
// stylelint-disable-next-line selector-max-type
|
|
194
|
+
button.p-chip--caution {
|
|
195
|
+
@include vf-chip-light-theme($chip-type: caution, $is-interactive: true);
|
|
196
|
+
}
|
|
197
|
+
// stylelint-disable-next-line selector-max-type
|
|
198
|
+
button.p-chip--caution.is-dark {
|
|
199
|
+
@include vf-chip-dark-theme($chip-type: caution, $is-interactive: true);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.p-chip--negative {
|
|
203
|
+
@include vf-chip-light-theme(negative);
|
|
204
|
+
}
|
|
205
|
+
.p-chip--negative.is-dark {
|
|
206
|
+
@include vf-chip-dark-theme(negative);
|
|
207
|
+
}
|
|
208
|
+
// stylelint-disable-next-line selector-max-type
|
|
209
|
+
button.p-chip--negative {
|
|
210
|
+
@include vf-chip-light-theme($chip-type: negative, $is-interactive: true);
|
|
211
|
+
}
|
|
212
|
+
// stylelint-disable-next-line selector-max-type
|
|
213
|
+
button.p-chip--negative.is-dark {
|
|
214
|
+
@include vf-chip-dark-theme($chip-type: negative, $is-interactive: true);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.p-chip--information {
|
|
218
|
+
@include vf-chip-light-theme(information);
|
|
219
|
+
}
|
|
220
|
+
.p-chip--information.is-dark {
|
|
221
|
+
@include vf-chip-dark-theme(information);
|
|
222
|
+
}
|
|
223
|
+
// stylelint-disable-next-line selector-max-type
|
|
224
|
+
button.p-chip--information {
|
|
225
|
+
@include vf-chip-light-theme($chip-type: information, $is-interactive: true);
|
|
226
|
+
}
|
|
227
|
+
// stylelint-disable-next-line selector-max-type
|
|
228
|
+
button.p-chip--information.is-dark {
|
|
229
|
+
@include vf-chip-dark-theme($chip-type: information, $is-interactive: true);
|
|
230
|
+
}
|
|
112
231
|
}
|
|
113
232
|
}
|
|
114
233
|
|
|
115
|
-
@mixin vf-chip-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
@include vf-chip-type(information);
|
|
234
|
+
@mixin vf-chip-theme($chip-type: neutral, $is-interactive: false, $colors-chip-tinted-backgrounds, $colors-chip-tinted-borders, $color-chip-value, $color-chip-lead) {
|
|
235
|
+
@if (not map-has-key($colors-chip-tinted-backgrounds, $chip-type)) {
|
|
236
|
+
$chip-type: neutral;
|
|
119
237
|
}
|
|
120
|
-
}
|
|
121
238
|
|
|
122
|
-
|
|
123
|
-
$color-background:
|
|
124
|
-
$color-
|
|
239
|
+
$color-background: map-get($colors-chip-tinted-backgrounds, $chip-type, 'default');
|
|
240
|
+
$color-background-hover: map-get($colors-chip-tinted-backgrounds, $chip-type, 'hover');
|
|
241
|
+
$color-background-active: map-get($colors-chip-tinted-backgrounds, $chip-type, 'active');
|
|
242
|
+
$color-border: map-get($colors-chip-tinted-borders, $chip-type);
|
|
243
|
+
|
|
244
|
+
background-color: $color-background;
|
|
245
|
+
border: 1px solid $color-border;
|
|
125
246
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
247
|
+
.p-chip__value {
|
|
248
|
+
color: $color-chip-value;
|
|
249
|
+
}
|
|
250
|
+
.p-chip__lead,
|
|
251
|
+
.p-chip__lead + .p-chip__value::before {
|
|
252
|
+
color: $color-chip-lead;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@if ($is-interactive) {
|
|
256
|
+
&:hover {
|
|
257
|
+
background-color: $color-background-hover;
|
|
258
|
+
border-color: $color-border;
|
|
259
|
+
}
|
|
260
|
+
&[aria-pressed='true'],
|
|
261
|
+
&.is-selected,
|
|
262
|
+
&:active {
|
|
263
|
+
background-color: $color-background-active;
|
|
264
|
+
border-color: $color-border;
|
|
265
|
+
}
|
|
129
266
|
} @else {
|
|
130
|
-
|
|
131
|
-
|
|
267
|
+
.p-chip__dismiss {
|
|
268
|
+
@include vf-icon-close($color-chip-lead);
|
|
269
|
+
|
|
270
|
+
@include vf-button-pattern(
|
|
271
|
+
$button-background-color: transparent,
|
|
272
|
+
$button-border-color: transparent,
|
|
273
|
+
$button-hover-background-color: $color-background-hover,
|
|
274
|
+
$button-hover-border-color: transparent,
|
|
275
|
+
$button-active-background-color: $color-background-active,
|
|
276
|
+
$button-active-border-color: transparent
|
|
277
|
+
);
|
|
278
|
+
}
|
|
132
279
|
}
|
|
280
|
+
}
|
|
133
281
|
|
|
134
|
-
|
|
135
|
-
|
|
282
|
+
@mixin vf-chip-light-theme($chip-type: neutral, $is-interactive: false) {
|
|
283
|
+
@include vf-chip-theme(
|
|
284
|
+
$chip-type: $chip-type,
|
|
285
|
+
$is-interactive: $is-interactive,
|
|
286
|
+
$colors-chip-tinted-backgrounds: $colors-light-theme--tinted-backgrounds,
|
|
287
|
+
$colors-chip-tinted-borders: $colors-light-theme--tinted-borders,
|
|
288
|
+
$color-chip-value: $colors--light-theme--text-default,
|
|
289
|
+
$color-chip-lead: $colors--light-theme--text-default
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@mixin vf-chip-dark-theme($chip-type: neutral, $is-interactive: false) {
|
|
294
|
+
@include vf-chip-theme(
|
|
295
|
+
$chip-type: $chip-type,
|
|
296
|
+
$is-interactive: $is-interactive,
|
|
297
|
+
$colors-chip-tinted-backgrounds: $colors-dark-theme--tinted-backgrounds,
|
|
298
|
+
$colors-chip-tinted-borders: $colors-dark-theme--tinted-borders,
|
|
299
|
+
$color-chip-value: $colors--dark-theme--text-default,
|
|
300
|
+
$color-chip-lead: $colors--dark-theme--text-default
|
|
301
|
+
);
|
|
136
302
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
&:not(:first-child)::before {
|
|
29
29
|
bottom: 0;
|
|
30
30
|
content: '';
|
|
31
|
-
left: map-get($grid-gutter-widths,
|
|
31
|
+
left: map-get($grid-gutter-widths, default) * -0.5; // "large" here is not a typo. The grid switches to 12 columns at breakpoint medium. Hence the use of large-screen gutter
|
|
32
32
|
position: absolute;
|
|
33
33
|
top: 0;
|
|
34
34
|
width: 1px;
|
package/scss/_patterns_grid.scss
CHANGED
|
@@ -128,13 +128,13 @@
|
|
|
128
128
|
right: map-get($grid-margin-widths, small);
|
|
129
129
|
|
|
130
130
|
@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
|
|
131
|
-
left: map-get($grid-margin-widths,
|
|
132
|
-
right: map-get($grid-margin-widths,
|
|
131
|
+
left: map-get($grid-margin-widths, default);
|
|
132
|
+
right: map-get($grid-margin-widths, default);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
@media (min-width: $threshold-6-12-col) {
|
|
136
|
-
left: map-get($grid-margin-widths,
|
|
137
|
-
right: map-get($grid-margin-widths,
|
|
136
|
+
left: map-get($grid-margin-widths, default);
|
|
137
|
+
right: map-get($grid-margin-widths, default);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -22,52 +22,28 @@
|
|
|
22
22
|
color: $color-x-light;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
@include vf-p-label-in-progress;
|
|
27
|
-
@include vf-p-label-new;
|
|
28
|
-
@include vf-p-label-updated;
|
|
29
|
-
@include vf-p-label-deprecated;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Override local variables
|
|
33
|
-
@mixin vf-p-label-validated {
|
|
34
|
-
.p-label--validated {
|
|
25
|
+
.p-label--positive {
|
|
35
26
|
@extend %vf-label;
|
|
36
27
|
|
|
37
|
-
background-color: $color-
|
|
28
|
+
background-color: $color-positive;
|
|
38
29
|
color: $color-x-light;
|
|
39
30
|
}
|
|
40
|
-
}
|
|
41
31
|
|
|
42
|
-
|
|
43
|
-
.p-label--in-progress {
|
|
32
|
+
.p-label--caution {
|
|
44
33
|
@extend %vf-label;
|
|
45
34
|
|
|
46
35
|
background-color: $color-caution;
|
|
47
36
|
color: $color-dark;
|
|
48
37
|
}
|
|
49
|
-
}
|
|
50
38
|
|
|
51
|
-
|
|
52
|
-
.p-label--new {
|
|
53
|
-
@extend %vf-label;
|
|
54
|
-
|
|
55
|
-
background-color: $color-positive;
|
|
56
|
-
color: $color-x-light;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@mixin vf-p-label-updated {
|
|
61
|
-
.p-label--updated {
|
|
39
|
+
.p-label--information {
|
|
62
40
|
@extend %vf-label;
|
|
63
41
|
|
|
64
42
|
background-color: $color-information;
|
|
65
43
|
color: $color-x-light;
|
|
66
44
|
}
|
|
67
|
-
}
|
|
68
45
|
|
|
69
|
-
|
|
70
|
-
.p-label--deprecated {
|
|
46
|
+
.p-label--negative {
|
|
71
47
|
@extend %vf-label;
|
|
72
48
|
|
|
73
49
|
background-color: $color-negative;
|
|
@@ -29,6 +29,18 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
%nested-counter {
|
|
33
|
+
// Counter is named and it will be reset for each "ol" element.
|
|
34
|
+
counter-reset: list-item;
|
|
35
|
+
li::marker {
|
|
36
|
+
// "counters" function returns a string representing the current value of the named counter ("list-item").
|
|
37
|
+
// It is used to insert a string between different levels of nested counters.
|
|
38
|
+
// Source: https://www.w3schools.com/css/css_counters.asp
|
|
39
|
+
content: counters(list-item, '.') '. ';
|
|
40
|
+
counter-increment: list-item;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
32
44
|
// Mixin for list items
|
|
33
45
|
%vf-list-item {
|
|
34
46
|
padding-bottom: $spv--x-small;
|
|
@@ -395,6 +407,12 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
395
407
|
}
|
|
396
408
|
}
|
|
397
409
|
|
|
410
|
+
@mixin vf-p-list-nested-counter {
|
|
411
|
+
.p-list--nested-counter {
|
|
412
|
+
@extend %nested-counter;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
398
416
|
@mixin vf-p-lists {
|
|
399
417
|
@include vf-p-list-placeholders;
|
|
400
418
|
|
|
@@ -407,4 +425,5 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
407
425
|
@include vf-p-stepped-list;
|
|
408
426
|
@include vf-p-stepped-list-detailed;
|
|
409
427
|
@include vf-p-list-split;
|
|
428
|
+
@include vf-p-list-nested-counter;
|
|
410
429
|
}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
@if $breakpoint == medium {
|
|
17
17
|
$grid-column-count: $grid-columns-medium;
|
|
18
18
|
$grid-column-prefix: $grid-medium-col-prefix;
|
|
19
|
-
$gutter: map-get($grid-gutter-widths,
|
|
19
|
+
$gutter: map-get($grid-gutter-widths, default);
|
|
20
20
|
$media-query-keyword: min-width;
|
|
21
21
|
$media-query-width: $threshold-4-6-col;
|
|
22
22
|
$logo-column-span: 1;
|
|
23
23
|
} @else if $breakpoint == large {
|
|
24
24
|
$grid-column-count: $grid-columns;
|
|
25
25
|
$grid-column-prefix: $grid-large-col-prefix;
|
|
26
|
-
$gutter: map-get($grid-gutter-widths,
|
|
26
|
+
$gutter: map-get($grid-gutter-widths, default);
|
|
27
27
|
$media-query-keyword: min-width;
|
|
28
28
|
$media-query-width: $threshold-6-12-col;
|
|
29
29
|
$logo-column-span: 2;
|
|
@@ -103,8 +103,8 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
$margin-small: map-get($grid-gutter-widths, small);
|
|
106
|
-
$margin-medium: map-get($grid-gutter-widths,
|
|
107
|
-
$margin-large: map-get($grid-gutter-widths,
|
|
106
|
+
$margin-medium: map-get($grid-gutter-widths, default);
|
|
107
|
+
$margin-large: map-get($grid-gutter-widths, default);
|
|
108
108
|
|
|
109
109
|
.p-logo-section__items {
|
|
110
110
|
display: flex;
|
|
@@ -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,
|
|
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,
|
|
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,
|
|
106
|
-
margin-right: map-get($grid-margin-widths,
|
|
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,
|
|
210
|
+
margin-right: map-get($grid-margin-widths, default);
|
|
211
211
|
width: 100%;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -336,7 +336,7 @@ $lightness-threshold: 70;
|
|
|
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,
|
|
339
|
+
right: map-get($grid-margin-widths, default);
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
@media (min-width: $breakpoint-navigation-threshold) {
|
|
@@ -439,7 +439,7 @@ $lightness-threshold: 70;
|
|
|
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,
|
|
442
|
+
right: map-get($grid-margin-widths, default);
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
@media (min-width: $breakpoint-navigation-threshold) {
|
|
@@ -101,6 +101,8 @@ $notification-text-margin-bottom: $spv--large - $spv-nudge;
|
|
|
101
101
|
background-repeat: no-repeat;
|
|
102
102
|
background-size: unset;
|
|
103
103
|
border: 0;
|
|
104
|
+
// set the height of the button to be size of an icon + padding on top and bottom
|
|
105
|
+
height: calc(2 * $spv--small + $default-icon-size);
|
|
104
106
|
position: absolute;
|
|
105
107
|
right: $sph--large * 0.5;
|
|
106
108
|
top: $spv--small;
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
@extend %vf-button-base;
|
|
6
6
|
@include vf-button-pattern;
|
|
7
7
|
|
|
8
|
-
&.is-active
|
|
8
|
+
&.is-active,
|
|
9
|
+
&[aria-current='page'] {
|
|
9
10
|
background-color: scale-color($color-x-light, $lightness: -$active-background-opacity-amount * 100%);
|
|
10
11
|
color: $color-dark;
|
|
11
12
|
text-decoration: none;
|
|
@@ -154,11 +154,15 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.p-chip {
|
|
157
|
-
|
|
157
|
+
margin-bottom: $spv--small;
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
// hide chips lead when there are in panel
|
|
160
|
+
// FIXME: this should be handled in HTML/React, not CSS
|
|
161
|
+
.p-chip__lead {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
160
164
|
|
|
161
|
-
|
|
165
|
+
.p-chip__lead + .p-chip__value::before {
|
|
162
166
|
display: none;
|
|
163
167
|
}
|
|
164
168
|
}
|
|
@@ -175,7 +179,7 @@
|
|
|
175
179
|
position: relative;
|
|
176
180
|
|
|
177
181
|
&[aria-expanded='false'] {
|
|
178
|
-
max-height:
|
|
182
|
+
max-height: 5rem; // 2 rows of chips
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
|