@swisspost/design-system-styles 6.6.3 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/_svg-icon-map.scss +922 -904
  2. package/basics.css +1 -1
  3. package/components/_index.scss +3 -0
  4. package/components/alert.scss +6 -1
  5. package/components/badge.scss +25 -78
  6. package/components/button-group.scss +1 -0
  7. package/components/button.scss +8 -4
  8. package/components/carousel.scss +1 -1
  9. package/components/chip.scss +159 -0
  10. package/components/datepicker.scss +1 -1
  11. package/components/error-container.scss +9 -0
  12. package/components/floating-label.scss +0 -1
  13. package/components/form-check.scss +117 -29
  14. package/components/form-range.scss +106 -19
  15. package/components/form-select.scss +66 -15
  16. package/components/form-validation.scss +30 -13
  17. package/components/forms.scss +51 -13
  18. package/components/intranet-header/_sidebar.scss +24 -5
  19. package/components/subnavigation.scss +2 -5
  20. package/components/tables.scss +1 -1
  21. package/components/tabs/_tab-title.scss +7 -5
  22. package/components/tabs/_tabs-wrapper.scss +5 -2
  23. package/components/tag.scss +82 -0
  24. package/functions/_color.scss +12 -0
  25. package/functions/_forms.scss +22 -0
  26. package/index.css +3 -3
  27. package/intranet.css +3 -3
  28. package/mixins/_accordion.scss +2 -2
  29. package/mixins/_chip.scss +36 -0
  30. package/mixins/_forms.scss +1 -0
  31. package/mixins/_icons.scss +1 -3
  32. package/mixins/_index.scss +1 -1
  33. package/mixins/_utilities.scss +75 -0
  34. package/package.json +13 -13
  35. package/placeholders/_badge.scss +4 -56
  36. package/placeholders/_button.scss +2 -0
  37. package/placeholders/_close.scss +8 -1
  38. package/placeholders/_color.scss +10 -0
  39. package/themes/bootstrap/_overrides-color.scss +4 -14
  40. package/themes/bootstrap/_overrides-variables.scss +1 -0
  41. package/variables/_color.scss +104 -44
  42. package/variables/_commons.scss +2 -0
  43. package/variables/_features.scss +1 -3
  44. package/variables/_icons.scss +4 -1
  45. package/variables/_type.scss +9 -1
  46. package/variables/components/_badge.scss +14 -38
  47. package/variables/components/_card.scss +1 -1
  48. package/variables/components/_chip.scss +50 -0
  49. package/variables/components/_datatable.scss +1 -1
  50. package/variables/components/_dropdowns.scss +1 -1
  51. package/variables/components/_form-check.scss +75 -1
  52. package/variables/components/_form-select.scss +20 -5
  53. package/variables/components/_form-validation.scss +14 -6
  54. package/variables/components/_index.scss +2 -0
  55. package/variables/components/_list-group.scss +1 -1
  56. package/variables/components/_notification.scss +5 -4
  57. package/variables/components/_pagination.scss +2 -2
  58. package/variables/components/_subnavigation.scss +1 -1
  59. package/variables/components/_tag.scss +27 -0
  60. package/mixins/_badge.scss +0 -31
@@ -1,48 +1,24 @@
1
- @use 'sass:math';
2
-
3
- @use './button';
4
- @use './../animation';
5
1
  @use './../color';
6
2
  @use './../commons';
7
3
  @use './../spacing';
8
4
  @use './../type';
9
5
 
6
+ @use './button';
10
7
  @use './../../functions/sizing';
11
8
 
12
- // Design System custom variables
13
- $badge-height: button.$btn-height-rg;
14
- $badge-gap: spacing.$size-mini;
15
- $badge-border-color: var(--post-gray-60);
16
- $badge-border-width: commons.$border-thick;
17
- $badge-transition:
18
- color 250ms,
19
- background-color 250ms,
20
- border-color 250ms;
21
- $badge-hover-color: color.$black;
22
- $badge-hover-bg-color: color.$gray-10;
23
- $badge-active-color: color.$black;
24
- $badge-active-bg-color: color.$yellow;
25
-
26
- $badge-height-sm: button.$btn-height-sm;
27
- $badge-gap-sm: sizing.px-to-rem(6px);
28
- $badge-font-size-sm: type.$font-size-tiny;
9
+ $badge-border-radius: 50rem;
10
+ $badge-line-height: type.$line-height-copy;
11
+ $badge-color: color.$white;
12
+ $badge-bg: color.$error;
13
+ $badge-border: color.$white solid commons.$border-thick;
29
14
 
30
- $badge-nested-height: sizing.px-to-rem(22px);
31
- $badge-nested-color: color.$gray-60;
32
- $badge-nested-bg-color: color.$gray-10;
33
- $badge-nested-border-color: color.$white;
34
- $badge-nested-font-size: sizing.px-to-rem(10px);
35
- $badge-nested-translate-x: ($badge-height - $badge-nested-height) * 0.5;
36
- $badge-nested-active-bg-color: color.$white;
37
- $badge-nested-translate-x-sm: ($badge-height-sm - $badge-nested-height) * 0.5;
15
+ $badge-height: spacing.$size-large;
16
+ $badge-height-sm: spacing.$size-regular;
17
+ $badge-height-empty: spacing.$size-mini;
38
18
 
39
- $badge-check-input-height: spacing.$size-small-large;
40
- $badge-check-input-bg-color: color.$white;
19
+ $badge-padding-x: spacing.$size-mini;
20
+ $badge-padding-x-sm: spacing.$size-micro;
21
+ $badge-padding-x-empty: 0%; // needs a unit for the calculated min-width
41
22
 
42
- // Bootstrap variables
43
- $badge-font-size: type.$font-size-small;
44
- $badge-font-weight: type.$font-weight-normal;
45
- $badge-color: var(--post-gray-80);
46
- $badge-padding-y: 0;
47
- $badge-padding-x: spacing.$size-regular - sizing.px-to-rem($badge-border-width);
48
- $badge-border-radius: 50rem;
23
+ $badge-font-size: type.$font-size-12;
24
+ $badge-font-size-sm: 10px;
@@ -22,7 +22,7 @@ $card-border-color: color.$gray-20 !default; // Design System
22
22
  $card-inner-border-radius: calc(
23
23
  #{$card-border-radius} - #{$card-border-width}
24
24
  ) !default; // Design System
25
- $card-cap-bg: color.$gray-background-light !default;
25
+ $card-cap-bg: color.$light !default;
26
26
  $card-bg: color.$white !default;
27
27
 
28
28
  $card-img-overlay-padding: $card-spacer-x !default;
@@ -0,0 +1,50 @@
1
+ @use './button';
2
+ @use './../animation';
3
+ @use './../color';
4
+ @use './../commons';
5
+ @use './../spacing';
6
+ @use './../type';
7
+
8
+ @use './../../functions/sizing';
9
+
10
+ $chip-color: color.$gray-80;
11
+ $chip-bg: color.$white;
12
+ $chip-border-color: color.$gray-60;
13
+ $chip-border-width: commons.$border-thick;
14
+ $chip-border-radius: commons.$border-radius-pill;
15
+
16
+ $chip-height: button.$btn-height-rg;
17
+ $chip-max-width: sizing.px-to-rem(296px);
18
+ $chip-padding-x: spacing.$size-regular;
19
+ $chip-gap: spacing.$size-mini;
20
+
21
+ $chip-font-size: type.$font-size-16;
22
+ $chip-font-weight: type.$font-weight-normal;
23
+ $chip-line-height: type.$line-height-copy;
24
+
25
+ $chip-transition:
26
+ color animation.$transition-base-timing,
27
+ background-color animation.$transition-base-timing,
28
+ border-color animation.$transition-base-timing;
29
+
30
+ $chip-height-sm: button.$btn-height-sm;
31
+ $chip-gap-sm: sizing.px-to-rem(6px);
32
+ $chip-font-size-sm: type.$font-size-14;
33
+ $chip-padding-x-sm: spacing.$size-small-regular;
34
+
35
+ $chip-hover-color: color.$black;
36
+ $chip-hover-bg: color.$gray-20;
37
+
38
+ $chip-active-color: color.$black;
39
+ $chip-active-bg: color.$yellow;
40
+
41
+ $chip-disabled-bg: color.$white;
42
+ $chip-disabled-active-bg: color.$gray;
43
+
44
+ $chip-text-transition: text-decoration animation.$transition-time-simple
45
+ animation.$transition-easing-default;
46
+
47
+ $chip-close-button-icon: 2043;
48
+ $chip-close-button-border-radius: commons.$border-radius-round;
49
+ $chip-close-button-height: spacing.$size-large;
50
+ $chip-close-button-height-sm: spacing.$size-regular;
@@ -11,7 +11,7 @@
11
11
  $datatable-header-font-weight: type.$font-weight-bold;
12
12
  $datatable-header-unsorted-color: color.$gray-60;
13
13
 
14
- $datatable-cell-bg: color.$gray-background-light;
14
+ $datatable-cell-bg: color.$light;
15
15
  $datatable-cell-padding-x: spacing.$size-regular;
16
16
  $datatable-cell-padding-y: spacing.$size-mini;
17
17
  $datatable-cell-padding: $datatable-cell-padding-y $datatable-cell-padding-x;
@@ -17,7 +17,7 @@ $dropdown-box-shadow: 0 0.5rem 1rem rgba(color.$black, 0.175) !default;
17
17
 
18
18
  $dropdown-link-color: color.$gray-60 !default;
19
19
  $dropdown-link-hover-color: color.$black !default;
20
- $dropdown-link-hover-bg: color.$gray-background-light !default;
20
+ $dropdown-link-hover-bg: color.$light !default;
21
21
 
22
22
  $dropdown-link-active-color: color.$gray-80 !default;
23
23
  $dropdown-link-active-bg: color.$yellow !default;
@@ -5,15 +5,89 @@
5
5
  @use './../animation';
6
6
  @use './../../functions/icons';
7
7
  @use './../../functions/sizing';
8
+ @use './../../functions/forms' as forms-fn;
8
9
 
9
10
  $form-check-row-gap: spacing.$size-small-regular !default;
10
11
  $form-check-column-gap: spacing.$size-mini !default;
11
12
  $form-check-margin-bottom: spacing.$size-regular !default;
12
13
  $form-check-inline-margin-right: spacing.$size-large !default;
13
- $form-check-input-size: spacing.$size-large !default;
14
+ $form-check-input-size: 1.375rem !default;
14
15
  $form-check-input-size-sm: spacing.$size-regular !default;
15
16
  $form-check-input-border-width: forms.$input-border-width !default;
16
17
  $form-check-input-focus-box-shadow: forms.$input-focus-box-shadow !default;
18
+ $form-check-input-disabled-svg-border-width: $form-check-input-border-width * 2;
19
+ $form-check-input-disabled-svg-stroke-square-pattern-lg: '2 1.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4';
20
+ $form-check-input-disabled-svg-stroke-square-pathlength-lg: 88;
21
+ $form-check-input-disabled-svg-stroke-square-pattern-sm: '2 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4';
22
+ $form-check-input-disabled-svg-stroke-square-pathlength-sm: 66;
23
+ $form-check-input-disabled-svg-stroke-circle-pattern: '4 2';
24
+
25
+ // Checkbox lg
26
+ $form-check-input-disabled-background-url-light-lg: forms-fn.get-background-svg-stroke(
27
+ 'square',
28
+ color.$gray-60,
29
+ $form-check-input-disabled-svg-stroke-square-pattern-lg,
30
+ $form-check-input-disabled-svg-stroke-square-pathlength-lg,
31
+ $form-check-input-disabled-svg-border-width
32
+ );
33
+ $form-check-input-disabled-background-url-dark-lg: forms-fn.get-background-svg-stroke(
34
+ 'square',
35
+ color.$white-alpha-80,
36
+ $form-check-input-disabled-svg-stroke-square-pattern-lg,
37
+ $form-check-input-disabled-svg-stroke-square-pathlength-lg,
38
+ $form-check-input-disabled-svg-border-width
39
+ );
40
+ $form-check-input-disabled-background-url-hcm-lg: forms-fn.get-background-svg-stroke(
41
+ 'square',
42
+ 'GrayText',
43
+ $form-check-input-disabled-svg-stroke-square-pattern-lg,
44
+ $form-check-input-disabled-svg-stroke-square-pathlength-lg,
45
+ $form-check-input-disabled-svg-border-width
46
+ );
47
+ //Checkbox sm
48
+ $form-check-input-disabled-background-url-light-sm: forms-fn.get-background-svg-stroke(
49
+ 'square',
50
+ color.$gray-60,
51
+ $form-check-input-disabled-svg-stroke-square-pattern-sm,
52
+ $form-check-input-disabled-svg-stroke-square-pathlength-sm,
53
+ $form-check-input-disabled-svg-border-width
54
+ );
55
+ $form-check-input-disabled-background-url-dark-sm: forms-fn.get-background-svg-stroke(
56
+ 'square',
57
+ color.$white-alpha-80,
58
+ $form-check-input-disabled-svg-stroke-square-pattern-sm,
59
+ $form-check-input-disabled-svg-stroke-square-pathlength-sm,
60
+ $form-check-input-disabled-svg-border-width
61
+ );
62
+ $form-check-input-disabled-background-url-hcm-sm: forms-fn.get-background-svg-stroke(
63
+ 'square',
64
+ 'GrayText',
65
+ $form-check-input-disabled-svg-stroke-square-pattern-sm,
66
+ $form-check-input-disabled-svg-stroke-square-pathlength-sm,
67
+ $form-check-input-disabled-svg-border-width
68
+ );
69
+ // Radio
70
+ $form-check-input-radio-disabled-background-url-light: forms-fn.get-background-svg-stroke(
71
+ 'circle',
72
+ color.$gray-60,
73
+ $form-check-input-disabled-svg-stroke-circle-pattern,
74
+ initial,
75
+ $form-check-input-disabled-svg-border-width
76
+ );
77
+ $form-check-input-radio-disabled-background-url-dark: forms-fn.get-background-svg-stroke(
78
+ 'circle',
79
+ color.$white-alpha-80,
80
+ $form-check-input-disabled-svg-stroke-circle-pattern,
81
+ initial,
82
+ $form-check-input-disabled-svg-border-width
83
+ );
84
+ $form-check-input-radio-disabled-background-url-hcm: forms-fn.get-background-svg-stroke(
85
+ 'circle',
86
+ 'GrayText',
87
+ $form-check-input-disabled-svg-stroke-circle-pattern,
88
+ initial,
89
+ $form-check-input-disabled-svg-border-width
90
+ );
17
91
 
18
92
  $form-switch-column-gap: spacing.$size-regular !default;
19
93
  $form-switch-height: spacing.$size-big !default;
@@ -13,10 +13,25 @@ $form-select-indicator-disabled: url(icons.get-colored-svg-url(
13
13
  '2113',
14
14
  $form-select-disabled-color
15
15
  )) !default;
16
- $form-select-indicator-success: url(icons.get-colored-svg-url(
17
- '2105',
18
- color.$success-green
19
- )) !default;
20
- $form-select-indicator-error: url(icons.get-colored-svg-url('2104', color.$error-red)) !default;
21
16
  $form-select-indicator-hcm-dark: url(icons.get-colored-svg-url('2113', color.$white)) !default;
22
17
  $form-select-indicator-hcm-light: url(icons.get-colored-svg-url('2113', color.$black)) !default;
18
+
19
+ $form-select-indicator-success: url(icons.get-colored-svg-url('2105', color.$success)) !default;
20
+ $form-select-indicator-success-hcm-dark: url(icons.get-colored-svg-url(
21
+ '2105',
22
+ color.$white
23
+ )) !default;
24
+ $form-select-indicator-success-hcm-light: url(icons.get-colored-svg-url(
25
+ '2105',
26
+ color.$black
27
+ )) !default;
28
+
29
+ $form-select-indicator-error: url(icons.get-colored-svg-url('2104', color.$error)) !default;
30
+ $form-select-indicator-error-hcm-dark: url(icons.get-colored-svg-url(
31
+ '2104',
32
+ color.$white
33
+ )) !default;
34
+ $form-select-indicator-error-hcm-light: url(icons.get-colored-svg-url(
35
+ '2104',
36
+ color.$black
37
+ )) !default;
@@ -3,29 +3,37 @@
3
3
  @use './../type';
4
4
  @use './../components/button';
5
5
  @use './../components/forms';
6
+ @use './../../functions/icons';
6
7
 
7
8
  // Bootstrap variables
8
9
  $form-feedback-margin-top: 0 !default;
9
10
  $form-feedback-font-size: type.$font-size-12 !default;
10
11
  $form-feedback-valid-color: color.$gray-60 !default;
11
12
  $form-feedback-invalid-color: color.$error !default;
12
- $form-feedback-icon-valid: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(0%25,50.588235%25,22.745098%25);fill-opacity:1;' d='M 9.5 18.398438 L 3.800781 12.699219 L 5.199219 11.300781 L 9.5 15.597656 L 18.800781 6.300781 L 20.199219 7.699219 Z M 9.5 18.398438 '/%3E%3C/g%3E%3C/svg%3E%0A") !default;
13
- $form-feedback-icon-invalid: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(64.705882%25,9.019608%25,15.686275%25);fill-opacity:1;' d='M 11 3 L 13 3 L 13 17 L 11 17 Z M 11 3 '/%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(64.705882%25,9.019608%25,15.686275%25);fill-opacity:1;' d='M 11 19 L 13 19 L 13 21 L 11 21 Z M 11 19 '/%3E%3C/g%3E%3C/svg%3E%0A") !default;
13
+ $form-feedback-icon-valid: url(icons.get-colored-svg-url('2105', color.$success)) !default;
14
+ $form-feedback-icon-valid-hcm-dark: url(icons.get-colored-svg-url('2105', color.$white)) !default;
15
+ $form-feedback-icon-valid-hcm-light: url(icons.get-colored-svg-url('2105', color.$black)) !default;
16
+ $form-feedback-icon-invalid: url(icons.get-colored-svg-url('2104', color.$error)) !default;
17
+ $form-feedback-icon-invalid-hcm-dark: url(icons.get-colored-svg-url('2104', color.$white)) !default;
18
+ $form-feedback-icon-invalid-hcm-light: url(icons.get-colored-svg-url(
19
+ '2104',
20
+ color.$black
21
+ )) !default;
14
22
 
15
23
  // Design System custom variables
16
24
  $form-feedback-padding-x: button.$input-btn-padding-x !default;
17
25
  $form-feedback-padding-y: 0.5 * button.$input-btn-padding-x !default;
18
26
  $form-feedback-icon-size: 2rem !default; // Equals 24pt [svg-size]
19
27
  $form-feedback-icon-offset: spacing.$size-mini !default;
20
- $form-feedback-valid-bg: color.$success-green !default;
28
+ $form-feedback-valid-bg: color.$success !default;
21
29
  $form-feedback-valid-text: color.$white !default;
22
30
  $form-feedback-invalid-bg: color.$error !default;
23
31
  $form-feedback-invalid-text: color.$white !default;
24
- $form-feedback-custom-color: color.$success-green !default;
25
- $form-feedback-custom-bg: color.$success-green !default;
32
+ $form-feedback-custom-color: color.$success !default;
33
+ $form-feedback-custom-bg: color.$success !default;
26
34
  $form-feedback-invalid-box-shadow: 0 0 0 forms.$input-focus-width
27
35
  rgba($form-feedback-invalid-color, 0.25) !default;
28
36
  $form-feedback-valid-box-shadow: 0 0 0 forms.$input-focus-width
29
- rgba($form-feedback-valid-color, 0.25) !default;
37
+ rgba($form-feedback-valid-color, 0.25) !default;
30
38
  $form-feedback-custom-text: color.$white !default;
31
39
  $form-feedback-custom-box-shadow: 0 0 0 0.2rem rgba($form-feedback-custom-color, 0.25) !default;
@@ -4,6 +4,7 @@
4
4
  @forward 'button';
5
5
  @forward 'card';
6
6
  @forward 'carousel';
7
+ @forward 'chip';
7
8
  @forward 'close';
8
9
  @forward 'datepicker';
9
10
  @forward 'dropdowns';
@@ -24,5 +25,6 @@
24
25
  @forward 'spinners';
25
26
  @forward 'subnavigation';
26
27
  @forward 'tables';
28
+ @forward 'tag';
27
29
  @forward 'thumbnails';
28
30
  @forward 'tooltips';
@@ -13,7 +13,7 @@ $list-group-border-radius: 0 !default;
13
13
  $list-group-item-padding-y: map.get(spacing.$post-sizes, 'small-regular') !default;
14
14
  $list-group-item-padding-x: map.get(spacing.$post-sizes, 'large') !default;
15
15
 
16
- $list-group-hover-bg: color.$gray-background-light !default;
16
+ $list-group-hover-bg: color.$light !default;
17
17
  $list-group-hover-bg-inverted: color.$white !default;
18
18
  $list-group-active-color: color.$white !default;
19
19
  $list-group-active-bg: color.$gray-80 !default;
@@ -73,12 +73,13 @@ $notification-variants: () !default;
73
73
  $notification-variants: list.join(
74
74
  $notification-variants,
75
75
  (
76
- 'primary' color.$gray-80 3134,
77
- 'success' color.$success-green 2105,
78
- 'danger' color.$error 2104,
76
+ // When changed, check $notification-variants as well in packages/styles/src/variables/_color.scss
77
+ 'primary' color.$primary 3134,
78
+ 'success' color.$success 2105,
79
79
  'warning' color.$warning 2104,
80
+ 'danger' color.$error 2104,
80
81
  'info' color.$info 2106,
81
- 'gray' color.$gray-background 2201,
82
+ 'gray' color.$gray 2201,
82
83
  // deprecated
83
84
  'notification' color.$gray-80 3134,
84
85
  'error' color.$error 2104
@@ -23,7 +23,7 @@ $pagination-focus-box-shadow: button.$input-btn-focus-box-shadow !default;
23
23
  $pagination-focus-outline: 0 !default;
24
24
 
25
25
  $pagination-hover-color: color.$black !default;
26
- $pagination-hover-bg: color.$gray-background-light !default;
26
+ $pagination-hover-bg: color.$light !default;
27
27
  $pagination-hover-border-color: color.$gray-10 !default;
28
28
 
29
29
  $pagination-active-color: color.$black !default;
@@ -31,7 +31,7 @@ $pagination-active-bg: color.$yellow !default;
31
31
  $pagination-active-border-color: color.$yellow !default;
32
32
 
33
33
  $pagination-disabled-color: color.$gray-40 !default;
34
- $pagination-disabled-bg: color.$gray-background-light !default;
34
+ $pagination-disabled-bg: color.$light !default;
35
35
  $pagination-disabled-border-color: color.$gray-10 !default;
36
36
 
37
37
  $pagination-height-border: $pagination-border-width * 2 !default;
@@ -7,7 +7,7 @@
7
7
  // Subnavigation
8
8
 
9
9
  $subnavigation-background-color: color.$white;
10
- $subnavigation-background-color-alternate: color.$gray-background-light;
10
+ $subnavigation-background-color-alternate: color.$light;
11
11
 
12
12
  $subnavigation-border-bottom-width: commons.$border-width;
13
13
  $subnavigation-border-bottom-color: color.$gray-10;
@@ -0,0 +1,27 @@
1
+ @use './../color' as color;
2
+ @use './../spacing' as spacing;
3
+ @use './../type' as type;
4
+ @use '../../functions/sizing' as sizing;
5
+
6
+ $tag-gap: spacing.$size-micro;
7
+ $tag-padding-y: 0;
8
+ $tag-padding-x: spacing.$size-mini;
9
+ $tag-max-width: sizing.px-to-rem(296);
10
+ $tag-border-width: spacing.$size-hair;
11
+ $tag-border-radius: spacing.$size-micro;
12
+ $tag-font-size: type.$font-size-16;
13
+ $tag-line-height: spacing.$size-big - (sizing.px-to-rem($tag-border-width) * 2);
14
+ $tag-icon-size: $tag-font-size * 1.25;
15
+
16
+ $tag-sm-line-height: spacing.$size-large;
17
+ $tag-sm-icon-size: $tag-font-size;
18
+
19
+ $tag-default-background: color.$gray-10;
20
+ $tag-backgrounds: (
21
+ 'white': color.$white,
22
+ 'yellow': color.$yellow,
23
+ 'success': color.$success,
24
+ 'warning': color.$warning,
25
+ 'danger': color.$error,
26
+ 'info': color.$info,
27
+ );
@@ -1,31 +0,0 @@
1
- @use './../variables/components/badge';
2
- @use './../mixins/utilities';
3
-
4
- @mixin badge-hover-state {
5
- color: badge.$badge-hover-color;
6
- background-color: badge.$badge-hover-bg-color;
7
- border-color: transparent;
8
-
9
- @include utilities.high-contrast-mode() {
10
- background-color: Highlight;
11
- border-color: Highlight;
12
- color: HighlightText;
13
- forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
14
- }
15
- }
16
-
17
- @mixin badge-active-state {
18
- color: badge.$badge-active-color;
19
- background-color: badge.$badge-active-bg-color;
20
- border-color: transparent;
21
-
22
- > .badge {
23
- background-color: badge.$badge-nested-active-bg-color;
24
- }
25
-
26
- @include utilities.high-contrast-mode() {
27
- background-color: SelectedItem;
28
- color: SelectedItemText;
29
- forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
30
- }
31
- }