vanilla-framework 3.5.0 → 3.6.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
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"percy": "percy exec -- node snapshots.js",
|
|
46
46
|
"icon-svgs-to-mixins": "node scripts/convert-svgs-to-icon-mixins.js icons"
|
|
47
47
|
},
|
|
48
|
-
"version": "3.
|
|
48
|
+
"version": "3.6.0",
|
|
49
49
|
"files": [
|
|
50
50
|
"_index.scss",
|
|
51
51
|
"/scss",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@canonical/cookie-policy": "3.4.0",
|
|
57
|
-
"@canonical/latest-news": "1.
|
|
57
|
+
"@canonical/latest-news": "1.4.1",
|
|
58
58
|
"autoprefixer": "10.4.7",
|
|
59
59
|
"postcss": "8.4.14",
|
|
60
60
|
"postcss-cli": "9.1.0",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import 'settings';
|
|
2
|
+
|
|
3
|
+
@mixin vf-p-badge {
|
|
4
|
+
%vf-badge {
|
|
5
|
+
@extend %x-small-text;
|
|
6
|
+
background-color: $color-dark;
|
|
7
|
+
border-radius: 1rem;
|
|
8
|
+
box-sizing: content-box;
|
|
9
|
+
color: $color-x-light;
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
max-width: 4ch;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
padding: 0 $spv--x-small;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.p-badge,
|
|
17
|
+
.p-badge--negative {
|
|
18
|
+
@extend %vf-badge;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.p-badge--negative {
|
|
22
|
+
background-color: $color-negative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p-chip,
|
|
26
|
+
[class*='p-chip--'] {
|
|
27
|
+
.p-badge,
|
|
28
|
+
.p-badge--negative {
|
|
29
|
+
align-self: center;
|
|
30
|
+
margin-left: $sph--small;
|
|
31
|
+
margin-right: -0.15rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -171,14 +171,14 @@ $list-status-icon-nudge: 0.3rem; // 0.3rem seems to be a magic number that posit
|
|
|
171
171
|
|
|
172
172
|
.p-inline-list__item {
|
|
173
173
|
@include vf-inline-list-item;
|
|
174
|
-
|
|
174
|
+
margin-right: $sph--small;
|
|
175
175
|
position: relative;
|
|
176
176
|
|
|
177
177
|
&::after {
|
|
178
178
|
content: '\2022';
|
|
179
179
|
line-height: map-get($line-heights, default-text);
|
|
180
|
-
position:
|
|
181
|
-
right:
|
|
180
|
+
position: relative;
|
|
181
|
+
right: -0.25rem;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&:last-of-type,
|
package/scss/_patterns_tabs.scss
CHANGED
|
@@ -42,9 +42,12 @@
|
|
|
42
42
|
);
|
|
43
43
|
@include vf-highlight-bar(transparent, bottom, false);
|
|
44
44
|
|
|
45
|
+
align-items: center;
|
|
45
46
|
border: none;
|
|
46
47
|
color: $color-dark;
|
|
47
|
-
display:
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: $sph--small;
|
|
50
|
+
height: 100%;
|
|
48
51
|
line-height: map-get($line-heights, default-text);
|
|
49
52
|
margin-bottom: 0;
|
|
50
53
|
padding: $spv--medium $sph--large;
|
package/scss/_vanilla.scss
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@import 'patterns_buttons';
|
|
9
9
|
@import 'patterns_card';
|
|
10
10
|
@import 'patterns_chip';
|
|
11
|
+
@import 'patterns_badge';
|
|
11
12
|
@import 'patterns_code-snippet';
|
|
12
13
|
@import 'patterns_contextual-menu';
|
|
13
14
|
@import 'patterns_divider';
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
@include vf-p-buttons;
|
|
89
90
|
@include vf-p-card;
|
|
90
91
|
@include vf-p-chip;
|
|
92
|
+
@include vf-p-badge;
|
|
91
93
|
@include vf-p-code-snippet;
|
|
92
94
|
@include vf-p-contextual-menu;
|
|
93
95
|
@include vf-p-divider;
|