@swisspost/design-system-styles 5.4.1 → 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/accordion.scss +1 -1
- package/components/alert.scss +2 -7
- package/components/badge.scss +1 -1
- package/components/breadcrumb.scss +1 -1
- package/components/button-group.scss +27 -51
- package/components/button.scss +1 -2
- package/components/card.scss +5 -5
- package/components/carousel.scss +1 -1
- package/components/close.scss +1 -1
- package/components/datepicker.scss +2 -1
- package/components/floating-label.scss +1 -5
- package/components/form-check.scss +1 -1
- package/components/form-range.scss +1 -1
- package/components/form-select.scss +1 -1
- package/components/grid.scss +1 -1
- package/components/intranet-header/_logo.scss +1 -1
- package/components/intranet-header/_nav-overflow.scss +1 -1
- package/components/intranet-header/_scaffolding.scss +1 -2
- package/components/intranet-header/_searchbox.scss +1 -1
- package/components/intranet-header/_sidebar.scss +1 -1
- package/components/intranet-header/_top-navigation.scss +3 -2
- package/components/list-group.scss +1 -1
- package/components/modal.scss +1 -1
- package/components/offcanvas.scss +1 -1
- package/components/popover.scss +1 -1
- package/components/product-card.scss +0 -1
- package/components/progress.scss +1 -2
- package/components/sizing.scss +2 -2
- package/components/spinner.scss +1 -1
- package/components/stepper.scss +12 -6
- package/components/subnavigation.scss +1 -1
- package/components/tabs.scss +1 -1
- package/components/toast.scss +1 -1
- package/components/topic-teaser.scss +1 -1
- package/components/type.scss +21 -49
- package/components/utilities.scss +5 -5
- package/core.scss +1 -1
- package/functions/_sizing.scss +1 -0
- package/index.css +8 -34
- package/intranet.css +8 -34
- package/layouts/portal/_grid.scss +1 -1
- package/layouts/portal/_type.scss +1 -1
- package/mixins/_animation.scss +1 -1
- package/mixins/_button.scss +0 -1
- package/mixins/_forms.scss +2 -1
- package/mixins/_size.scss +1 -1
- package/mixins/_type.scss +4 -15
- package/package.json +19 -20
- package/placeholders/_notifications.scss +1 -1
- package/placeholders/_text.scss +1 -1
- package/placeholders/badge.scss +1 -3
- package/schematics/migrations/_example-dom-migration/index.js +11 -7
- package/schematics/migrations/_example-dom-migration/index.js.map +1 -1
- package/schematics/migrations/bootstrap/badge/index.js +2 -2
- package/schematics/migrations/bootstrap/badge/index.js.map +1 -1
- package/schematics/migrations/bootstrap/blockquote/index.js +2 -2
- package/schematics/migrations/bootstrap/blockquote/index.js.map +1 -1
- package/schematics/migrations/bootstrap/button/index.js +2 -2
- package/schematics/migrations/bootstrap/button/index.js.map +1 -1
- package/schematics/migrations/bootstrap/button-close/index.js +2 -2
- package/schematics/migrations/bootstrap/button-close/index.js.map +1 -1
- package/schematics/migrations/bootstrap/form-checkbox/index.js +2 -2
- package/schematics/migrations/bootstrap/form-checkbox/index.js.map +1 -1
- package/schematics/migrations/bootstrap/form-control/index.js +2 -2
- package/schematics/migrations/bootstrap/form-control/index.js.map +1 -1
- package/schematics/migrations/bootstrap/form-radio/index.js +2 -2
- package/schematics/migrations/bootstrap/form-radio/index.js.map +1 -1
- package/schematics/migrations/bootstrap/form-select/index.js +2 -2
- package/schematics/migrations/bootstrap/form-select/index.js.map +1 -1
- package/schematics/migrations/bootstrap/form-switch/index.js +2 -2
- package/schematics/migrations/bootstrap/form-switch/index.js.map +1 -1
- package/schematics/migrations/bootstrap/forms/index.js +2 -2
- package/schematics/migrations/bootstrap/forms/index.js.map +1 -1
- package/schematics/migrations/bootstrap/textarea/index.js +2 -2
- package/schematics/migrations/bootstrap/textarea/index.js.map +1 -1
- package/schematics/migrations/general/classes/bg-opacity.js +2 -2
- package/schematics/migrations/general/classes/bg-opacity.js.map +1 -1
- package/schematics/migrations/general/classes/rtl.js +5 -3
- package/schematics/migrations/general/classes/rtl.js.map +1 -1
- package/schematics/migrations/general/classes/secondary.js +2 -2
- package/schematics/migrations/general/classes/secondary.js.map +1 -1
- package/schematics/migrations/general/classes/sr-only.js +2 -2
- package/schematics/migrations/general/classes/sr-only.js.map +1 -1
- package/schematics/migrations/general/classes/text-auto.js +2 -2
- package/schematics/migrations/general/classes/text-auto.js.map +1 -1
- package/schematics/migrations/ngbootstrap/buttons/index.js +67 -29
- package/schematics/migrations/ngbootstrap/buttons/index.js.map +1 -1
- package/schematics/migrations/post/custom-select/index.js +2 -2
- package/schematics/migrations/post/custom-select/index.js.map +1 -1
- package/schematics/migrations/post/stepper/index.d.ts +2 -0
- package/schematics/migrations/post/stepper/index.js +61 -0
- package/schematics/migrations/post/stepper/index.js.map +1 -0
- package/schematics/migrations/post/subnavigation/index.js +2 -2
- package/schematics/migrations/post/subnavigation/index.js.map +1 -1
- package/schematics/migrations/post/topic-teaser/index.js +2 -2
- package/schematics/migrations/post/topic-teaser/index.js.map +1 -1
- package/schematics/migrations.json +6 -2
- package/schematics/utils/constants.d.ts +2 -0
- package/schematics/utils/constants.js +67 -3
- package/schematics/utils/constants.js.map +1 -1
- package/schematics/utils/{dom/update.d.ts → dom-migration/dom-update.d.ts} +1 -1
- package/schematics/utils/{dom/update.js → dom-migration/dom-update.js} +1 -1
- package/schematics/utils/dom-migration/dom-update.js.map +1 -0
- package/schematics/utils/dom-migration/get-dom-migration-rule.d.ts +3 -0
- package/schematics/utils/{dom/migration-rule.js → dom-migration/get-dom-migration-rule.js} +27 -18
- package/schematics/utils/dom-migration/get-dom-migration-rule.js.map +1 -0
- package/schematics/utils/dom-migration/index.d.ts +2 -0
- package/schematics/utils/dom-migration/index.js +22 -0
- package/schematics/utils/dom-migration/index.js.map +1 -0
- package/themes/bootstrap/_accordion.scss +1 -1
- package/themes/bootstrap/_alert.scss +1 -1
- package/themes/bootstrap/_badge.scss +1 -1
- package/themes/bootstrap/_breadcrumbs.scss +1 -1
- package/themes/bootstrap/_button-group.scss +1 -1
- package/themes/bootstrap/_buttons.scss +1 -1
- package/themes/bootstrap/_card.scss +1 -1
- package/themes/bootstrap/_carousel.scss +1 -1
- package/themes/bootstrap/_close.scss +1 -1
- package/themes/bootstrap/_containers.scss +1 -1
- package/themes/bootstrap/{_overrides.scss → _core.scss} +7 -1
- package/themes/bootstrap/_dropdown.scss +1 -1
- package/themes/bootstrap/_grid.scss +1 -1
- package/themes/bootstrap/_images.scss +1 -1
- package/themes/bootstrap/_list-group.scss +1 -1
- package/themes/bootstrap/_modal.scss +1 -1
- package/themes/bootstrap/_nav.scss +1 -1
- package/themes/bootstrap/_navbar.scss +1 -1
- package/themes/bootstrap/_offcanvas.scss +1 -1
- package/themes/bootstrap/_overrides-color.scss +1 -1
- package/themes/bootstrap/_pagination.scss +1 -1
- package/themes/bootstrap/_popover.scss +1 -1
- package/themes/bootstrap/_progress.scss +1 -1
- package/themes/bootstrap/_reboot.scss +1 -1
- package/themes/bootstrap/_root.scss +1 -1
- package/themes/bootstrap/_spinners.scss +1 -1
- package/themes/bootstrap/_tables.scss +1 -1
- package/themes/bootstrap/_toasts.scss +1 -1
- package/themes/bootstrap/_tooltip.scss +1 -1
- package/themes/bootstrap/_transitions.scss +1 -1
- package/themes/bootstrap/_type.scss +1 -1
- package/themes/bootstrap/_utilities.scss +1 -1
- package/themes/bootstrap/forms/_floating-labels.scss +1 -1
- package/themes/bootstrap/forms/_form-check.scss +1 -1
- package/themes/bootstrap/forms/_form-control.scss +1 -1
- package/themes/bootstrap/forms/_form-range.scss +1 -1
- package/themes/bootstrap/forms/_form-select.scss +1 -1
- package/themes/bootstrap/forms/_form-text.scss +1 -1
- package/themes/bootstrap/forms/_input-group.scss +1 -1
- package/themes/bootstrap/forms/_labels.scss +1 -1
- package/themes/bootstrap/forms/_validation.scss +1 -1
- package/variables/_color.scss +2 -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 +2 -2
- package/variables/components/_button.scss +11 -9
- 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/variables/components/_tables.scss +0 -1
- package/schematics/utils/css/css-classes-update.d.ts +0 -14
- package/schematics/utils/css/css-classes-update.js +0 -27
- package/schematics/utils/css/css-classes-update.js.map +0 -1
- package/schematics/utils/css/css-migration-rule.d.ts +0 -4
- package/schematics/utils/css/css-migration-rule.js +0 -112
- package/schematics/utils/css/css-migration-rule.js.map +0 -1
- package/schematics/utils/css/css-migration.d.ts +0 -13
- package/schematics/utils/css/css-migration.js +0 -36
- package/schematics/utils/css/css-migration.js.map +0 -1
- package/schematics/utils/css/html_css_classes_visitor.d.ts +0 -23
- package/schematics/utils/css/html_css_classes_visitor.js +0 -76
- package/schematics/utils/css/html_css_classes_visitor.js.map +0 -1
- package/schematics/utils/dom/migration-rule.d.ts +0 -3
- package/schematics/utils/dom/migration-rule.js.map +0 -1
- package/schematics/utils/dom/migration.d.ts +0 -7
- package/schematics/utils/dom/migration.js +0 -11
- package/schematics/utils/dom/migration.js.map +0 -1
- package/schematics/utils/dom/update.js.map +0 -1
- package/schematics/utils/regex.d.ts +0 -2
- package/schematics/utils/regex.js +0 -12
- package/schematics/utils/regex.js.map +0 -1
package/components/type.scss
CHANGED
|
@@ -4,71 +4,43 @@
|
|
|
4
4
|
@use 'sass:meta';
|
|
5
5
|
|
|
6
6
|
@use './../lic/bootstrap-license';
|
|
7
|
-
@use './../themes/bootstrap/
|
|
7
|
+
@use './../themes/bootstrap/core' as *;
|
|
8
8
|
@use './../themes/bootstrap/type' as bt;
|
|
9
9
|
|
|
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 {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
@use 'sass:list';
|
|
5
5
|
@use './../lic/bootstrap-license';
|
|
6
|
-
@use './../themes/bootstrap/
|
|
6
|
+
@use './../themes/bootstrap/core' as *;
|
|
7
7
|
@use './../themes/bootstrap/utilities' as bu; // TODO: Move Design System utilities to utilities folder.
|
|
8
8
|
@use './../mixins/utilities';
|
|
9
9
|
@use './../variables/color';
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.h-visuallyhidden-up-md {
|
|
33
|
-
@include
|
|
33
|
+
@include media-breakpoint-up(md) {
|
|
34
34
|
@include utilities.visuallyhidden;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.h-visuallyhidden-down-rg {
|
|
39
|
-
@include
|
|
39
|
+
@include media-breakpoint-down(rg) {
|
|
40
40
|
@include utilities.visuallyhidden;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.h-visuallyhidden-down-lg {
|
|
45
|
-
@include
|
|
45
|
+
@include media-breakpoint-down(lg) {
|
|
46
46
|
@include utilities.visuallyhidden;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.h-clearfix {
|
|
51
|
-
@include
|
|
51
|
+
@include clearfix;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
//-- Legacy --
|
package/core.scss
CHANGED