vanilla-framework 4.15.0 → 4.16.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/package.json +12 -10
- package/scss/_base_button.scss +1 -1
- package/scss/_base_details.scss +1 -1
- package/scss/_base_forms.scss +8 -2
- package/scss/_base_hr.scss +2 -3
- package/scss/_base_links.scss +1 -1
- package/scss/_base_placeholders.scss +2 -0
- package/scss/_base_typography-definitions.scss +1 -1
- package/scss/_global_functions.scss +17 -5
- package/scss/_layouts_fluid-breakout.scss +2 -2
- package/scss/_patterns_accordion.scss +1 -1
- package/scss/_patterns_article-pagination.scss +2 -2
- package/scss/_patterns_buttons.scss +1 -1
- package/scss/_patterns_chip.scss +8 -9
- package/scss/_patterns_code-snippet.scss +1 -1
- package/scss/_patterns_contextual-menu.scss +1 -1
- package/scss/_patterns_cta.scss +7 -0
- package/scss/_patterns_equal-height-row.scss +87 -43
- package/scss/_patterns_image.scss +51 -15
- package/scss/_patterns_links.scss +1 -1
- package/scss/_patterns_list-tree.scss +49 -43
- package/scss/_patterns_lists.scss +58 -17
- package/scss/_patterns_matrix.scss +2 -2
- package/scss/_patterns_navigation.scss +4 -4
- package/scss/_patterns_pull-quotes.scss +1 -1
- package/scss/_patterns_rule.scss +6 -2
- package/scss/_patterns_search-and-filter.scss +11 -12
- package/scss/_patterns_separator.scss +1 -0
- package/scss/_patterns_side-navigation.scss +1 -1
- package/scss/_patterns_status-label.scss +5 -0
- package/scss/_patterns_table-mobile-card.scss +1 -1
- package/scss/_patterns_tooltips.scss +26 -8
- package/scss/_settings_breakpoints.scss +16 -0
- package/scss/_settings_colors.scss +16 -13
- package/scss/_utilities_floats.scss +6 -6
- package/scss/_utilities_hide.scss +9 -9
- package/scss/_utilities_show.scss +3 -3
|
@@ -41,7 +41,6 @@ $color-focus-dark: #9cf !default;
|
|
|
41
41
|
// Focus modifications to meet AA 3:1 contrast ratio against
|
|
42
42
|
// button background for positive buttons
|
|
43
43
|
$color-focus-positive: #003008 !default;
|
|
44
|
-
$color-focus-positive-dark: #9cf !default;
|
|
45
44
|
|
|
46
45
|
// Button background color changes
|
|
47
46
|
$input-background-opacity-amount: 0.04;
|
|
@@ -93,7 +92,6 @@ $states: (
|
|
|
93
92
|
// --link-default - default link color
|
|
94
93
|
// --link-visited - visited link color
|
|
95
94
|
// --focus - focus highlight/outline color
|
|
96
|
-
// --positive-focus - focus highlight/outline color for positive buttons
|
|
97
95
|
//
|
|
98
96
|
// Background colors:
|
|
99
97
|
// --background - default background color
|
|
@@ -106,6 +104,9 @@ $states: (
|
|
|
106
104
|
// --border-default - default border color
|
|
107
105
|
// --border-high-contrast - high contrast version of border color, to be used when border needs more visibility (form inputs, etc)
|
|
108
106
|
// --border-low-contrast - low contrast version of border color, to be used when border needs more visibility (separators)
|
|
107
|
+
//
|
|
108
|
+
// Highlight colors:
|
|
109
|
+
// --accent - default accent color
|
|
109
110
|
|
|
110
111
|
// Light theme
|
|
111
112
|
$colors--light-theme--text-default: #000 !default;
|
|
@@ -115,7 +116,6 @@ $colors--light-theme--text-inactive: rgba($color-x-dark, $inactive-text-opacity-
|
|
|
115
116
|
$colors--light-theme--link-default: $color-link !default;
|
|
116
117
|
$colors--light-theme--link-visited: $color-link-visited !default;
|
|
117
118
|
$colors--light-theme--focus: $color-focus !default;
|
|
118
|
-
$colors--light-theme--positive-focus: $color-focus-positive !default;
|
|
119
119
|
|
|
120
120
|
$colors--light-theme--background-default: #fff !default;
|
|
121
121
|
$colors--light-theme--background-alt: #f7f7f7 !default;
|
|
@@ -176,14 +176,13 @@ $colors--dark-theme--text-inactive: rgba($colors--dark-theme--text-default, $ina
|
|
|
176
176
|
$colors--dark-theme--link-default: $color-link-dark !default;
|
|
177
177
|
$colors--dark-theme--link-visited: $color-link-visited-dark !default;
|
|
178
178
|
$colors--dark-theme--focus: $color-focus-dark !default;
|
|
179
|
-
$colors--dark-theme--positive-focus: $color-focus-positive-dark !default;
|
|
180
179
|
|
|
181
180
|
$colors--dark-theme--background-default: #262626 !default;
|
|
182
181
|
$colors--dark-theme--background-alt: #202020 !default;
|
|
183
182
|
$colors--dark-theme--background-code: $color-code-background-dark !default;
|
|
184
|
-
$colors--dark-theme--background-inputs:
|
|
185
|
-
$colors--dark-theme--background-active:
|
|
186
|
-
$colors--dark-theme--background-hover:
|
|
183
|
+
$colors--dark-theme--background-inputs: #2f2f2f !default;
|
|
184
|
+
$colors--dark-theme--background-active: #373737 !default;
|
|
185
|
+
$colors--dark-theme--background-hover: #313131 !default;
|
|
187
186
|
$colors--dark-theme--background-overlay: transparentize($color-dark, 0.15) !default;
|
|
188
187
|
|
|
189
188
|
$colors--dark-theme--border-default: rgba($colors--dark-theme--text-default, 0.2) !default;
|
|
@@ -229,9 +228,9 @@ $colors-dark-theme--tinted-borders: (
|
|
|
229
228
|
);
|
|
230
229
|
|
|
231
230
|
// Paper theme (work in progress)
|
|
232
|
-
$colors--paper-theme--background-inputs:
|
|
233
|
-
$colors--paper-theme--background-active:
|
|
234
|
-
$colors--paper-theme--background-hover:
|
|
231
|
+
$colors--paper-theme--background-inputs: #eaeaea !default;
|
|
232
|
+
$colors--paper-theme--background-active: #e0e0e0 !default;
|
|
233
|
+
$colors--paper-theme--background-hover: #e7e7e7 !default;
|
|
235
234
|
|
|
236
235
|
// Current theme (based on CSS variables)
|
|
237
236
|
// This is a mapping between SCSS variable and it's CSS property equivalent.
|
|
@@ -244,7 +243,6 @@ $colors--theme--text-inactive: var(--vf-color-text-inactive);
|
|
|
244
243
|
$colors--theme--link-default: var(--vf-color-link-default);
|
|
245
244
|
$colors--theme--link-visited: var(--vf-color-link-visited);
|
|
246
245
|
$colors--theme--focus: var(--vf-color-focus);
|
|
247
|
-
$colors--theme--positive-focus: var(--vf-color-positive-focus);
|
|
248
246
|
|
|
249
247
|
$colors--theme--background-default: var(--vf-color-background-default);
|
|
250
248
|
$colors--theme--background-alt: var(--vf-color-background-alt);
|
|
@@ -290,6 +288,8 @@ $colors--theme--button-negative-hover: var(--vf-color-button-negative-hover);
|
|
|
290
288
|
$colors--theme--button-negative-active: var(--vf-color-button-negative-active);
|
|
291
289
|
$colors--theme--button-negative-text: var(--vf-color-button-negative-text);
|
|
292
290
|
|
|
291
|
+
$colors--theme--accent: var(--vf-color-accent);
|
|
292
|
+
|
|
293
293
|
// Theme colors exposed as CSS custom properties
|
|
294
294
|
@mixin vf-theme-light--colors {
|
|
295
295
|
// SCSS variables need to be interpolated to work in CSS custom properties
|
|
@@ -300,7 +300,6 @@ $colors--theme--button-negative-text: var(--vf-color-button-negative-text);
|
|
|
300
300
|
--vf-color-link-default: #{$colors--light-theme--link-default};
|
|
301
301
|
--vf-color-link-visited: #{$colors--light-theme--link-visited};
|
|
302
302
|
--vf-color-focus: #{$colors--light-theme--focus};
|
|
303
|
-
--vf-color-positive-focus: #{$colors--light-theme--positive-focus};
|
|
304
303
|
|
|
305
304
|
--vf-color-background-default: #{$colors--light-theme--background-default};
|
|
306
305
|
--vf-color-background-alt: #{$colors--light-theme--background-alt};
|
|
@@ -345,6 +344,8 @@ $colors--theme--button-negative-text: var(--vf-color-button-negative-text);
|
|
|
345
344
|
--vf-color-button-negative-hover: #{adjust-color($color-negative, $lightness: -$hover-background-opacity-percentage)};
|
|
346
345
|
--vf-color-button-negative-active: #{adjust-color($color-negative, $lightness: -$active-background-opacity-percentage)};
|
|
347
346
|
--vf-color-button-negative-text: #{vf-contrast-text-color($color-negative)};
|
|
347
|
+
|
|
348
|
+
--vf-color-accent: #{$color-accent};
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
@mixin vf-theme-dark--colors {
|
|
@@ -356,7 +357,6 @@ $colors--theme--button-negative-text: var(--vf-color-button-negative-text);
|
|
|
356
357
|
--vf-color-link-default: #{$colors--dark-theme--link-default};
|
|
357
358
|
--vf-color-link-visited: #{$colors--dark-theme--link-visited};
|
|
358
359
|
--vf-color-focus: #{$colors--dark-theme--focus};
|
|
359
|
-
--vf-color-positive-focus: #{$colors--dark-theme--positive-focus};
|
|
360
360
|
|
|
361
361
|
--vf-color-background-default: #{$colors--dark-theme--background-default};
|
|
362
362
|
--vf-color-background-alt: #{$colors--dark-theme--background-alt};
|
|
@@ -401,6 +401,8 @@ $colors--theme--button-negative-text: var(--vf-color-button-negative-text);
|
|
|
401
401
|
--vf-color-button-negative-hover: #{adjust-color($color-negative-dark, $lightness: -$hover-background-opacity-percentage)};
|
|
402
402
|
--vf-color-button-negative-active: #{adjust-color($color-negative-dark, $lightness: -$active-background-opacity-percentage)};
|
|
403
403
|
--vf-color-button-negative-text: #{vf-contrast-text-color($color-negative-dark)};
|
|
404
|
+
|
|
405
|
+
--vf-color-accent: #{$color-accent-dark};
|
|
404
406
|
}
|
|
405
407
|
|
|
406
408
|
@mixin vf-theme-paper--colors {
|
|
@@ -421,4 +423,5 @@ $color-ubuntu: #e95420; // Ubuntu orange, should not be overridden
|
|
|
421
423
|
$color-brand: $color-ubuntu !default;
|
|
422
424
|
$color-brand-dark: $color-brand !default;
|
|
423
425
|
$color-accent: #0f95a1 !default;
|
|
426
|
+
$color-accent-dark: #70bbc2 !default;
|
|
424
427
|
$color-accent-background: $colors--dark-theme--background-default !default; // changed from "brand" colour to dark theme background
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
float: right !important;
|
|
7
7
|
|
|
8
8
|
&--small {
|
|
9
|
-
@media (
|
|
9
|
+
@media (width < $breakpoint-small) {
|
|
10
10
|
float: right !important;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
&--medium {
|
|
15
|
-
@media (
|
|
15
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
16
16
|
float: right !important;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&--large {
|
|
21
|
-
@media (
|
|
21
|
+
@media ($breakpoint-large <= width) {
|
|
22
22
|
float: right !important;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
float: left !important;
|
|
29
29
|
|
|
30
30
|
&--small {
|
|
31
|
-
@media (
|
|
31
|
+
@media (width < $breakpoint-small) {
|
|
32
32
|
float: left !important;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&--medium {
|
|
37
|
-
@media (
|
|
37
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
38
38
|
float: left !important;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&--large {
|
|
43
|
-
@media (
|
|
43
|
+
@media ($breakpoint-large <= width) {
|
|
44
44
|
float: left !important;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
display: none !important;
|
|
22
22
|
|
|
23
23
|
&--small {
|
|
24
|
-
@media (
|
|
24
|
+
@media (width < $breakpoint-small) {
|
|
25
25
|
display: none !important;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&--medium {
|
|
30
|
-
@media (
|
|
30
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
31
31
|
display: none !important;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&--large {
|
|
36
|
-
@media (
|
|
36
|
+
@media ($breakpoint-large <= width) {
|
|
37
37
|
display: none !important;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
@include vf-hide-table-column;
|
|
46
46
|
|
|
47
47
|
&--small {
|
|
48
|
-
@media (
|
|
48
|
+
@media (width < $breakpoint-small) {
|
|
49
49
|
@include vf-hide-table-column;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&--medium {
|
|
54
|
-
@media (
|
|
54
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
55
55
|
@include vf-hide-table-column;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&--large {
|
|
60
|
-
@media (
|
|
60
|
+
@media ($breakpoint-large <= width) {
|
|
61
61
|
@include vf-hide-table-column;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -69,19 +69,19 @@
|
|
|
69
69
|
display: none !important;
|
|
70
70
|
|
|
71
71
|
&--small {
|
|
72
|
-
@media (
|
|
72
|
+
@media (width < $breakpoint-small) {
|
|
73
73
|
display: none !important;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&--medium {
|
|
78
|
-
@media (
|
|
78
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
79
79
|
display: none !important;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&--large {
|
|
84
|
-
@media (
|
|
84
|
+
@media ($breakpoint-large <= width) {
|
|
85
85
|
display: none !important;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
display: initial !important;
|
|
7
7
|
|
|
8
8
|
&--small {
|
|
9
|
-
@media (
|
|
9
|
+
@media (width < $breakpoint-small) {
|
|
10
10
|
display: inherit !important;
|
|
11
11
|
display: initial !important;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&--medium {
|
|
16
|
-
@media (
|
|
16
|
+
@media ($breakpoint-small <= width < $breakpoint-large) {
|
|
17
17
|
display: inherit !important;
|
|
18
18
|
display: initial !important;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&--large {
|
|
23
|
-
@media (
|
|
23
|
+
@media ($breakpoint-large <= width) {
|
|
24
24
|
display: inherit !important;
|
|
25
25
|
display: initial !important;
|
|
26
26
|
}
|