@swisspost/design-system-styles 6.0.0 → 6.1.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/basics.css +1 -1
- package/components/alert.scss +0 -2
- package/components/button.scss +0 -1
- package/components/datepicker.scss +2 -1
- package/components/floating-label.scss +1 -5
- package/components/intranet-header/_scaffolding.scss +0 -1
- package/components/intranet-header/_top-navigation.scss +2 -1
- package/components/progress.scss +0 -1
- package/components/sizing.scss +1 -1
- package/components/type.scss +20 -48
- package/functions/_sizing.scss +1 -0
- package/index.css +6 -6
- package/intranet.css +6 -6
- package/mixins/_button.scss +0 -1
- package/mixins/_forms.scss +2 -1
- package/mixins/_type.scss +2 -13
- package/package.json +11 -12
- package/placeholders/badge.scss +0 -2
- package/schematics/migrations/ngbootstrap/buttons/index.js +7 -0
- package/schematics/migrations/ngbootstrap/buttons/index.js.map +1 -1
- package/variables/_heading.scss +52 -0
- package/variables/_index.scss +1 -0
- package/variables/_type.scss +52 -15
- package/variables/components/_accordion.scss +1 -1
- package/variables/components/_alert.scss +1 -1
- package/variables/components/_button.scss +4 -4
- package/variables/components/_form-check.scss +1 -1
- package/variables/components/_form-switch.scss +1 -1
- package/variables/components/_forms.scss +5 -5
- package/variables/components/_modals.scss +1 -1
- package/variables/components/_nav.scss +1 -1
- package/variables/components/_navbar.scss +1 -1
package/components/alert.scss
CHANGED
package/components/button.scss
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
color: var(--post-contrast-color);
|
|
37
37
|
font-family: inherit;
|
|
38
38
|
font-weight: button.$btn-font-weight;
|
|
39
|
-
line-height: inherit;
|
|
40
39
|
text-decoration: none !important; // For <a> tags, !important for hover
|
|
41
40
|
white-space: nowrap; // Long content should never break in buttons
|
|
42
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@forward './../variables/options';
|
|
2
2
|
|
|
3
3
|
@use './../variables/color';
|
|
4
|
+
@use './../variables/type';
|
|
4
5
|
@use './../variables/components/datepicker';
|
|
5
6
|
@use './../variables/components/forms';
|
|
6
7
|
@use './../variables/commons';
|
|
@@ -73,7 +74,7 @@ span.ngb-dp-navigation-chevron {
|
|
|
73
74
|
color: rgba(var(--post-contrast-color-rgb), 0.6) !important;
|
|
74
75
|
font-size: 1rem;
|
|
75
76
|
font-style: normal !important;
|
|
76
|
-
line-height:
|
|
77
|
+
line-height: type.$line-height-copy !important;
|
|
77
78
|
width: 40px !important;
|
|
78
79
|
height: auto !important;
|
|
79
80
|
font-weight: normal;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
padding-inline: forms.$form-floating-padding-x;
|
|
22
22
|
padding-block: calc(
|
|
23
23
|
#{forms.$input-border-width} + #{forms.$form-floating-label-height * 0.5} - #{forms.$form-floating-label-font-size *
|
|
24
|
-
type.$line-height-
|
|
24
|
+
type.$line-height-copy * 0.5}
|
|
25
25
|
);
|
|
26
26
|
height: forms.$form-floating-label-height;
|
|
27
27
|
border: 0;
|
|
@@ -99,10 +99,6 @@
|
|
|
99
99
|
padding-bottom: 0;
|
|
100
100
|
height: auto;
|
|
101
101
|
|
|
102
|
-
option {
|
|
103
|
-
height: 1em * forms.$form-floating-line-height;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
102
|
~ label {
|
|
107
103
|
padding-top: forms.$input-padding-y-lg * forms.$form-floating-label-scale;
|
|
108
104
|
padding-bottom: 0;
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
.top-navigation {
|
|
14
14
|
button.nav-link {
|
|
15
15
|
@include button-mixins.reset-button();
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
16
18
|
padding: nav.$nav-link-padding-y navbar.$navbar-nav-link-padding-x;
|
|
17
|
-
line-height: var(--post-body-line-height);
|
|
18
19
|
|
|
19
20
|
@include media-breakpoint-down(md) {
|
|
20
21
|
padding: 1rem 3rem 1rem 0;
|
package/components/progress.scss
CHANGED
package/components/sizing.scss
CHANGED
package/components/type.scss
CHANGED
|
@@ -10,65 +10,37 @@
|
|
|
10
10
|
@use './../variables/color';
|
|
11
11
|
@use './../variables/commons';
|
|
12
12
|
@use './../variables/type';
|
|
13
|
+
@use './../variables/heading';
|
|
13
14
|
@use './../variables/spacing';
|
|
14
15
|
@use './../variables/components/paragraph';
|
|
15
16
|
@use './../layouts/portal/type' as portal;
|
|
16
17
|
@use './../placeholders/text';
|
|
17
18
|
@use './../mixins/type' as type-mx;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.
|
|
23
|
-
|
|
24
|
-
.h3,
|
|
25
|
-
h4,
|
|
26
|
-
.h4,
|
|
27
|
-
h5,
|
|
28
|
-
.h5,
|
|
29
|
-
h6,
|
|
30
|
-
.h6 {
|
|
31
|
-
font-weight: type.$font-weight-bold;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
h6,
|
|
35
|
-
.h6,
|
|
36
|
-
.font-curve-tiny {
|
|
37
|
-
@include type-mx.font-curve('tiny');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.font-curve-small {
|
|
41
|
-
@include type-mx.font-curve('small');
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.font-curve-regular {
|
|
45
|
-
@include type-mx.font-curve('regular');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
h5,
|
|
49
|
-
.h5,
|
|
50
|
-
.font-curve-bigger-regular {
|
|
51
|
-
@include type-mx.font-curve('bigger-regular');
|
|
20
|
+
// Deprecated
|
|
21
|
+
@each $key, $curve in type.$font-curves {
|
|
22
|
+
.font-curve-#{$key} {
|
|
23
|
+
@include type-mx.font-curve($key);
|
|
24
|
+
}
|
|
52
25
|
}
|
|
53
26
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.font-curve-
|
|
59
|
-
|
|
27
|
+
// Generate heading sizes using the sizes map and the font-curve mixin
|
|
28
|
+
@each $heading in ('h1', 'h2', 'h3', 'h4', 'h5', 'h6') {
|
|
29
|
+
#{$heading},
|
|
30
|
+
.#{$heading} {
|
|
31
|
+
@include type-mx.font-curve('heading-sizes-#{$heading}', heading.$heading-sizes);
|
|
32
|
+
}
|
|
60
33
|
}
|
|
61
34
|
|
|
62
|
-
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
@include type-mx.font-curve('large');
|
|
66
|
-
}
|
|
35
|
+
@each $key, $font-size in type.$font-size-map {
|
|
36
|
+
.font-size-#{$key} {
|
|
37
|
+
font-size: $font-size;
|
|
67
38
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
39
|
+
// Font sizes bigger than 24px can have a reduced line height
|
|
40
|
+
@if ($key >= 24) {
|
|
41
|
+
line-height: type.$line-height-heading;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
72
44
|
}
|
|
73
45
|
|
|
74
46
|
.blockquote {
|