@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.
Files changed (321) hide show
  1. package/_svg-icon-map.scss +85 -23
  2. package/basics.css +1 -1
  3. package/basics.scss +2 -6
  4. package/cargo-external.css +7 -0
  5. package/cargo-external.scss +10 -0
  6. package/cargo-internal.css +7 -0
  7. package/cargo-internal.scss +10 -0
  8. package/cargo-tokens-external.css +1 -0
  9. package/cargo-tokens-external.scss +8 -0
  10. package/cargo-tokens-internal.css +1 -0
  11. package/cargo-tokens-internal.scss +8 -0
  12. package/components/_form-check.scss +166 -0
  13. package/components/_index.scss +21 -13
  14. package/components/appstore-badge.css +1 -0
  15. package/components/appstore-badge.scss +18 -0
  16. package/components/avatar.css +1 -0
  17. package/components/avatar.scss +41 -0
  18. package/components/badge.css +1 -1
  19. package/components/badge.scss +8 -2
  20. package/components/banner.css +1 -0
  21. package/components/banner.scss +105 -0
  22. package/components/blockquote.css +1 -0
  23. package/components/blockquote.scss +46 -0
  24. package/components/breadcrumb.css +1 -1
  25. package/components/breadcrumb.scss +4 -24
  26. package/components/breakpoints.css +1 -0
  27. package/components/breakpoints.scss +17 -0
  28. package/components/button-group.css +1 -1
  29. package/components/button-group.scss +7 -6
  30. package/components/button.css +1 -1
  31. package/components/button.scss +41 -228
  32. package/components/card-control.css +1 -1
  33. package/components/card-control.scss +33 -24
  34. package/components/card.css +1 -1
  35. package/components/card.scss +72 -68
  36. package/components/checkbox.css +1 -0
  37. package/components/checkbox.scss +127 -0
  38. package/components/chip.css +1 -1
  39. package/components/chip.scss +9 -8
  40. package/components/close.css +1 -1
  41. package/components/close.scss +0 -2
  42. package/components/datatable.css +1 -3
  43. package/components/datatable.scss +22 -17
  44. package/components/datepicker.css +1 -1
  45. package/components/datepicker.scss +6 -22
  46. package/components/dialog.css +1 -1
  47. package/components/dialog.scss +26 -38
  48. package/components/dropdown.css +1 -1
  49. package/components/dropdown.scss +9 -6
  50. package/components/fonts.css +1 -1
  51. package/components/fonts.scss +7 -45
  52. package/components/form-footer.css +1 -0
  53. package/components/form-footer.scss +18 -0
  54. package/components/form-hint.css +1 -0
  55. package/components/form-hint.scss +15 -0
  56. package/components/form-input.css +1 -0
  57. package/components/form-input.scss +301 -0
  58. package/components/form-range.css +1 -1
  59. package/components/form-range.scss +9 -9
  60. package/components/form-search-input.css +1 -0
  61. package/components/form-search-input.scss +97 -0
  62. package/components/form-select.css +1 -1
  63. package/components/form-select.scss +266 -55
  64. package/components/form-textarea.css +1 -1
  65. package/components/form-textarea.scss +172 -9
  66. package/components/globals/_index.scss +1 -0
  67. package/components/globals/post-footer.css +1 -0
  68. package/components/globals/post-footer.scss +113 -0
  69. package/components/header/_mixins.scss +48 -0
  70. package/components/header/index.css +1 -0
  71. package/components/header/index.scss +131 -0
  72. package/components/icon-button.css +1 -0
  73. package/components/icon-button.scss +19 -0
  74. package/components/icon-close-button.css +1 -0
  75. package/components/icon-close-button.scss +29 -0
  76. package/components/intranet-header/_icon.scss +1 -1
  77. package/components/intranet-header/_index.scss +0 -2
  78. package/components/intranet-header/_language-chooser.scss +3 -2
  79. package/components/intranet-header/_nav-overflow.scss +2 -2
  80. package/components/intranet-header/_scaffolding.scss +1 -1
  81. package/components/intranet-header/_searchbox.scss +1 -1
  82. package/components/intranet-header/_sidebar.scss +11 -11
  83. package/components/intranet-header/_top-navigation.scss +1 -1
  84. package/components/list-check.css +1 -0
  85. package/components/list-check.scss +79 -0
  86. package/components/list-group.css +1 -1
  87. package/components/list-group.scss +72 -127
  88. package/components/modal.css +2 -2
  89. package/components/modal.scss +2 -4
  90. package/components/offcanvas.css +1 -1
  91. package/components/offcanvas.scss +0 -2
  92. package/components/pagination.css +1 -1
  93. package/components/pagination.scss +10 -9
  94. package/components/popover.css +1 -1
  95. package/components/popover.scss +0 -2
  96. package/components/product-card.css +1 -1
  97. package/components/product-card.scss +11 -5
  98. package/components/progress.scss +0 -2
  99. package/components/radio-button.css +1 -0
  100. package/components/radio-button.scss +125 -0
  101. package/components/segmented-button.css +3 -0
  102. package/components/segmented-button.scss +207 -0
  103. package/components/skiplinks.css +1 -0
  104. package/components/skiplinks.scss +20 -0
  105. package/components/spinner.scss +0 -1
  106. package/components/stepper.css +1 -1
  107. package/components/stepper.scss +40 -33
  108. package/components/subnavigation.css +1 -1
  109. package/components/subnavigation.scss +17 -14
  110. package/components/switch.css +1 -0
  111. package/components/switch.scss +212 -0
  112. package/components/tables.css +1 -1
  113. package/components/tables.scss +0 -1
  114. package/components/tabs/_tab-title.scss +16 -55
  115. package/components/tabs/_tabs-wrapper.scss +3 -13
  116. package/components/tabs/index.css +1 -1
  117. package/components/tabs/index.scss +0 -2
  118. package/components/tag.css +1 -1
  119. package/components/tag.scss +1 -2
  120. package/components/teaser.css +1 -0
  121. package/components/teaser.scss +83 -0
  122. package/components/text-highlight.css +1 -1
  123. package/components/timepicker.css +1 -1
  124. package/components/timepicker.scss +13 -16
  125. package/components/toast.css +1 -1
  126. package/components/toast.scss +19 -16
  127. package/components/tooltip.css +1 -1
  128. package/components/tooltip.scss +0 -2
  129. package/components/transitions.scss +0 -2
  130. package/components/validation.css +1 -0
  131. package/components/validation.scss +120 -0
  132. package/elements/_index.scss +7 -1
  133. package/elements/anchor.css +1 -0
  134. package/elements/anchor.scss +33 -0
  135. package/elements/body.css +1 -1
  136. package/elements/body.scss +5 -1
  137. package/elements/fieldset-legend.css +1 -1
  138. package/elements/fieldset-legend.scss +7 -3
  139. package/elements/heading.css +1 -1
  140. package/elements/heading.scss +10 -12
  141. package/elements/list-bullet.css +1 -0
  142. package/elements/list-bullet.scss +43 -0
  143. package/elements/list-description.css +1 -0
  144. package/elements/list-description.scss +5 -0
  145. package/elements/list-number.css +1 -0
  146. package/elements/list-number.scss +33 -0
  147. package/elements/paragraph.css +1 -0
  148. package/elements/paragraph.scss +17 -0
  149. package/elements/reset.css +1 -1
  150. package/elements/reset.scss +16 -7
  151. package/elements.css +1 -0
  152. package/elements.scss +1 -0
  153. package/fonts.css +1 -1
  154. package/functions/_breakpoint.scss +26 -0
  155. package/functions/_forms.scss +46 -3
  156. package/functions/_icons.scss +2 -14
  157. package/helpers/_index.scss +4 -0
  158. package/helpers/clearfix.css +1 -0
  159. package/helpers/clearfix.scss +5 -0
  160. package/helpers/focus-ring.css +1 -0
  161. package/helpers/focus-ring.scss +5 -0
  162. package/helpers/text-truncation.css +1 -0
  163. package/helpers/text-truncation.scss +5 -0
  164. package/helpers/visually-hidden.css +1 -0
  165. package/helpers/visually-hidden.scss +5 -0
  166. package/index.css +3 -3
  167. package/index.scss +2 -5
  168. package/intranet.css +3 -3
  169. package/intranet.scss +2 -2
  170. package/layout/_containers.scss +32 -0
  171. package/layout/_section.scss +133 -0
  172. package/layout/grid/_index.scss +11 -0
  173. package/layout/grid/_mixins.scss +104 -0
  174. package/layout/grid/_variables.scss +2 -0
  175. package/layout/index.css +1 -0
  176. package/layout/index.scss +3 -0
  177. package/mixins/_button.scss +19 -15
  178. package/mixins/_form-checks.scss +1 -1
  179. package/mixins/_forms.scss +42 -33
  180. package/mixins/_icon-button.scss +27 -0
  181. package/mixins/_icons.scss +22 -32
  182. package/mixins/_index.scss +3 -2
  183. package/mixins/_layout.scss +26 -0
  184. package/mixins/_list.scss +112 -0
  185. package/mixins/_media.scss +58 -2
  186. package/mixins/_notification.scss +59 -53
  187. package/mixins/_utilities.scss +46 -25
  188. package/package.json +16 -16
  189. package/palettes/_mixins.scss +74 -0
  190. package/palettes/_utilities.scss +3 -0
  191. package/palettes/_variables.scss +2 -0
  192. package/palettes/cargo-palettes.css +1 -0
  193. package/palettes/cargo-palettes.scss +3 -0
  194. package/palettes/post-palettes.css +1 -0
  195. package/palettes/post-palettes.scss +3 -0
  196. package/placeholders/_button.scss +3 -6
  197. package/placeholders/_close.scss +2 -5
  198. package/placeholders/_schemes.scss +10 -0
  199. package/post-external.css +3 -3
  200. package/post-external.scss +7 -1
  201. package/post-internal.css +3 -3
  202. package/post-internal.scss +7 -1
  203. package/post-tokens-external.css +1 -1
  204. package/post-tokens-external.scss +1 -1
  205. package/post-tokens-internal.css +1 -1
  206. package/post-tokens-internal.scss +1 -1
  207. package/themes/bootstrap/_core.scss +0 -2
  208. package/themes/bootstrap/_forms.scss +0 -4
  209. package/themes/bootstrap/_overrides-variables.scss +0 -6
  210. package/themes/bootstrap/_utilities.scss +45 -1
  211. package/tokens/_cargo-theme.scss +8 -0
  212. package/tokens/_helpers.scss +1 -0
  213. package/tokens/_palettes.scss +9 -0
  214. package/tokens/_schemes.scss +11 -0
  215. package/tokens/_utilities_formatted.scss +1 -0
  216. package/tokens/temp/_channel.scss +4 -3
  217. package/tokens/temp/_components.scss +594 -503
  218. package/tokens/temp/_core.scss +49 -37
  219. package/tokens/temp/_device.scss +210 -239
  220. package/tokens/temp/_elements.scss +11 -11
  221. package/tokens/temp/_helpers.scss +13 -0
  222. package/tokens/temp/_index.scss +6 -4
  223. package/tokens/temp/_palettes.scss +19 -0
  224. package/tokens/temp/_scheme.scss +334 -0
  225. package/tokens/temp/_theme.scss +28 -9
  226. package/tokens/temp/_utilities-formatted.scss +128 -0
  227. package/tokens/temp/_utilities.scss +34 -58
  228. package/tokens/temp/palettes/_cargo-dark.scss +19 -0
  229. package/tokens/temp/palettes/_cargo-light.scss +19 -0
  230. package/tokens/temp/palettes/_post-dark.scss +19 -0
  231. package/tokens/temp/palettes/_post-light.scss +19 -0
  232. package/utilities/_not-defined.scss +44 -0
  233. package/utilities/_variables.scss +304 -22
  234. package/utilities/index.css +1 -0
  235. package/utilities/{_index.scss → index.scss} +1 -2
  236. package/variables/_animation.scss +10 -6
  237. package/variables/_breakpoints.scss +9 -5
  238. package/variables/_color.scss +0 -61
  239. package/variables/_commons.scss +1 -0
  240. package/variables/_elevation.scss +16 -22
  241. package/variables/_grid.scss +2 -12
  242. package/variables/_icons.scss +19 -696
  243. package/variables/_index.scss +1 -1
  244. package/variables/_sizing.scss +17 -0
  245. package/variables/_spacing.scss +0 -152
  246. package/variables/_type.scss +17 -27
  247. package/variables/components/_accordion.scss +0 -47
  248. package/variables/components/_badge.scss +9 -5
  249. package/variables/components/_button.scss +61 -113
  250. package/variables/components/_card.scss +7 -4
  251. package/variables/components/_chip.scss +13 -7
  252. package/variables/components/_close.scss +14 -8
  253. package/variables/components/_code.scss +1 -1
  254. package/variables/components/_datatable.scss +12 -8
  255. package/variables/components/_dropdowns.scss +1 -1
  256. package/variables/components/_form-check.scss +9 -46
  257. package/variables/components/_forms.scss +8 -101
  258. package/variables/components/_index.scss +0 -5
  259. package/variables/components/_modal.scss +17 -12
  260. package/variables/components/_nav.scss +3 -3
  261. package/variables/components/_navbar.scss +7 -4
  262. package/variables/components/_notification.scss +48 -37
  263. package/variables/components/_pagination.scss +14 -6
  264. package/variables/components/_spinners.scss +7 -2
  265. package/variables/components/_stepper.scss +15 -10
  266. package/variables/components/_subnavigation.scss +11 -9
  267. package/variables/components/_tables.scss +11 -6
  268. package/variables/components/_tag.scss +10 -7
  269. package/components/accordion.css +0 -1
  270. package/components/accordion.scss +0 -100
  271. package/components/alert.css +0 -1
  272. package/components/alert.scss +0 -137
  273. package/components/carousel.css +0 -1
  274. package/components/carousel.scss +0 -178
  275. package/components/elevation.css +0 -1
  276. package/components/elevation.scss +0 -8
  277. package/components/floating-label.css +0 -1
  278. package/components/floating-label.scss +0 -353
  279. package/components/form-check.css +0 -1
  280. package/components/form-check.scss +0 -297
  281. package/components/form-validation.css +0 -1
  282. package/components/form-validation.scss +0 -148
  283. package/components/forms.css +0 -1
  284. package/components/forms.scss +0 -215
  285. package/components/grid.css +0 -1
  286. package/components/grid.scss +0 -170
  287. package/components/icons.css +0 -1
  288. package/components/icons.scss +0 -60
  289. package/components/sizing.css +0 -1
  290. package/components/sizing.scss +0 -85
  291. package/components/topic-teaser.css +0 -1
  292. package/components/topic-teaser.scss +0 -196
  293. package/layouts/portal/_grid.scss +0 -85
  294. package/layouts/portal/_index.scss +0 -2
  295. package/layouts/portal/_subnavigation.scss +0 -5
  296. package/layouts/portal/_variables.scss +0 -8
  297. package/mixins/_accordion.scss +0 -16
  298. package/mixins/_elevation.scss +0 -6
  299. package/mixins/_focus.scss +0 -9
  300. package/mixins/_form-validation.scss +0 -5
  301. package/mixins/_size.scss +0 -65
  302. package/placeholders/_modes.scss +0 -10
  303. package/themes/bootstrap/_carousel.scss +0 -2
  304. package/themes/bootstrap/_containers.scss +0 -2
  305. package/themes/bootstrap/_grid.scss +0 -2
  306. package/themes/bootstrap/_overrides-mixins.scss +0 -33
  307. package/themes/bootstrap/forms/_floating-labels.scss +0 -2
  308. package/themes/bootstrap/forms/_form-control.scss +0 -2
  309. package/themes/bootstrap/forms/_form-select.scss +0 -2
  310. package/themes/bootstrap/forms/_form-text.scss +0 -2
  311. package/tokens/_modes.scss +0 -11
  312. package/tokens/temp/_mode.scss +0 -299
  313. package/utilities/_functions.scss +0 -35
  314. package/utilities/temp/_legacy.scss +0 -95
  315. package/variables/_options.scss +0 -5
  316. package/variables/components/_carousel.scss +0 -27
  317. package/variables/components/_figures.scss +0 -6
  318. package/variables/components/_form-select.scss +0 -13
  319. package/variables/components/_form-validation.scss +0 -38
  320. package/variables/components/_list-group.scss +0 -29
  321. 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 utility-functions;
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: utility-functions.z-index(subnavigation, underscore-root);
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: spacing.$size-line solid Highlight;
76
- outline-offset: -(spacing.$size-micro);
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: utility-functions.z-index(subnavigation, underscore-link);
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: utility-functions.z-index(subnavigation, underscore-link);
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
+ }
@@ -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: var(--post-contrast-color);--bs-table-bg: transparent;--bs-table-border-color: hsl(0, 0%, 90%);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--post-contrast-color);--bs-table-striped-bg: #faf9f8;--bs-table-active-color: var(--post-contrast-color);--bs-table-active-bg: #fc0;--bs-table-hover-color: var(--post-contrast-color);--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:.75rem .5rem;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:.5rem .25rem}.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: 399.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width: 599.98px){.table-responsive-rg{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}}@media(max-width: 1439.98px){.table-responsive-xxl{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}
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}
@@ -1,4 +1,3 @@
1
- @forward './../variables/options';
2
1
  @use './../variables/color';
3
2
  @use './../variables/commons';
4
3
 
@@ -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: var(--post-contrast-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: var(--post-contrast-color);
29
+ color: color.$black;
27
30
  }
28
31
 
29
32
  &:hover {
30
33
  opacity: 1;
31
- background-color: rgba(var(--post-contrast-color-rgb), 0.6);
32
- color: var(--post-contrast-color-inverted);
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: rgba(var(--post-contrast-color-rgb), 0.6);
40
- color: var(--post-contrast-color-inverted);
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: var(--post-contrast-color-inverted);
61
- color: var(--post-contrast-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: spacing.$size-micro;
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: spacing.$size-line solid Highlight;
99
- outline-offset: -(spacing.$size-micro);
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
- var(--post-contrast-color-rgb),
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(var(--post-contrast-color-rgb), 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{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}.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:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);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:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=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,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=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:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}
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}}
@@ -1,4 +1,2 @@
1
- @forward '../../variables/options';
2
-
3
1
  @use 'tabs-wrapper';
4
2
  @use 'tab-title';
@@ -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:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;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:1.5rem}.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:var(--post-contrast-color)}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}
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}
@@ -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: var(--post-contrast-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)}