@ons/design-system 73.5.0 → 73.7.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/README.md +23 -0
- package/components/accordion/accordion.js +1 -0
- package/components/chart/_chart.scss +1 -3
- package/components/cookies-banner/_macro.njk +6 -2
- package/components/description-list/_description-list.scss +1 -1
- package/components/details/details.js +1 -0
- package/components/details/details.spec.js +3 -1
- package/components/hero/_hero.scss +2 -2
- package/components/icon/_macro.njk +159 -5
- package/components/list/_list.scss +0 -6
- package/components/skip-to-content/_macro.njk +4 -2
- package/components/summary/_summary.scss +2 -3
- package/components/table-of-contents/_macro.njk +1 -1
- package/components/table-of-contents/_macro.spec.js +17 -0
- package/css/main.css +1 -1
- package/js/chart.js +4 -0
- package/js/main.js +0 -4
- package/layout/_template.njk +5 -0
- package/package.json +12 -11
- package/scripts/chart.es5.js +5 -0
- package/scripts/chart.js +3 -0
- package/scripts/main.es5.js +3 -5
- package/scripts/main.js +2 -4
- package/scss/base/_global.scss +1 -1
- package/scss/utilities/_highlight.scss +1 -1
- package/scss/vars/_grid.scss +1 -1
- package/scss/vars/_typography.scss +18 -18
package/scss/base/_global.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
background-image: linear-gradient(var(--ons-color-highlight), var(--ons-color-highlight));
|
|
4
4
|
background-position: bottom;
|
|
5
5
|
background-repeat: no-repeat;
|
|
6
|
-
background-size: 100% calc(var(--ons-line-height,
|
|
6
|
+
background-size: 100% calc(var(--ons-line-height, 1.75rem) - 0.25rem);
|
|
7
7
|
box-decoration-break: clone; // Firefox
|
|
8
8
|
box-shadow: 0 4px 0 0 var(--ons-color-text-link-focus);
|
|
9
9
|
font-style: normal;
|
package/scss/vars/_grid.scss
CHANGED
|
@@ -12,63 +12,63 @@ $type-matrix: (
|
|
|
12
12
|
small: 32px,
|
|
13
13
|
large: 48px,
|
|
14
14
|
weight: $font-weight-bold,
|
|
15
|
-
line-height-mobile:
|
|
16
|
-
line-height-desktop:
|
|
15
|
+
line-height-mobile: 2.75rem,
|
|
16
|
+
line-height-desktop: 3.5rem,
|
|
17
17
|
),
|
|
18
18
|
ons-u-fs-2xl: (
|
|
19
19
|
small: 28px,
|
|
20
20
|
large: 36px,
|
|
21
21
|
weight: $font-weight-bold,
|
|
22
|
-
line-height-mobile:
|
|
23
|
-
line-height-desktop:
|
|
22
|
+
line-height-mobile: 2.5rem,
|
|
23
|
+
line-height-desktop: 3rem,
|
|
24
24
|
),
|
|
25
25
|
ons-u-fs-xl: (
|
|
26
26
|
small: 26px,
|
|
27
27
|
large: 30px,
|
|
28
28
|
weight: $font-weight-bold,
|
|
29
|
-
line-height-mobile:
|
|
30
|
-
line-height-desktop:
|
|
29
|
+
line-height-mobile: 2.25rem,
|
|
30
|
+
line-height-desktop: 2.5rem,
|
|
31
31
|
),
|
|
32
32
|
ons-u-fs-l: (
|
|
33
33
|
small: 24px,
|
|
34
34
|
large: 26px,
|
|
35
35
|
weight: $font-weight-bold,
|
|
36
|
-
line-height-mobile:
|
|
37
|
-
line-height-desktop:
|
|
36
|
+
line-height-mobile: 2rem,
|
|
37
|
+
line-height-desktop: 2.25rem,
|
|
38
38
|
),
|
|
39
39
|
ons-u-fs-m: (
|
|
40
40
|
small: 20px,
|
|
41
41
|
large: 22px,
|
|
42
42
|
weight: $font-weight-bold,
|
|
43
|
-
line-height-mobile:
|
|
44
|
-
line-height-desktop:
|
|
43
|
+
line-height-mobile: 1.75rem,
|
|
44
|
+
line-height-desktop: 2rem,
|
|
45
45
|
),
|
|
46
46
|
ons-u-fs-r--b: (
|
|
47
47
|
small: 18px,
|
|
48
48
|
large: 18px,
|
|
49
49
|
weight: $font-weight-bold,
|
|
50
|
-
line-height-mobile:
|
|
51
|
-
line-height-desktop:
|
|
50
|
+
line-height-mobile: 1.75rem,
|
|
51
|
+
line-height-desktop: 1.75rem,
|
|
52
52
|
),
|
|
53
53
|
ons-u-fs-r: (
|
|
54
54
|
small: 18px,
|
|
55
55
|
large: 18px,
|
|
56
56
|
weight: $font-weight-regular,
|
|
57
|
-
line-height-mobile:
|
|
58
|
-
line-height-desktop:
|
|
57
|
+
line-height-mobile: 1.75rem,
|
|
58
|
+
line-height-desktop: 1.75rem,
|
|
59
59
|
),
|
|
60
60
|
ons-u-fs-s--b: (
|
|
61
61
|
small: 14px,
|
|
62
62
|
large: 14px,
|
|
63
63
|
weight: $font-weight-bold,
|
|
64
|
-
line-height-mobile:
|
|
65
|
-
line-height-desktop:
|
|
64
|
+
line-height-mobile: 1.25rem,
|
|
65
|
+
line-height-desktop: 1.25rem,
|
|
66
66
|
),
|
|
67
67
|
ons-u-fs-s: (
|
|
68
68
|
small: 14px,
|
|
69
69
|
large: 14px,
|
|
70
70
|
weight: $font-weight-regular,
|
|
71
|
-
line-height-mobile:
|
|
72
|
-
line-height-desktop:
|
|
71
|
+
line-height-mobile: 1.25rem,
|
|
72
|
+
line-height-desktop: 1.25rem,
|
|
73
73
|
),
|
|
74
74
|
);
|