vanilla-framework 4.4.0 → 4.5.1
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 +3 -3
- package/scss/_layouts_application-panels.scss +1 -0
- package/scss/_layouts_docs.scss +3 -2
- package/scss/_patterns_grid.scss +3 -3
- package/scss/_patterns_search-box.scss +14 -12
- package/scss/_patterns_side-navigation-expandable.scss +1 -0
- package/scss/_patterns_side-navigation.scss +6 -0
- package/scss/_patterns_suru.scss +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vanilla-framework",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "webteam@canonical.com",
|
|
6
6
|
"name": "Canonical Webteam"
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
],
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@canonical/cookie-policy": "3.5.0",
|
|
59
|
-
"@canonical/latest-news": "1.
|
|
59
|
+
"@canonical/latest-news": "1.5.0",
|
|
60
60
|
"@percy/cli": "1.27.2",
|
|
61
61
|
"@testing-library/cypress": "9.0.0",
|
|
62
62
|
"autoprefixer": "10.4.16",
|
|
63
|
-
"cypress": "
|
|
63
|
+
"cypress": "13.6.0",
|
|
64
64
|
"get-site-urls": "3.0.0",
|
|
65
65
|
"markdown-spellcheck": "1.3.1",
|
|
66
66
|
"parker": "0.0.10",
|
package/scss/_layouts_docs.scss
CHANGED
package/scss/_patterns_grid.scss
CHANGED
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
|
|
145
145
|
// column reordering
|
|
146
146
|
$offsets: (
|
|
147
|
-
(small, 0, $threshold-4-6-col, $grid-columns-small
|
|
148
|
-
(medium, $threshold-4-6-col, $threshold-6-12-col, $grid-columns-medium
|
|
149
|
-
(large, $threshold-6-12-col, false, $grid-columns
|
|
147
|
+
(small, 0, $threshold-4-6-col, $grid-columns-small),
|
|
148
|
+
(medium, $threshold-4-6-col, $threshold-6-12-col, $grid-columns-medium),
|
|
149
|
+
(large, $threshold-6-12-col, false, $grid-columns)
|
|
150
150
|
);
|
|
151
151
|
|
|
152
152
|
@each $label, $breakpoint-min, $breakpoint-reset, $col-count in $offsets {
|
|
@@ -79,31 +79,33 @@
|
|
|
79
79
|
.p-search-box__input {
|
|
80
80
|
@include vf-search-box-dark-theme;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
.p-search-box.is-light {
|
|
84
|
-
.p-search-box__input {
|
|
85
|
-
@include vf-search-box-light-theme;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
82
|
} @else {
|
|
89
83
|
.p-search-box {
|
|
90
84
|
.p-search-box__input {
|
|
91
85
|
@include vf-search-box-light-theme;
|
|
92
86
|
}
|
|
93
87
|
}
|
|
94
|
-
|
|
95
|
-
.p-search-box.is-dark {
|
|
96
|
-
.p-search-box__input {
|
|
97
|
-
@include vf-search-box-dark-theme;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
88
|
}
|
|
101
89
|
|
|
90
|
+
// beware that the order of the following classes is important
|
|
91
|
+
// as they are used to override the default theme
|
|
102
92
|
.is-paper .p-search-box {
|
|
103
93
|
.p-search-box__input {
|
|
104
94
|
@include vf-search-box-paper-theme;
|
|
105
95
|
}
|
|
106
96
|
}
|
|
97
|
+
|
|
98
|
+
.p-search-box.is-light {
|
|
99
|
+
.p-search-box__input {
|
|
100
|
+
@include vf-search-box-light-theme;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-search-box.is-dark {
|
|
105
|
+
.p-search-box__input {
|
|
106
|
+
@include vf-search-box-dark-theme;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
@mixin vf-search-box-theme(
|
|
@@ -292,6 +292,7 @@
|
|
|
292
292
|
&[aria-expanded='false'] {
|
|
293
293
|
height: 0;
|
|
294
294
|
opacity: 0;
|
|
295
|
+
overflow: hidden;
|
|
295
296
|
transform: translate3d(0, -0.5rem, 0);
|
|
296
297
|
visibility: hidden;
|
|
297
298
|
}
|
|
@@ -544,6 +545,11 @@
|
|
|
544
545
|
}
|
|
545
546
|
}
|
|
546
547
|
}
|
|
548
|
+
|
|
549
|
+
.is-paper .p-side-navigation__drawer,
|
|
550
|
+
.is-paper .p-side-navigation__drawer-header {
|
|
551
|
+
background: $color-paper;
|
|
552
|
+
}
|
|
547
553
|
}
|
|
548
554
|
|
|
549
555
|
// helper
|
package/scss/_patterns_suru.scss
CHANGED
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
aspect-ratio: calc(2216 / 428); // aspect ratio calculated from image dimensions
|
|
6
6
|
background-image: url('#{$assets-path}7f34ade9-website_suru_25.jpg');
|
|
7
7
|
background-size: contain;
|
|
8
|
-
display: none; // only show suru on large screens
|
|
9
8
|
margin: 0 auto;
|
|
10
9
|
max-width: $grid-max-width;
|
|
11
10
|
|
|
12
|
-
// show suru only on large screens
|
|
13
|
-
@media (min-width: $breakpoint-large) {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
11
|
&.is-dark {
|
|
18
12
|
aspect-ratio: calc(2580 / 501); // aspect ratio calculated from image dimensions
|
|
19
13
|
background-image: url('#{$assets-path}9469ef82-1_website_suru_DARK_25%20(1)122.jpg');
|