@swisspost/design-system-styles 9.0.0-next.2 → 9.0.0-next.21
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/_svg-icon-map.scss +85 -23
- package/basics.css +1 -1
- package/basics.scss +2 -6
- package/cargo-external.css +7 -0
- package/cargo-external.scss +10 -0
- package/cargo-internal.css +7 -0
- package/cargo-internal.scss +10 -0
- package/cargo-tokens-external.css +1 -0
- package/cargo-tokens-external.scss +8 -0
- package/cargo-tokens-internal.css +1 -0
- package/cargo-tokens-internal.scss +8 -0
- package/components/_form-check.scss +166 -0
- package/components/_index.scss +21 -13
- package/components/appstore-badge.css +1 -0
- package/components/appstore-badge.scss +18 -0
- package/components/avatar.css +1 -0
- package/components/avatar.scss +41 -0
- package/components/badge.css +1 -1
- package/components/badge.scss +8 -2
- package/components/banner.css +1 -0
- package/components/banner.scss +105 -0
- package/components/blockquote.css +1 -0
- package/components/blockquote.scss +46 -0
- package/components/breadcrumb.css +1 -1
- package/components/breadcrumb.scss +4 -24
- package/components/breakpoints.css +1 -0
- package/components/breakpoints.scss +17 -0
- package/components/button-group.css +1 -1
- package/components/button-group.scss +7 -6
- package/components/button.css +1 -1
- package/components/button.scss +41 -228
- package/components/card-control.css +1 -1
- package/components/card-control.scss +33 -24
- package/components/card.css +1 -1
- package/components/card.scss +72 -68
- package/components/checkbox.css +1 -0
- package/components/checkbox.scss +127 -0
- package/components/chip.css +1 -1
- package/components/chip.scss +9 -8
- package/components/close.css +1 -1
- package/components/close.scss +0 -2
- package/components/datatable.css +1 -3
- package/components/datatable.scss +22 -17
- package/components/datepicker.css +1 -1
- package/components/datepicker.scss +6 -22
- package/components/dialog.css +1 -1
- package/components/dialog.scss +26 -38
- package/components/dropdown.css +1 -1
- package/components/dropdown.scss +9 -6
- package/components/fonts.css +1 -1
- package/components/fonts.scss +7 -45
- package/components/form-footer.css +1 -0
- package/components/form-footer.scss +18 -0
- package/components/form-hint.css +1 -0
- package/components/form-hint.scss +15 -0
- package/components/form-input.css +1 -0
- package/components/form-input.scss +301 -0
- package/components/form-range.css +1 -1
- package/components/form-range.scss +9 -9
- package/components/form-search-input.css +1 -0
- package/components/form-search-input.scss +97 -0
- package/components/form-select.css +1 -1
- package/components/form-select.scss +266 -55
- package/components/form-textarea.css +1 -1
- package/components/form-textarea.scss +172 -9
- package/components/globals/_index.scss +1 -0
- package/components/globals/post-footer.css +1 -0
- package/components/globals/post-footer.scss +113 -0
- package/components/header/_mixins.scss +48 -0
- package/components/header/index.css +1 -0
- package/components/header/index.scss +131 -0
- package/components/icon-button.css +1 -0
- package/components/icon-button.scss +19 -0
- package/components/icon-close-button.css +1 -0
- package/components/icon-close-button.scss +29 -0
- package/components/intranet-header/_icon.scss +1 -1
- package/components/intranet-header/_index.scss +0 -2
- package/components/intranet-header/_language-chooser.scss +3 -2
- package/components/intranet-header/_nav-overflow.scss +2 -2
- package/components/intranet-header/_scaffolding.scss +1 -1
- package/components/intranet-header/_searchbox.scss +1 -1
- package/components/intranet-header/_sidebar.scss +11 -11
- package/components/intranet-header/_top-navigation.scss +1 -1
- package/components/list-check.css +1 -0
- package/components/list-check.scss +79 -0
- package/components/list-group.css +1 -1
- package/components/list-group.scss +72 -127
- package/components/modal.css +2 -2
- package/components/modal.scss +2 -4
- package/components/offcanvas.css +1 -1
- package/components/offcanvas.scss +0 -2
- package/components/pagination.css +1 -1
- package/components/pagination.scss +10 -9
- package/components/popover.css +1 -1
- package/components/popover.scss +0 -2
- package/components/product-card.css +1 -1
- package/components/product-card.scss +11 -5
- package/components/progress.scss +0 -2
- package/components/radio-button.css +1 -0
- package/components/radio-button.scss +125 -0
- package/components/segmented-button.css +3 -0
- package/components/segmented-button.scss +207 -0
- package/components/skiplinks.css +1 -0
- package/components/skiplinks.scss +20 -0
- package/components/spinner.scss +0 -1
- package/components/stepper.css +1 -1
- package/components/stepper.scss +40 -33
- package/components/subnavigation.css +1 -1
- package/components/subnavigation.scss +17 -14
- package/components/switch.css +1 -0
- package/components/switch.scss +212 -0
- package/components/tables.css +1 -1
- package/components/tables.scss +0 -1
- package/components/tabs/_tab-title.scss +16 -55
- package/components/tabs/_tabs-wrapper.scss +3 -13
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.scss +0 -2
- package/components/tag.css +1 -1
- package/components/tag.scss +1 -2
- package/components/teaser.css +1 -0
- package/components/teaser.scss +83 -0
- package/components/text-highlight.css +1 -1
- package/components/timepicker.css +1 -1
- package/components/timepicker.scss +13 -16
- package/components/toast.css +1 -1
- package/components/toast.scss +19 -16
- package/components/tooltip.css +1 -1
- package/components/tooltip.scss +0 -2
- package/components/transitions.scss +0 -2
- package/components/validation.css +1 -0
- package/components/validation.scss +120 -0
- package/elements/_index.scss +7 -1
- package/elements/anchor.css +1 -0
- package/elements/anchor.scss +33 -0
- package/elements/body.css +1 -1
- package/elements/body.scss +5 -1
- package/elements/fieldset-legend.css +1 -1
- package/elements/fieldset-legend.scss +7 -3
- package/elements/heading.css +1 -1
- package/elements/heading.scss +10 -12
- package/elements/list-bullet.css +1 -0
- package/elements/list-bullet.scss +43 -0
- package/elements/list-description.css +1 -0
- package/elements/list-description.scss +5 -0
- package/elements/list-number.css +1 -0
- package/elements/list-number.scss +33 -0
- package/elements/paragraph.css +1 -0
- package/elements/paragraph.scss +17 -0
- package/elements/reset.css +1 -1
- package/elements/reset.scss +16 -7
- package/elements.css +1 -0
- package/elements.scss +1 -0
- package/fonts.css +1 -1
- package/functions/_breakpoint.scss +26 -0
- package/functions/_forms.scss +46 -3
- package/functions/_icons.scss +2 -14
- package/helpers/_index.scss +4 -0
- package/helpers/clearfix.css +1 -0
- package/helpers/clearfix.scss +5 -0
- package/helpers/focus-ring.css +1 -0
- package/helpers/focus-ring.scss +5 -0
- package/helpers/text-truncation.css +1 -0
- package/helpers/text-truncation.scss +5 -0
- package/helpers/visually-hidden.css +1 -0
- package/helpers/visually-hidden.scss +5 -0
- package/index.css +3 -3
- package/index.scss +2 -5
- package/intranet.css +3 -3
- package/intranet.scss +2 -2
- package/layout/_containers.scss +32 -0
- package/layout/_section.scss +133 -0
- package/layout/grid/_index.scss +11 -0
- package/layout/grid/_mixins.scss +104 -0
- package/layout/grid/_variables.scss +2 -0
- package/layout/index.css +1 -0
- package/layout/index.scss +3 -0
- package/mixins/_button.scss +19 -15
- package/mixins/_form-checks.scss +1 -1
- package/mixins/_forms.scss +42 -33
- package/mixins/_icon-button.scss +27 -0
- package/mixins/_icons.scss +22 -32
- package/mixins/_index.scss +3 -2
- package/mixins/_layout.scss +26 -0
- package/mixins/_list.scss +112 -0
- package/mixins/_media.scss +58 -2
- package/mixins/_notification.scss +59 -53
- package/mixins/_utilities.scss +46 -25
- package/package.json +16 -16
- package/palettes/_mixins.scss +74 -0
- package/palettes/_utilities.scss +3 -0
- package/palettes/_variables.scss +2 -0
- package/palettes/cargo-palettes.css +1 -0
- package/palettes/cargo-palettes.scss +3 -0
- package/palettes/post-palettes.css +1 -0
- package/palettes/post-palettes.scss +3 -0
- package/placeholders/_button.scss +3 -6
- package/placeholders/_close.scss +2 -5
- package/placeholders/_schemes.scss +10 -0
- package/post-external.css +3 -3
- package/post-external.scss +7 -1
- package/post-internal.css +3 -3
- package/post-internal.scss +7 -1
- package/post-tokens-external.css +1 -1
- package/post-tokens-external.scss +1 -1
- package/post-tokens-internal.css +1 -1
- package/post-tokens-internal.scss +1 -1
- package/themes/bootstrap/_core.scss +0 -2
- package/themes/bootstrap/_forms.scss +0 -4
- package/themes/bootstrap/_overrides-variables.scss +0 -6
- package/themes/bootstrap/_utilities.scss +45 -1
- package/tokens/_cargo-theme.scss +8 -0
- package/tokens/_helpers.scss +1 -0
- package/tokens/_palettes.scss +9 -0
- package/tokens/_schemes.scss +11 -0
- package/tokens/_utilities_formatted.scss +1 -0
- package/tokens/temp/_channel.scss +4 -3
- package/tokens/temp/_components.scss +594 -503
- package/tokens/temp/_core.scss +49 -37
- package/tokens/temp/_device.scss +210 -239
- package/tokens/temp/_elements.scss +11 -11
- package/tokens/temp/_helpers.scss +13 -0
- package/tokens/temp/_index.scss +6 -4
- package/tokens/temp/_palettes.scss +19 -0
- package/tokens/temp/_scheme.scss +334 -0
- package/tokens/temp/_theme.scss +28 -9
- package/tokens/temp/_utilities-formatted.scss +128 -0
- package/tokens/temp/_utilities.scss +34 -58
- package/tokens/temp/palettes/_cargo-dark.scss +19 -0
- package/tokens/temp/palettes/_cargo-light.scss +19 -0
- package/tokens/temp/palettes/_post-dark.scss +19 -0
- package/tokens/temp/palettes/_post-light.scss +19 -0
- package/utilities/_not-defined.scss +44 -0
- package/utilities/_variables.scss +304 -22
- package/utilities/index.css +1 -0
- package/utilities/{_index.scss → index.scss} +1 -2
- package/variables/_animation.scss +10 -6
- package/variables/_breakpoints.scss +9 -5
- package/variables/_color.scss +0 -61
- package/variables/_commons.scss +1 -0
- package/variables/_elevation.scss +16 -22
- package/variables/_grid.scss +2 -12
- package/variables/_icons.scss +19 -696
- package/variables/_index.scss +1 -1
- package/variables/_sizing.scss +17 -0
- package/variables/_spacing.scss +0 -152
- package/variables/_type.scss +17 -27
- package/variables/components/_accordion.scss +0 -47
- package/variables/components/_badge.scss +9 -5
- package/variables/components/_button.scss +61 -113
- package/variables/components/_card.scss +7 -4
- package/variables/components/_chip.scss +13 -7
- package/variables/components/_close.scss +14 -8
- package/variables/components/_code.scss +1 -1
- package/variables/components/_datatable.scss +12 -8
- package/variables/components/_dropdowns.scss +1 -1
- package/variables/components/_form-check.scss +9 -46
- package/variables/components/_forms.scss +8 -101
- package/variables/components/_index.scss +0 -5
- package/variables/components/_modal.scss +17 -12
- package/variables/components/_nav.scss +3 -3
- package/variables/components/_navbar.scss +7 -4
- package/variables/components/_notification.scss +48 -37
- package/variables/components/_pagination.scss +14 -6
- package/variables/components/_spinners.scss +7 -2
- package/variables/components/_stepper.scss +15 -10
- package/variables/components/_subnavigation.scss +11 -9
- package/variables/components/_tables.scss +11 -6
- package/variables/components/_tag.scss +10 -7
- package/components/accordion.css +0 -1
- package/components/accordion.scss +0 -100
- package/components/alert.css +0 -1
- package/components/alert.scss +0 -137
- package/components/carousel.css +0 -1
- package/components/carousel.scss +0 -178
- package/components/elevation.css +0 -1
- package/components/elevation.scss +0 -8
- package/components/floating-label.css +0 -1
- package/components/floating-label.scss +0 -353
- package/components/form-check.css +0 -1
- package/components/form-check.scss +0 -297
- package/components/form-validation.css +0 -1
- package/components/form-validation.scss +0 -148
- package/components/forms.css +0 -1
- package/components/forms.scss +0 -215
- package/components/grid.css +0 -1
- package/components/grid.scss +0 -170
- package/components/icons.css +0 -1
- package/components/icons.scss +0 -60
- package/components/sizing.css +0 -1
- package/components/sizing.scss +0 -85
- package/components/topic-teaser.css +0 -1
- package/components/topic-teaser.scss +0 -196
- package/layouts/portal/_grid.scss +0 -85
- package/layouts/portal/_index.scss +0 -2
- package/layouts/portal/_subnavigation.scss +0 -5
- package/layouts/portal/_variables.scss +0 -8
- package/mixins/_accordion.scss +0 -16
- package/mixins/_elevation.scss +0 -6
- package/mixins/_focus.scss +0 -9
- package/mixins/_form-validation.scss +0 -5
- package/mixins/_size.scss +0 -65
- package/placeholders/_modes.scss +0 -10
- package/themes/bootstrap/_carousel.scss +0 -2
- package/themes/bootstrap/_containers.scss +0 -2
- package/themes/bootstrap/_grid.scss +0 -2
- package/themes/bootstrap/_overrides-mixins.scss +0 -33
- package/themes/bootstrap/forms/_floating-labels.scss +0 -2
- package/themes/bootstrap/forms/_form-control.scss +0 -2
- package/themes/bootstrap/forms/_form-select.scss +0 -2
- package/themes/bootstrap/forms/_form-text.scss +0 -2
- package/tokens/_modes.scss +0 -11
- package/tokens/temp/_mode.scss +0 -299
- package/utilities/_functions.scss +0 -35
- package/utilities/temp/_legacy.scss +0 -95
- package/variables/_options.scss +0 -5
- package/variables/components/_carousel.scss +0 -27
- package/variables/components/_figures.scss +0 -6
- package/variables/components/_form-select.scss +0 -13
- package/variables/components/_form-validation.scss +0 -38
- package/variables/components/_list-group.scss +0 -29
- package/variables/components/_topic-teaser.scss +0 -32
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@forward './../variables/options';
|
|
2
|
-
|
|
3
1
|
@use './../themes/bootstrap/core' as *;
|
|
4
2
|
|
|
5
|
-
@use './../mixins/utilities';
|
|
6
|
-
@use './../functions/utilities' as
|
|
3
|
+
@use './../mixins/utilities' as utilities-mx;
|
|
4
|
+
@use './../functions/utilities' as utilities-fx;
|
|
7
5
|
@use './../variables/components/subnavigation';
|
|
8
6
|
@use './../variables/animation';
|
|
9
7
|
@use './../variables/spacing';
|
|
10
8
|
@use './../placeholders/text';
|
|
11
9
|
|
|
10
|
+
@use '../functions/tokens';
|
|
11
|
+
@use '../tokens/utilities';
|
|
12
|
+
|
|
13
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
14
|
+
|
|
12
15
|
$module-name: 'subnavigation';
|
|
13
16
|
|
|
14
17
|
.#{$module-name} {
|
|
@@ -16,11 +19,11 @@ $module-name: 'subnavigation';
|
|
|
16
19
|
background-color: subnavigation.$subnavigation-background-color;
|
|
17
20
|
|
|
18
21
|
&::after {
|
|
19
|
-
@include utilities.full-width-underscore(
|
|
22
|
+
@include utilities-mx.full-width-underscore(
|
|
20
23
|
subnavigation.$subnavigation-border-bottom-color,
|
|
21
24
|
subnavigation.$subnavigation-border-bottom-width
|
|
22
25
|
);
|
|
23
|
-
z-index:
|
|
26
|
+
z-index: utilities-fx.z-index(subnavigation, underscore-root);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
&-alternate {
|
|
@@ -69,11 +72,11 @@ $module-name: 'subnavigation';
|
|
|
69
72
|
padding: subnavigation.$subnavigation-link-padding-lg;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
|
-
@include utilities.high-contrast-mode() {
|
|
75
|
+
@include utilities-mx.high-contrast-mode() {
|
|
73
76
|
&:hover,
|
|
74
77
|
&:focus-visible {
|
|
75
|
-
outline:
|
|
76
|
-
outline-offset:
|
|
78
|
+
outline: tokens.get('utility-gap-2') solid Highlight;
|
|
79
|
+
outline-offset: calc(tokens.get('utility-gap-4') * -1);
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
|
|
@@ -90,11 +93,11 @@ $module-name: 'subnavigation';
|
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
&:not(.active)::after {
|
|
93
|
-
@include utilities.full-width-underscore(
|
|
96
|
+
@include utilities-mx.full-width-underscore(
|
|
94
97
|
#{subnavigation.$subnavigation-link-underscore-color-hover},
|
|
95
98
|
#{subnavigation.$subnavigation-link-underscore-height}
|
|
96
99
|
);
|
|
97
|
-
z-index:
|
|
100
|
+
z-index: utilities-fx.z-index(subnavigation, underscore-link);
|
|
98
101
|
right: animation.$transition-distance-medium;
|
|
99
102
|
left: animation.$transition-distance-medium;
|
|
100
103
|
opacity: 0;
|
|
@@ -116,16 +119,16 @@ $module-name: 'subnavigation';
|
|
|
116
119
|
font-weight: $font-weight-bold;
|
|
117
120
|
|
|
118
121
|
&::after {
|
|
119
|
-
@include utilities.full-width-underscore(
|
|
122
|
+
@include utilities-mx.full-width-underscore(
|
|
120
123
|
#{subnavigation.$subnavigation-link-underscore-color-active},
|
|
121
124
|
#{subnavigation.$subnavigation-link-underscore-height}
|
|
122
125
|
);
|
|
123
|
-
z-index:
|
|
126
|
+
z-index: utilities-fx.z-index(subnavigation, underscore-link);
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
|
|
128
|
-
@include utilities.high-contrast-mode() {
|
|
131
|
+
@include utilities-mx.high-contrast-mode() {
|
|
129
132
|
&::after {
|
|
130
133
|
background-color: CanvasText;
|
|
131
134
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-check{display:flex;flex-wrap:wrap;align-items:flex-start;width:fit-content;border-radius:var(--post-device-border-radius-focus)}.form-check-inline{display:inline-flex;vertical-align:top}fieldset>.form-check-inline:not(:last-of-type){margin-right:var(--post-core-dimension-24)}.form-check:has(>input:not(:only-child)){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.form-check:has(>input:not(:only-child)):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(>input:not(:only-child)):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.form-check:has(>input:not(:only-child)):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(>input:not(:only-child)):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.form-check:has(>input:not(:only-child))>input{outline:none !important}.form-check:has(input[type=checkbox]):not(.form-switch){padding-block:var(--post-device-spacing-padding-block-19)}fieldset>.form-check:has(input[type=checkbox]):not(.form-switch):not(:last-of-type){margin-bottom:var(--post-device-spacing-gap-4)}.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox]~label{padding-block:var(--post-device-spacing-padding-block-20);padding-inline-start:var(--post-device-spacing-gap-inline-12);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox]:not([disabled])~label{cursor:pointer}.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox]:not([disabled]):hover~label{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox]:not([disabled]):hover~label{color:Highlight}}.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox][disabled]~label{color:var(--post-scheme-color-interactive-primary-disabled-fg4)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(input[type=checkbox]):not(.form-switch)>input[type=checkbox][disabled]~label{color:GrayText}}.form-check.form-switch>input[type=checkbox]~label{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.form-check.form-switch>input[type=checkbox]:not([disabled])~label{cursor:pointer}.form-check.form-switch>input[type=checkbox]:not([disabled]):hover~label{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check.form-switch>input[type=checkbox]:not([disabled]):hover~label{color:Highlight}}.form-check.form-switch>input[type=checkbox][disabled]~label{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check.form-switch>input[type=checkbox][disabled]~label{color:GrayText}}.form-check:has(input[type=radio]){padding-block:var(--post-device-spacing-padding-block-19)}fieldset>.form-check:has(input[type=radio]):not(:last-of-type){margin-bottom:var(--post-device-spacing-gap-4)}.form-check:has(input[type=radio])>input[type=radio]~label{padding-block:var(--post-device-spacing-padding-block-20);padding-inline-start:var(--post-device-spacing-gap-inline-12);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.form-check:has(input[type=radio])>input[type=radio]:not([disabled])~label{cursor:pointer}.form-check:has(input[type=radio])>input[type=radio]:not([disabled]):hover~label{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(input[type=radio])>input[type=radio]:not([disabled]):hover~label{color:Highlight}}.form-check:has(input[type=radio])>input[type=radio][disabled]~label{color:var(--post-scheme-color-interactive-primary-disabled-fg4)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:has(input[type=radio])>input[type=radio][disabled]~label{color:GrayText}}.form-check>label{transition:color 250ms cubic-bezier(0.4, 0, 0.2, 1);flex:1}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check>label{transition:none}}.form-switch{display:flex}.form-switch .form-check-input{appearance:none;cursor:pointer;position:relative;display:flex;align-items:center;height:var(--post-core-dimension-24);width:var(--post-core-dimension-48);margin-block:var(--post-device-spacing-padding-block-18);border:var(--post-device-border-width-alternative1) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke);border-radius:var(--post-device-border-radius-round);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);padding:var(--post-device-spacing-padding-block-7) 0 var(--post-device-spacing-padding-block-7) var(--post-core-dimension-4);transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),border-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}.form-switch .form-check-input::before,.form-switch .form-check-input::after{position:absolute;display:block;cursor:pointer;content:"";width:var(--post-core-dimension-18);height:var(--post-core-dimension-18);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);border-radius:var(--post-device-border-radius-round);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1),background-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}.form-switch .form-check-input::before{mask-image:url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M7.51712 12.1332L4.30712 8.69325C4.02712 8.39325 4.03712 7.91325 4.34712 7.63325C4.64712 7.35325 5.12712 7.36325 5.40712 7.67325L7.31712 9.72325L10.7171 4.57325C10.9471 4.22325 11.4071 4.13325 11.7571 4.36325C12.1071 4.59325 12.1971 5.05325 11.9671 5.40325L7.51712 12.1332Z'/></svg>");background-color:rgba(0,0,0,0);z-index:1;mask-size:var(--post-core-dimension-18);mask-repeat:no-repeat;mask-position:center}.form-switch .form-check-input::after{border:var(--post-device-border-width-alternative1) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke3)}.form-switch .form-check-input:checked{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke4)}.form-switch .form-check-input:checked::before,.form-switch .form-check-input:checked::after{transform:translateX(calc(var(--post-core-dimension-48) - var(--post-core-dimension-18) * 1.5))}.form-switch .form-check-input:checked::before{background-color:var(--post-scheme-color-interactive-primary-selected-bg2)}.form-switch .form-check-input:checked::after{mask-image:none;background-color:var(--post-scheme-color-interactive-primary-selected-fg3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}.form-switch .form-check-input:checked+.form-check-label{color:var(--post-scheme-color-interactive-primary-selected-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input{transition:none;border:var(--post-device-border-width-alternative1) var(--post-core-border-style-solid) CanvasText}.form-switch .form-check-input:checked{background-color:SelectedItem !important}.form-switch .form-check-input::after{max-width:var(--post-core-dimension-18);border-color:Canvas;background-color:CanvasText}.form-switch .form-check-input:checked::after,.form-switch .form-check-input:checked::before{transform:translateX(calc(var(--post-core-dimension-48) - var(--post-core-dimension-18) - var(--post-core-dimension-4) * 2 - var(--post-device-border-width-alternative1) * 2))}}.form-switch .form-check-input[disabled]{background-color:var(--post-scheme-color-interactive-primary-disabled-bg5);border:var(--post-device-border-width-alternative1) var(--post-core-border-style-dash) var(--post-scheme-color-interactive-primary-disabled-stroke2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input[disabled]{border:var(--post-device-border-width-alternative1) var(--post-core-border-style-dash) GrayText}}.form-switch .form-check-input[disabled]+.form-check-label{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}.form-switch .form-check-input[disabled]::after{background-color:var(--post-scheme-color-interactive-primary-disabled-fg3);border:var(--post-device-border-width-alternative1) var(--post-core-border-style-dash) var(--post-scheme-color-interactive-primary-disabled-stroke2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .form-switch .form-check-input[disabled]::after{border:var(--post-device-border-width-alternative1) var(--post-core-border-style-dash) rgba(255,255,255,.8)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input[disabled]::after{border:var(--post-device-border-width-alternative1) var(--post-core-border-style-dash) GrayText}}.form-switch .form-check-input[disabled]:checked::before{background-color:var(--post-scheme-color-interactive-primary-disabled-fg1);mask-image:url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M7.51712 12.1332L4.30712 8.69325C4.02712 8.39325 4.03712 7.91325 4.34712 7.63325C4.64712 7.35325 5.12712 7.36325 5.40712 7.67325L7.31712 9.72325L10.7171 4.57325C10.9471 4.22325 11.4071 4.13325 11.7571 4.36325C12.1071 4.59325 12.1971 5.05325 11.9671 5.40325L7.51712 12.1332Z'/></svg>");mask-repeat:no-repeat;mask-position:center}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input[disabled]::after{border-color:Field}.form-switch .form-check-input[disabled]:checked{background-color:GrayText !important}}.form-switch .form-check-input.is-invalid{border-color:rgba(0,0,0,0)}.form-switch .form-check-input.is-invalid+label{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.form-switch:has(input:not([disabled]):hover) input{background-color:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.form-switch:has(input:not([disabled]):hover) input::after{background-color:var(--post-scheme-color-interactive-primary-hover-fg3);border-color:var(--post-scheme-color-interactive-primary-hover-stroke3)}.form-switch:has(input:not([disabled]):hover) input:checked::before{background-color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch:has(input:not([disabled]):hover) input{border-color:Highlight}.form-switch:has(input:not([disabled]):hover) input::after{background-color:CanvasText}}.form-switch .form-check-label{color:var(--post-scheme-color-interactive-primary-enabled-fg1);padding-block:var(--post-device-spacing-padding-block-9)}.form-switch .form-check-label.order-first{flex:0 auto;padding-inline-end:var(--post-device-spacing-gap-inline-3)}.form-switch .form-check-label:not(.order-first){padding-inline-start:var(--post-device-spacing-gap-inline-3)}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@use 'form-check';
|
|
2
|
+
@use '../variables/color';
|
|
3
|
+
@use '../variables/commons';
|
|
4
|
+
@use '../variables/type';
|
|
5
|
+
@use '../variables/spacing';
|
|
6
|
+
@use '../variables/animation';
|
|
7
|
+
@use '../mixins/color' as color-mx;
|
|
8
|
+
@use '../mixins/icons' as icons-mx;
|
|
9
|
+
@use '../mixins/utilities' as utility-mx;
|
|
10
|
+
@use '../tokens/components' as components;
|
|
11
|
+
@use '../functions/tokens' as tokens;
|
|
12
|
+
|
|
13
|
+
tokens.$default-map: components.$post-switch;
|
|
14
|
+
|
|
15
|
+
$switch-handle-icon: url("data:image/svg+xml,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M7.51712 12.1332L4.30712 8.69325C4.02712 8.39325 4.03712 7.91325 4.34712 7.63325C4.64712 7.35325 5.12712 7.36325 5.40712 7.67325L7.31712 9.72325L10.7171 4.57325C10.9471 4.22325 11.4071 4.13325 11.7571 4.36325C12.1071 4.59325 12.1971 5.05325 11.9671 5.40325L7.51712 12.1332Z'/></svg>");
|
|
16
|
+
|
|
17
|
+
.form-switch {
|
|
18
|
+
display: flex;
|
|
19
|
+
|
|
20
|
+
.form-check-input {
|
|
21
|
+
appearance: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
position: relative;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
height: tokens.get('switch-element-height');
|
|
27
|
+
width: tokens.get('switch-element-width');
|
|
28
|
+
margin-block: tokens.get('switch-icon-padding-container');
|
|
29
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-default')
|
|
30
|
+
tokens.get('switch-element-enabled-stroke');
|
|
31
|
+
border-radius: tokens.get('switch-border-radius-round');
|
|
32
|
+
background-color: tokens.get('switch-element-enabled-bg');
|
|
33
|
+
padding: tokens.get('switch-padding-block-text') 0 tokens.get('switch-padding-block-text')
|
|
34
|
+
tokens.get('switch-padding-inline-handle');
|
|
35
|
+
transition:
|
|
36
|
+
background-color animation.$transition-base-timing,
|
|
37
|
+
border-color animation.$transition-base-timing;
|
|
38
|
+
|
|
39
|
+
&::before,
|
|
40
|
+
&::after {
|
|
41
|
+
position: absolute;
|
|
42
|
+
display: block;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
content: '';
|
|
45
|
+
width: tokens.get('switch-element-handle');
|
|
46
|
+
height: tokens.get('switch-element-handle');
|
|
47
|
+
background-color: tokens.get('switch-handle-enabled');
|
|
48
|
+
border-radius: tokens.get('switch-border-radius-round');
|
|
49
|
+
transition:
|
|
50
|
+
transform animation.$transition-base-timing,
|
|
51
|
+
background-color animation.$transition-base-timing;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
mask-image: $switch-handle-icon;
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
z-index: 1;
|
|
58
|
+
mask-size: tokens.get('switch-element-handle');
|
|
59
|
+
mask-repeat: no-repeat;
|
|
60
|
+
mask-position: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-default')
|
|
65
|
+
tokens.get('switch-handle-enabled-stroke');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:checked {
|
|
69
|
+
background-color: tokens.get('switch-element-selected-bg');
|
|
70
|
+
border-color: tokens.get('switch-element-selected-stroke');
|
|
71
|
+
|
|
72
|
+
&::before,
|
|
73
|
+
&::after {
|
|
74
|
+
transform: translateX(
|
|
75
|
+
calc(tokens.get('switch-element-width') - tokens.get('switch-element-handle') * 1.5)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::before {
|
|
80
|
+
background-color: tokens.get('switch-icon-success');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&::after {
|
|
84
|
+
@include icons-mx.remove-icon;
|
|
85
|
+
background-color: tokens.get('switch-handle-selected');
|
|
86
|
+
border-color: tokens.get('switch-handle-selected-stroke');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
+ .form-check-label {
|
|
90
|
+
color: tokens.get('switch-text-selected-fg');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include utility-mx.high-contrast-mode {
|
|
95
|
+
transition: none;
|
|
96
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-default') CanvasText;
|
|
97
|
+
|
|
98
|
+
&:checked {
|
|
99
|
+
background-color: SelectedItem !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::after {
|
|
103
|
+
max-width: tokens.get('switch-element-handle');
|
|
104
|
+
border-color: Canvas;
|
|
105
|
+
background-color: CanvasText;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:checked::after,
|
|
109
|
+
&:checked::before {
|
|
110
|
+
transform: translateX(
|
|
111
|
+
calc(
|
|
112
|
+
tokens.get('switch-element-width') - tokens.get('switch-element-handle') - tokens.get(
|
|
113
|
+
'switch-padding-inline-handle'
|
|
114
|
+
) * 2 - tokens.get('switch-border-width') * 2
|
|
115
|
+
)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[disabled] {
|
|
121
|
+
background-color: tokens.get('switch-element-disabled-bg');
|
|
122
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-disabled')
|
|
123
|
+
tokens.get('switch-element-disabled-stroke');
|
|
124
|
+
|
|
125
|
+
@include utility-mx.high-contrast-mode {
|
|
126
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-disabled')
|
|
127
|
+
GrayText;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
+ .form-check-label {
|
|
131
|
+
color: tokens.get('switch-text-disabled-fg');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&::after {
|
|
135
|
+
background-color: tokens.get('switch-handle-disabled');
|
|
136
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-disabled')
|
|
137
|
+
tokens.get('switch-handle-disabled-stroke');
|
|
138
|
+
|
|
139
|
+
@include color-mx.on-dark-background {
|
|
140
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-disabled')
|
|
141
|
+
color.$white-alpha-80;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include utility-mx.high-contrast-mode {
|
|
145
|
+
border: tokens.get('switch-border-width') tokens.get('switch-border-style-disabled')
|
|
146
|
+
GrayText;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:checked::before {
|
|
151
|
+
background-color: tokens.get('switch-icon-disabled');
|
|
152
|
+
mask-image: $switch-handle-icon;
|
|
153
|
+
mask-repeat: no-repeat;
|
|
154
|
+
mask-position: center;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include utility-mx.high-contrast-mode {
|
|
158
|
+
&::after {
|
|
159
|
+
border-color: Field;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:checked {
|
|
163
|
+
background-color: GrayText !important;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.is-invalid {
|
|
169
|
+
border-color: transparent;
|
|
170
|
+
|
|
171
|
+
+ label {
|
|
172
|
+
color: tokens.get('switch-text-enabled-fg');
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&:has(input:not([disabled]):hover) input {
|
|
178
|
+
background-color: tokens.get('switch-element-hover-bg');
|
|
179
|
+
border-color: tokens.get('switch-element-hover-stroke');
|
|
180
|
+
|
|
181
|
+
&::after {
|
|
182
|
+
background-color: tokens.get('switch-handle-hover');
|
|
183
|
+
border-color: tokens.get('switch-handle-hover-stroke');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:checked::before {
|
|
187
|
+
background-color: tokens.get('switch-icon-hover');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@include utility-mx.high-contrast-mode {
|
|
191
|
+
border-color: Highlight;
|
|
192
|
+
|
|
193
|
+
&::after {
|
|
194
|
+
background-color: CanvasText;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.form-check-label {
|
|
200
|
+
color: tokens.get('switch-text-enabled-fg');
|
|
201
|
+
padding-block: tokens.get('switch-padding-block-container-text');
|
|
202
|
+
|
|
203
|
+
&.order-first {
|
|
204
|
+
flex: 0 auto;
|
|
205
|
+
padding-inline-end: tokens.get('switch-gap-inline-text');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:not(.order-first) {
|
|
209
|
+
padding-inline-start: tokens.get('switch-gap-inline-text');
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
package/components/tables.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color:
|
|
1
|
+
.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: #000;--bs-table-bg: transparent;--bs-table-border-color: hsl(0, 0%, 90%);--bs-table-accent-bg: transparent;--bs-table-striped-color: #000;--bs-table-striped-bg: #faf9f8;--bs-table-active-color: #000;--bs-table-active-bg: #fc0;--bs-table-hover-color: #000;--bs-table-hover-bg: hsl(0, 0%, 90%);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:var(--post-core-dimension-12) var(--post-core-dimension-4);color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(1px*2) solid #e6e6e6}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:var(--post-core-dimension-8) var(--post-core-dimension-4)}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(even){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: #d6d6d6;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e0e0e0;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d5e7d2;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #f5fafc;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fdeccc;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #faf9f8;--bs-table-border-color: black;--bs-table-striped-bg: black;--bs-table-striped-color: #fff;--bs-table-active-bg: black;--bs-table-active-color: #fff;--bs-table-hover-bg: black;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: hsl(0, 0%, 20%);--bs-table-border-color: white;--bs-table-striped-bg: white;--bs-table-striped-color: #000;--bs-table-active-bg: white;--bs-table-active-color: #000;--bs-table-hover-bg: white;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width: 599.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width: 779.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width: 1023.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width: 1279.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.table>:not(:first-child){border-width:0}.table-mono>thead,.table-mono>tbody,.table-mono>tfoot,.table-mono>:is(thead,tbody,tfoot)>tr,.table-mono>:is(thead,tbody,tfoot)>tr>:is(td,th){border-color:#fff;border-width:2px}.table-mono.table-striped:not(.table-hover)>tbody>tr>:is(th,td),.table-mono.table-striped.table-hover>tbody>tr:not(:hover)>:is(th,td){box-shadow:none}.table-mono.table-hover:not(.table-bordered)>tbody>tr>:is(td,th){border:0}.table-mono:not(.table-bordered)>:is(thead,tbody,tfoot)>tr>:is(td,th){border:0}.table-mono.table-borderless>thead,.table-mono.table-borderless>tbody,.table-mono.table-borderless>tfoot,.table-mono.table-borderless>:is(thead,tbody,tfoot)>tr,.table-mono.table-borderless>:is(thead,tbody,tfoot)>tr>:is(td,th){border:0}.table-mono>tbody>tr{background-color:#f4f3f1}
|
package/components/tables.scss
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
@forward './../../variables/options';
|
|
2
|
-
|
|
3
1
|
@use './../../mixins/color' as color-mx;
|
|
4
2
|
@use './../../mixins/utilities' as utilities-mx;
|
|
5
3
|
@use './../../variables/color';
|
|
6
4
|
@use './../../variables/spacing';
|
|
7
5
|
@use './../../variables/components/nav';
|
|
8
6
|
|
|
7
|
+
@use './../../functions/tokens';
|
|
8
|
+
@use './../../tokens/utilities';
|
|
9
|
+
|
|
10
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
11
|
+
|
|
9
12
|
.tab-title[role='tab'] {
|
|
10
13
|
display: inline-block;
|
|
11
14
|
cursor: pointer;
|
|
@@ -17,27 +20,27 @@
|
|
|
17
20
|
border-left: 1px solid transparent;
|
|
18
21
|
outline-color: currentColor;
|
|
19
22
|
opacity: 0.7;
|
|
20
|
-
color:
|
|
23
|
+
color: color.$black;
|
|
21
24
|
text-decoration: none;
|
|
22
25
|
background-color: transparent;
|
|
23
26
|
|
|
24
27
|
&:focus {
|
|
25
28
|
background-color: unset;
|
|
26
|
-
color:
|
|
29
|
+
color: color.$black;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
&:hover {
|
|
30
33
|
opacity: 1;
|
|
31
|
-
background-color:
|
|
32
|
-
color:
|
|
34
|
+
background-color: color.$black-alpha-60;
|
|
35
|
+
color: color.$white;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
// same styles as focus, can't use placeholder here because focus-visible can't be described outside of the support condition
|
|
36
39
|
&:focus-visible {
|
|
37
40
|
outline: transparent;
|
|
38
41
|
opacity: 1;
|
|
39
|
-
background-color:
|
|
40
|
-
color:
|
|
42
|
+
background-color: color.$black-alpha-60;
|
|
43
|
+
color: color.$white;
|
|
41
44
|
box-shadow: none;
|
|
42
45
|
|
|
43
46
|
&::after {
|
|
@@ -57,8 +60,8 @@
|
|
|
57
60
|
border-right-color: nav.$nav-tabs-border-color;
|
|
58
61
|
border-left-color: nav.$nav-tabs-border-color;
|
|
59
62
|
opacity: 1;
|
|
60
|
-
background-color:
|
|
61
|
-
color:
|
|
63
|
+
background-color: color.$white;
|
|
64
|
+
color: color.$black;
|
|
62
65
|
font-weight: 700;
|
|
63
66
|
|
|
64
67
|
// Create a line that does not suffer from border corner mitering
|
|
@@ -69,7 +72,7 @@
|
|
|
69
72
|
top: 0;
|
|
70
73
|
right: -1px;
|
|
71
74
|
left: -1px;
|
|
72
|
-
height:
|
|
75
|
+
height: tokens.get('utility-gap-4');
|
|
73
76
|
background-color: nav.$nav-tabs-link-active-border-color;
|
|
74
77
|
}
|
|
75
78
|
}
|
|
@@ -95,8 +98,8 @@
|
|
|
95
98
|
&:focus,
|
|
96
99
|
&:focus-within,
|
|
97
100
|
&:focus-visible {
|
|
98
|
-
outline:
|
|
99
|
-
outline-offset:
|
|
101
|
+
outline: tokens.get('utility-gap-2') solid Highlight;
|
|
102
|
+
outline-offset: calc(tokens.get('utility-gap-4') * -1);
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
&.active {
|
|
@@ -110,45 +113,3 @@
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
|
-
|
|
114
|
-
// Careful, this generates a lot of code
|
|
115
|
-
@each $key, $color in color.$background-colors {
|
|
116
|
-
.bg-#{$key} {
|
|
117
|
-
.tab-title {
|
|
118
|
-
background-color: $color;
|
|
119
|
-
|
|
120
|
-
&.active {
|
|
121
|
-
background-color: $color;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.nav-item {
|
|
126
|
-
background-color: $color;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
[class*='bg-'] .tab-title.active {
|
|
132
|
-
&:focus {
|
|
133
|
-
&::after {
|
|
134
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// write supports for selectors this way: https://stackoverflow.com/a/62666132
|
|
139
|
-
// need to include * otherwise it throws build error
|
|
140
|
-
@supports #{'\selector(*:focus-visible)'} {
|
|
141
|
-
&:focus {
|
|
142
|
-
&::after {
|
|
143
|
-
background-color: unset;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// same styles as focus, can't use placeholder here because focus-visible can't be described outside of the support condition
|
|
148
|
-
&:focus-visible {
|
|
149
|
-
&::after {
|
|
150
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@forward './../../variables/options';
|
|
2
|
-
|
|
3
1
|
@use './../../mixins/utilities' as utilities-mx;
|
|
4
2
|
@use './../../variables/color';
|
|
5
3
|
@use './../../variables/spacing';
|
|
@@ -10,7 +8,7 @@
|
|
|
10
8
|
padding-top: spacing.$spacer;
|
|
11
9
|
border: 0;
|
|
12
10
|
background-color: rgba(
|
|
13
|
-
|
|
11
|
+
color.$black,
|
|
14
12
|
0.02
|
|
15
13
|
); // 0.02 gets as close as possible to color.$light on white background
|
|
16
14
|
|
|
@@ -38,7 +36,6 @@
|
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
.tabs {
|
|
41
|
-
@include utilities-mx.reset-list;
|
|
42
39
|
display: flex;
|
|
43
40
|
flex-wrap: nowrap;
|
|
44
41
|
overflow-x: auto;
|
|
@@ -47,6 +44,8 @@
|
|
|
47
44
|
overscroll-behavior-x: contain;
|
|
48
45
|
white-space: nowrap;
|
|
49
46
|
|
|
47
|
+
@include utilities-mx.reset-list;
|
|
48
|
+
|
|
50
49
|
// Scrolling fix to make the tabs scroll a little more so the right most tab is not
|
|
51
50
|
// flush with the window border
|
|
52
51
|
&::after {
|
|
@@ -60,12 +59,3 @@
|
|
|
60
59
|
.tab-content {
|
|
61
60
|
padding-top: spacing.$spacer;
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
// Careful, this generates a lot of code
|
|
65
|
-
@each $key, $color in color.$background-colors {
|
|
66
|
-
.bg-#{$key} {
|
|
67
|
-
.tabs-wrapper {
|
|
68
|
-
background-color: $color;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(
|
|
1
|
+
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:#000}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(0,0,0,.6);color:#fff}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(0,0,0,.6);color:#fff;box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:#000;font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}
|
package/components/tag.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap
|
|
1
|
+
.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg: #fff;--post-tag-fg: #000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg: #fc0;--post-tag-fg: #000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg: #2c871d;--post-tag-fg: #fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg: #f49e00;--post-tag-fg: #000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg: #a51728;--post-tag-fg: #fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg: #cce4ee;--post-tag-fg: #000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}
|
package/components/tag.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@forward './../variables/options';
|
|
3
2
|
@use './../variables/color';
|
|
4
3
|
@use './../variables/components/tag';
|
|
5
4
|
@use './../functions/contrast' as contrast-fn;
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
&.tag-white {
|
|
66
|
-
border-color:
|
|
65
|
+
border-color: color.$black;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
// Can be removed completely as soon as Firefox ESR v128 is released and rolled out
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.teaser-card{height:100%;position:relative;display:flex;flex-direction:column}.teaser-card img{height:var(--post-device-sizing-content-height-1);min-height:var(--post-device-sizing-content-height-1);width:100%;object-fit:cover;border-top-left-radius:var(--post-device-border-radius-2);border-top-right-radius:var(--post-device-border-radius-2)}.teaser-card h1,.teaser-card h2,.teaser-card h3,.teaser-card h4,.teaser-card h5,.teaser-card h6,.teaser-card p{margin:0;word-break:break-word}.teaser-card h1,.teaser-card h2,.teaser-card h3,.teaser-card h4,.teaser-card h5,.teaser-card h6{font-size:var(--post-device-font-size-5)}.teaser-card>div{display:flex;flex-direction:column;align-items:flex-start;padding:var(--post-device-spacing-padding-5);gap:var(--post-device-spacing-gap-7);height:100%;justify-content:space-between}.teaser-card>div>div{display:flex;flex-direction:column;gap:var(--post-core-dimension-6)}.teaser-card.teaser-card-lg img{height:var(--post-device-sizing-content-height-2);min-height:var(--post-device-sizing-content-height-2)}.teaser-card.teaser-card-lg h1,.teaser-card.teaser-card-lg h2,.teaser-card.teaser-card-lg h3,.teaser-card.teaser-card-lg h4,.teaser-card.teaser-card-lg h5,.teaser-card.teaser-card-lg h6{font-size:var(--post-device-font-size-4)}.teaser-card.teaser-card-lg>div{padding:var(--post-device-spacing-padding-20);gap:var(--post-core-dimension-24)}.teaser-card.teaser-card-lg>div>div{gap:var(--post-device-spacing-gap-block-3)}
|