vanilla-framework 3.4.0 → 3.6.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
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.1",
|
|
49
49
|
"files": [
|
|
50
50
|
"_index.scss",
|
|
51
51
|
"/scss",
|
|
@@ -54,12 +54,12 @@
|
|
|
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
|
-
"postcss": "8.4.
|
|
59
|
+
"postcss": "8.4.14",
|
|
60
60
|
"postcss-cli": "9.1.0",
|
|
61
|
-
"postcss-scss": "4.0.
|
|
62
|
-
"sass": "1.
|
|
61
|
+
"postcss-scss": "4.0.4",
|
|
62
|
+
"sass": "1.53.0",
|
|
63
63
|
"yaml": "1.10.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"get-site-urls": "1.1.7",
|
|
68
68
|
"markdown-spellcheck": "1.3.1",
|
|
69
69
|
"parker": "0.0.10",
|
|
70
|
-
"prettier": "2.
|
|
71
|
-
"stylelint": "14.
|
|
70
|
+
"prettier": "2.7.1",
|
|
71
|
+
"stylelint": "14.9.1",
|
|
72
72
|
"stylelint-config-prettier": "9.0.3",
|
|
73
73
|
"stylelint-config-recommended-scss": "5.0.2",
|
|
74
74
|
"stylelint-order": "5.0.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,
|
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
.p-side-navigation__toggle--in-drawer:
|
|
42
42
|
Side navigation toggle button in drawer (to close navigation on small screens).
|
|
43
43
|
|
|
44
|
+
Items list heading:
|
|
45
|
+
.p-side-navigation__heading:
|
|
46
|
+
Heading for side navigation items group (text only).
|
|
47
|
+
.p-side-navigation__heading--linked:
|
|
48
|
+
Heading for side navigation items group that contains a link (`.p-side-navigation__link`).
|
|
49
|
+
|
|
44
50
|
Items list:
|
|
45
51
|
.p-side-navigation__list:
|
|
46
52
|
Group of side navigation items (usually a `<ul>` element).
|
|
@@ -263,10 +269,6 @@
|
|
|
263
269
|
@extend %side-navigation__list;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
|
-
.p-side-navigation__item--title {
|
|
267
|
-
font-weight: $font-weight-bold;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
272
|
%side-navigation__text {
|
|
271
273
|
@include vf-side-navigation-spacing-left;
|
|
272
274
|
|
|
@@ -274,6 +276,22 @@
|
|
|
274
276
|
padding-bottom: $spv--x-small;
|
|
275
277
|
padding-right: $sph--large;
|
|
276
278
|
padding-top: $spv--x-small;
|
|
279
|
+
|
|
280
|
+
.p-side-navigation__item--title > & {
|
|
281
|
+
font-weight: $font-weight-bold;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
%side-navigation__heading {
|
|
286
|
+
@extend %side-navigation__text;
|
|
287
|
+
|
|
288
|
+
// reset heading styles
|
|
289
|
+
@extend %common-default-text-properties;
|
|
290
|
+
@extend %bold;
|
|
291
|
+
|
|
292
|
+
display: block;
|
|
293
|
+
font-size: map-get($base-font-sizes, base);
|
|
294
|
+
margin: 0;
|
|
277
295
|
}
|
|
278
296
|
|
|
279
297
|
%side-navigation__link {
|
|
@@ -300,6 +318,7 @@
|
|
|
300
318
|
@extend %side-navigation__link;
|
|
301
319
|
}
|
|
302
320
|
|
|
321
|
+
.p-side-navigation__heading,
|
|
303
322
|
.p-side-navigation__text,
|
|
304
323
|
.p-side-navigation__link {
|
|
305
324
|
@extend %side-navigation__text;
|
|
@@ -311,6 +330,7 @@
|
|
|
311
330
|
}
|
|
312
331
|
|
|
313
332
|
// nested 2nd level of navigation
|
|
333
|
+
.p-side-navigation__item--title .p-side-navigation__item &,
|
|
314
334
|
.p-side-navigation__item .p-side-navigation__item & {
|
|
315
335
|
@include vf-side-navigation-spacing-left($multiplier: 2);
|
|
316
336
|
|
|
@@ -321,6 +341,7 @@
|
|
|
321
341
|
}
|
|
322
342
|
|
|
323
343
|
// nested 3rd level of navigation
|
|
344
|
+
.p-side-navigation__item--title .p-side-navigation__item .p-side-navigation__item &,
|
|
324
345
|
.p-side-navigation__item .p-side-navigation__item .p-side-navigation__item & {
|
|
325
346
|
@include vf-side-navigation-spacing-left($multiplier: 3);
|
|
326
347
|
|
|
@@ -345,6 +366,15 @@
|
|
|
345
366
|
padding-left: $spv--small;
|
|
346
367
|
}
|
|
347
368
|
|
|
369
|
+
.p-side-navigation__heading,
|
|
370
|
+
.p-side-navigation__heading--linked {
|
|
371
|
+
@extend %side-navigation__heading;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.p-side-navigation__heading--linked {
|
|
375
|
+
padding: 0; // padding will come from the link in heading
|
|
376
|
+
}
|
|
377
|
+
|
|
348
378
|
// Styles for markup in raw HTML docs variant
|
|
349
379
|
.p-side-navigation--raw-html {
|
|
350
380
|
// stylelint-disable selector-max-type -- we support raw HTML markup for discourse-generated side nav
|
|
@@ -353,14 +383,7 @@
|
|
|
353
383
|
h4,
|
|
354
384
|
h5,
|
|
355
385
|
h6 {
|
|
356
|
-
@extend %side-
|
|
357
|
-
|
|
358
|
-
// reset heading styles
|
|
359
|
-
@extend %common-default-text-properties;
|
|
360
|
-
@extend %bold;
|
|
361
|
-
|
|
362
|
-
font-size: map-get($base-font-sizes, base);
|
|
363
|
-
margin: 0;
|
|
386
|
+
@extend %side-navigation__heading;
|
|
364
387
|
}
|
|
365
388
|
|
|
366
389
|
ul {
|
|
@@ -558,6 +581,8 @@
|
|
|
558
581
|
}
|
|
559
582
|
}
|
|
560
583
|
|
|
584
|
+
.p-side-navigation__heading,
|
|
585
|
+
.p-side-navigation__heading--linked .p-side-navigation__link,
|
|
561
586
|
.p-side-navigation__item--title,
|
|
562
587
|
.p-side-navigation__item--title .p-side-navigation__link {
|
|
563
588
|
color: $color-sidenav-text-active;
|
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;
|