vanilla-framework 3.4.0 → 3.5.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.5.0",
|
|
49
49
|
"files": [
|
|
50
50
|
"_index.scss",
|
|
51
51
|
"/scss",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@canonical/cookie-policy": "3.4.0",
|
|
57
57
|
"@canonical/latest-news": "1.3.0",
|
|
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.52.2",
|
|
63
63
|
"yaml": "1.10.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"markdown-spellcheck": "1.3.1",
|
|
69
69
|
"parker": "0.0.10",
|
|
70
70
|
"prettier": "2.6.2",
|
|
71
|
-
"stylelint": "14.8.
|
|
71
|
+
"stylelint": "14.8.5",
|
|
72
72
|
"stylelint-config-prettier": "9.0.3",
|
|
73
73
|
"stylelint-config-recommended-scss": "5.0.2",
|
|
74
74
|
"stylelint-order": "5.0.0",
|
|
@@ -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).
|
|
@@ -276,6 +282,18 @@
|
|
|
276
282
|
padding-top: $spv--x-small;
|
|
277
283
|
}
|
|
278
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;
|
|
295
|
+
}
|
|
296
|
+
|
|
279
297
|
%side-navigation__link {
|
|
280
298
|
@include vf-focus;
|
|
281
299
|
|
|
@@ -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;
|
|
@@ -345,6 +364,15 @@
|
|
|
345
364
|
padding-left: $spv--small;
|
|
346
365
|
}
|
|
347
366
|
|
|
367
|
+
.p-side-navigation__heading,
|
|
368
|
+
.p-side-navigation__heading--linked {
|
|
369
|
+
@extend %side-navigation__heading;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.p-side-navigation__heading--linked {
|
|
373
|
+
padding: 0; // padding will come from the link in heading
|
|
374
|
+
}
|
|
375
|
+
|
|
348
376
|
// Styles for markup in raw HTML docs variant
|
|
349
377
|
.p-side-navigation--raw-html {
|
|
350
378
|
// stylelint-disable selector-max-type -- we support raw HTML markup for discourse-generated side nav
|
|
@@ -353,14 +381,7 @@
|
|
|
353
381
|
h4,
|
|
354
382
|
h5,
|
|
355
383
|
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;
|
|
384
|
+
@extend %side-navigation__heading;
|
|
364
385
|
}
|
|
365
386
|
|
|
366
387
|
ul {
|
|
@@ -558,6 +579,8 @@
|
|
|
558
579
|
}
|
|
559
580
|
}
|
|
560
581
|
|
|
582
|
+
.p-side-navigation__heading,
|
|
583
|
+
.p-side-navigation__heading--linked .p-side-navigation__link,
|
|
561
584
|
.p-side-navigation__item--title,
|
|
562
585
|
.p-side-navigation__item--title .p-side-navigation__link {
|
|
563
586
|
color: $color-sidenav-text-active;
|