@stackoverflow/stacks 2.5.3 → 2.5.5

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 (101) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +180 -180
  3. package/dist/css/stacks.css +104 -122
  4. package/dist/css/stacks.min.css +1 -1
  5. package/lib/atomic/border.less +139 -139
  6. package/lib/atomic/color.less +36 -36
  7. package/lib/atomic/flex.less +426 -426
  8. package/lib/atomic/gap.less +44 -44
  9. package/lib/atomic/grid.less +139 -139
  10. package/lib/atomic/misc.less +374 -374
  11. package/lib/atomic/spacing.less +98 -98
  12. package/lib/atomic/typography.less +264 -264
  13. package/lib/atomic/width-height.less +194 -194
  14. package/lib/base/body.less +44 -44
  15. package/lib/base/configuration-static.less +61 -61
  16. package/lib/base/fieldset.less +5 -5
  17. package/lib/base/icon.less +11 -11
  18. package/lib/base/internal.less +220 -220
  19. package/lib/base/reset-meyer.less +64 -64
  20. package/lib/base/reset-normalize.less +449 -449
  21. package/lib/base/reset.less +20 -20
  22. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  23. package/lib/components/anchor/anchor.less +78 -68
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/badge/badge.less +258 -258
  27. package/lib/components/banner/banner.less +44 -44
  28. package/lib/components/banner/banner.ts +149 -149
  29. package/lib/components/block-link/block-link.less +82 -82
  30. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  31. package/lib/components/button/button.less +473 -473
  32. package/lib/components/button-group/button-group.less +82 -82
  33. package/lib/components/card/card.less +37 -37
  34. package/lib/components/check-control/check-control.less +17 -17
  35. package/lib/components/check-group/check-group.less +19 -19
  36. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  37. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  38. package/lib/components/code-block/code-block.less +116 -116
  39. package/lib/components/description/description.less +9 -9
  40. package/lib/components/empty-state/empty-state.less +16 -16
  41. package/lib/components/expandable/expandable.less +118 -118
  42. package/lib/components/expandable/expandable.ts +238 -238
  43. package/lib/components/input-fill/input-fill.less +35 -35
  44. package/lib/components/input-icon/input-icon.less +45 -45
  45. package/lib/components/input-message/input-message.less +49 -49
  46. package/lib/components/input_textarea/input_textarea.less +150 -150
  47. package/lib/components/label/label.less +110 -110
  48. package/lib/components/link/link.less +135 -120
  49. package/lib/components/link-preview/link-preview.less +148 -148
  50. package/lib/components/menu/menu.less +41 -41
  51. package/lib/components/modal/modal.less +118 -118
  52. package/lib/components/modal/modal.ts +383 -383
  53. package/lib/components/navigation/navigation.less +136 -136
  54. package/lib/components/navigation/navigation.ts +128 -128
  55. package/lib/components/notice/notice.less +195 -195
  56. package/lib/components/page-title/page-title.less +51 -51
  57. package/lib/components/pagination/pagination.less +65 -65
  58. package/lib/components/popover/popover.less +159 -157
  59. package/lib/components/popover/popover.ts +651 -651
  60. package/lib/components/popover/tooltip.ts +343 -343
  61. package/lib/components/post-summary/post-summary.less +457 -447
  62. package/lib/components/progress-bar/progress-bar.less +291 -291
  63. package/lib/components/prose/prose.less +452 -452
  64. package/lib/components/select/select.less +138 -138
  65. package/lib/components/sidebar-widget/sidebar-widget.less +257 -257
  66. package/lib/components/spinner/spinner.less +103 -103
  67. package/lib/components/table/table.less +307 -307
  68. package/lib/components/table/table.ts +296 -296
  69. package/lib/components/table-container/table-container.less +4 -4
  70. package/lib/components/tag/tag.less +186 -186
  71. package/lib/components/toast/toast.less +35 -35
  72. package/lib/components/toast/toast.ts +357 -357
  73. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  74. package/lib/components/topbar/topbar.less +553 -553
  75. package/lib/components/uploader/uploader.less +205 -205
  76. package/lib/components/uploader/uploader.ts +207 -207
  77. package/lib/components/user-card/user-card.less +129 -129
  78. package/lib/controllers.ts +33 -33
  79. package/lib/exports/color-mixins.less +283 -283
  80. package/lib/exports/color-sets.less +711 -711
  81. package/lib/exports/color.less +65 -65
  82. package/lib/exports/constants-helpers.less +108 -108
  83. package/lib/exports/constants-type.less +155 -155
  84. package/lib/exports/exports.less +15 -15
  85. package/lib/exports/mixins.less +333 -333
  86. package/lib/exports/spacing-mixins.less +67 -67
  87. package/lib/index.ts +32 -32
  88. package/lib/input-utils.less +41 -41
  89. package/lib/stacks-dynamic.less +24 -24
  90. package/lib/stacks-static.less +93 -93
  91. package/lib/stacks.less +13 -13
  92. package/lib/stacks.ts +113 -113
  93. package/lib/test/a11y-test-utils.ts +94 -94
  94. package/lib/test/assertions.ts +36 -36
  95. package/lib/test/less-test-utils.ts +28 -28
  96. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  97. package/lib/test/test-utils.ts +364 -364
  98. package/lib/test/visual-test-utils.ts +58 -58
  99. package/lib/tsconfig.build.json +4 -4
  100. package/lib/tsconfig.json +17 -17
  101. package/package.json +115 -115
@@ -1,20 +1,20 @@
1
- // the default CSS reset is normalize.css; other possibilities are the Eric Meyer reset, and no reset at all.
2
-
3
- #stacks-internals() {
4
- #include-css-reset(meyer) {
5
- @import "reset-meyer.less";
6
- }
7
- #include-css-reset(normalize) {
8
- @import "reset-normalize.less";
9
- }
10
- /* stylelint-disable block-no-empty */
11
- #include-css-reset(none) {
12
- }
13
- /* stylelint-enable */
14
- }
15
-
16
- & {
17
- #stacks-internals #load-static-config();
18
- #stacks-internals #include-css-reset(@css-reset);
19
- }
20
-
1
+ // the default CSS reset is normalize.css; other possibilities are the Eric Meyer reset, and no reset at all.
2
+
3
+ #stacks-internals() {
4
+ #include-css-reset(meyer) {
5
+ @import "reset-meyer.less";
6
+ }
7
+ #include-css-reset(normalize) {
8
+ @import "reset-normalize.less";
9
+ }
10
+ /* stylelint-disable block-no-empty */
11
+ #include-css-reset(none) {
12
+ }
13
+ /* stylelint-enable */
14
+ }
15
+
16
+ & {
17
+ #stacks-internals #load-static-config();
18
+ #stacks-internals #include-css-reset(@css-reset);
19
+ }
20
+
@@ -1,53 +1,53 @@
1
- .s-activity-indicator {
2
- --_ai-translucent: var(--translucent-secondary);
3
- --_ai-bg: var(--theme-secondary-400);
4
- --_ai-fc: var(--white);
5
-
6
- .highcontrast-mode({
7
- --_ai-bg: var(--theme-secondary-500);
8
- });
9
-
10
- // VARIANTS
11
- &&__danger {
12
- --_ai-bg: var(--red-400);
13
- --_ai-translucent: var(--translucent-error);
14
-
15
- .highcontrast-mode({
16
- --_ai-bg: var(--red-500);
17
- });
18
- }
19
-
20
- &&__success {
21
- --_ai-bg: var(--green-400);
22
- --_ai-translucent: var(--translucent-success);
23
-
24
- .highcontrast-mode({
25
- --_ai-bg: var(--green-500);
26
- });
27
- }
28
-
29
- &&__warning {
30
- --_ai-bg: var(--yellow-400);
31
- --_ai-fc: var(--_black-static);
32
- --_ai-translucent: var(--translucent-warning);
33
-
34
- .highcontrast-mode({
35
- --_ai-bg: var(--yellow-500); // needs to be here to override default high contrast
36
- --_ai-fc: var(--white);
37
- });
38
- }
39
-
40
- background-color: var(--_ai-bg);
41
- box-shadow: 0 0 0 var(--su-static4) var(--_ai-translucent);
42
- color: var(--_ai-fc);
43
-
44
- border-radius: 1000px;
45
- display: inline-block;
46
- font-size: var(--fs-fine);
47
- font-weight: 700;
48
- line-height: 1.1; // Custom line-height to satisfy 1x screens
49
- min-width: var(--su-static12);
50
- min-height: var(--su-static12);
51
- padding: var(--su2) var(--su4);
52
- text-transform: uppercase;
53
- }
1
+ .s-activity-indicator {
2
+ --_ai-translucent: var(--translucent-secondary);
3
+ --_ai-bg: var(--theme-secondary-400);
4
+ --_ai-fc: var(--white);
5
+
6
+ .highcontrast-mode({
7
+ --_ai-bg: var(--theme-secondary-500);
8
+ });
9
+
10
+ // VARIANTS
11
+ &&__danger {
12
+ --_ai-bg: var(--red-400);
13
+ --_ai-translucent: var(--translucent-error);
14
+
15
+ .highcontrast-mode({
16
+ --_ai-bg: var(--red-500);
17
+ });
18
+ }
19
+
20
+ &&__success {
21
+ --_ai-bg: var(--green-400);
22
+ --_ai-translucent: var(--translucent-success);
23
+
24
+ .highcontrast-mode({
25
+ --_ai-bg: var(--green-500);
26
+ });
27
+ }
28
+
29
+ &&__warning {
30
+ --_ai-bg: var(--yellow-400);
31
+ --_ai-fc: var(--_black-static);
32
+ --_ai-translucent: var(--translucent-warning);
33
+
34
+ .highcontrast-mode({
35
+ --_ai-bg: var(--yellow-500); // needs to be here to override default high contrast
36
+ --_ai-fc: var(--white);
37
+ });
38
+ }
39
+
40
+ background-color: var(--_ai-bg);
41
+ box-shadow: 0 0 0 var(--su-static4) var(--_ai-translucent);
42
+ color: var(--_ai-fc);
43
+
44
+ border-radius: 1000px;
45
+ display: inline-block;
46
+ font-size: var(--fs-fine);
47
+ font-weight: 700;
48
+ line-height: 1.1; // Custom line-height to satisfy 1x screens
49
+ min-width: var(--su-static12);
50
+ min-height: var(--su-static12);
51
+ padding: var(--su2) var(--su4);
52
+ text-transform: uppercase;
53
+ }
@@ -1,68 +1,78 @@
1
- .s-anchors {
2
- // CUSTOM PROPERTIED DEFINED WITHIN VARIANTS
3
- // --_an-a-fc
4
- // --_an-a-fc-hover
5
- --_an-a-fc-visited: var(--_an-a-fc);
6
-
7
- // MODIFIERS
8
- &&__underlined {
9
- a:not(.s-link),
10
- .s-btn.s-btn__link {
11
- text-decoration: underline;
12
- }
13
- }
14
-
15
- // VARIANTS
16
- &&__danger {
17
- --_an-a-fc: var(--red-400);
18
- --_an-a-fc-hover: var(--red-500);
19
- --_an-a-fc-visited: var(--red-600);
20
- }
21
-
22
- &&__default {
23
- --_an-a-fc: var(--theme-link-color, var(--theme-secondary-400));
24
- --_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
25
- --_an-a-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-600));
26
- }
27
-
28
- &&__grayscale {
29
- --_an-a-fc: var(--black-500);
30
- --_an-a-fc-hover: var(--black-600);
31
- --_an-a-fc-visited: var(--black-400);
32
- }
33
-
34
- &&__inherit {
35
- --_an-a-fc: inherit;
36
- --_an-a-fc-hover: inherit;
37
- --_an-a-fc-visited: inherit;
38
- }
39
-
40
- &&__muted {
41
- --_an-a-fc: var(--black-400);
42
- --_an-a-fc-hover: var(--black-500);
43
- --_an-a-fc-visited: var(--black-600);
44
- }
45
-
46
- &&__danger,
47
- &&__default,
48
- &&__grayscale,
49
- &&__inherit,
50
- &&__muted {
51
- a:not(.s-link),
52
- .s-btn.s-btn__link {
53
- color: var(--_an-a-fc, inherit);
54
-
55
- &:hover,
56
- &:active {
57
- &,
58
- &:visited {
59
- color: var(--_an-a-fc-hover);
60
- }
61
- }
62
-
63
- &:visited {
64
- color: var(--_an-a-fc-visited, inherit);
65
- }
66
- }
67
- }
68
- }
1
+ .s-anchors {
2
+ // CUSTOM PROPERTIED DEFINED WITHIN VARIANTS
3
+ // --_an-a-fc
4
+ // --_an-a-fc-hover
5
+ // --_an-a-fc-visited
6
+ // --_an-a-fc-hover-visited
7
+
8
+ // MODIFIERS
9
+ &&__underlined {
10
+ a:not(.s-link),
11
+ .s-btn.s-btn__link {
12
+ text-decoration: underline;
13
+ }
14
+ }
15
+
16
+ // VARIANTS
17
+ &&__danger,
18
+ &&__grayscale,
19
+ &&__inherit,
20
+ &&__muted {
21
+ --_an-a-fc-hover-visited: var(--_an-a-fc-hover);
22
+ }
23
+
24
+ &&__danger {
25
+ --_an-a-fc: var(--red-400);
26
+ --_an-a-fc-hover: var(--red-500);
27
+ --_an-a-fc-visited: var(--red-600);
28
+ }
29
+
30
+ &&__default {
31
+ --_an-a-fc: var(--theme-link-color, var(--theme-secondary-400));
32
+ --_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-500));
33
+ --_an-a-fc-visited: var(--theme-link-color-visited, var(--purple-500));
34
+ --_an-a-fc-hover-visited: var(--theme-link-color-hover, var(--purple-600));
35
+ }
36
+
37
+ &&__grayscale {
38
+ --_an-a-fc: var(--black-500);
39
+ --_an-a-fc-hover: var(--black-600);
40
+ --_an-a-fc-visited: var(--black-400);
41
+ }
42
+
43
+ &&__inherit {
44
+ --_an-a-fc: inherit;
45
+ --_an-a-fc-hover: inherit;
46
+ --_an-a-fc-visited: inherit;
47
+ }
48
+
49
+ &&__muted {
50
+ --_an-a-fc: var(--black-400);
51
+ --_an-a-fc-hover: var(--black-500);
52
+ --_an-a-fc-visited: var(--black-600);
53
+ }
54
+
55
+ &&__danger,
56
+ &&__default,
57
+ &&__grayscale,
58
+ &&__inherit,
59
+ &&__muted {
60
+ a:not(.s-link),
61
+ .s-btn.s-btn__link {
62
+ &:active,
63
+ &:hover {
64
+ color: var(--_an-a-fc-hover);
65
+ }
66
+
67
+ color: var(--_an-a-fc, inherit);
68
+ }
69
+
70
+ a:not(.s-link):visited {
71
+ &:hover {
72
+ color: var(--_an-a-fc-hover-visited, inherit);
73
+ }
74
+
75
+ color: var(--_an-a-fc-visited, inherit);
76
+ }
77
+ }
78
+ }
@@ -1,108 +1,108 @@
1
- .s-avatar {
2
- --_av-size: var(--su-static16);
3
- --_av-bg: var(--_white-static); // Force a white background color for when we have transparent avatars
4
- --_av-br: var(--br-sm);
5
- --_av-fs-letter: calc(var(--su-static12) - var(--su-static1));
6
- --_av-scale-badge: 1;
7
-
8
- // CONTEXTUAL STYLES
9
- .highcontrast-mode({
10
- .s-avatar--letter {
11
- color: var(--white);
12
- }
13
-
14
- background-color: var(--black);
15
- box-shadow: 0 0 0 var(--su-static1) var(--black);
16
- color: var(--white);
17
- });
18
-
19
- // MODIFIERS
20
- // Sizes
21
- &&__32,
22
- &&__48 {
23
- --_av-br: var(--br-md);
24
- }
25
-
26
- &&__96,
27
- &&__128 {
28
- --_av-br: calc(var(--br-lg) + var(--br-sm));
29
- --_av-scale-badge: 3;
30
- }
31
-
32
- &&__24 {
33
- --_av-size: var(--su-static24);
34
- --_av-fs-letter: var(--su-static16);
35
- --_av-scale-badge: 1.1;
36
- }
37
-
38
- &&__32 {
39
- --_av-size: var(--su-static32);
40
- --_av-fs-letter: calc(var(--su-static24) - var(--su-static2));
41
- --_av-scale-badge: 1.3;
42
- }
43
-
44
- &&__48 {
45
- --_av-size: var(--su-static48);
46
- --_av-fs-letter: calc(var(--su-static32) + var(--su-static2));
47
- --_av-scale-badge: 1.6;
48
- }
49
-
50
- &&__64 {
51
- --_av-size: var(--su-static64);
52
- --_av-br: var(--br-lg);
53
- --_av-fs-letter: calc(var(--su-static48) - var(--su-static4));
54
- --_av-scale-badge: 2.4;
55
- }
56
-
57
- &&__96 {
58
- --_av-size: var(--su-static96);
59
- --_av-fs-letter: calc(var(--su-static64) + var(--su-static2));
60
- }
61
-
62
- &&__128 {
63
- --_av-size: var(--su-static128);
64
- --_av-fs-letter: calc(var(--su-static96) - var(--su-static8));
65
- }
66
-
67
- // CHILD ELEMENTS
68
- & &--badge {
69
- bottom: calc(var(--su-static4) * -1); // -4px
70
- position: absolute;
71
- right: calc(var(--su-static4) * -1); // -4px
72
- -webkit-transform: scale(var(--_av-scale-badge));
73
- transform: scale(var(--_av-scale-badge));
74
- }
75
-
76
- & &--image {
77
- border-radius: var(--_av-br);
78
- display: block;
79
- height: var(--_av-size);
80
- width: var(--_av-size);
81
- }
82
-
83
- & &--letter {
84
- color: var(--_white-static); // Force a light appearance of text rendering
85
- display: block; // Make sure we're treating the letter as a block-level element
86
- font-size: var(--_av-fs-letter); // Force a font size so the avatar text doesn't get smaller as the window resizes
87
- font-weight: bold;
88
- line-height: 1.4; // Guards against some line-height trolling from the parent
89
- text-align: center;
90
- text-transform: uppercase; // Force uppercase in avatars when team name is lowercase
91
- // We don't need text selection on our letter
92
- -webkit-user-select: none;
93
- -moz-user-select: none;
94
- -ms-user-select: none;
95
- user-select: none;
96
- }
97
-
98
- background-color: var(--_av-bg);
99
- border-radius: var(--_av-br);
100
- height: var(--_av-size);
101
- width: var(--_av-size);
102
-
103
- background-repeat: no-repeat;
104
- background-size: 100%;
105
- display: inline-block; // Make sure the avatar has structure regardless of the element eg. span vs. div
106
- position: relative;
107
- vertical-align: bottom; // Make our avatars play more nicely with text next to it.
108
- }
1
+ .s-avatar {
2
+ --_av-size: var(--su-static16);
3
+ --_av-bg: var(--_white-static); // Force a white background color for when we have transparent avatars
4
+ --_av-br: var(--br-sm);
5
+ --_av-fs-letter: calc(var(--su-static12) - var(--su-static1));
6
+ --_av-scale-badge: 1;
7
+
8
+ // CONTEXTUAL STYLES
9
+ .highcontrast-mode({
10
+ .s-avatar--letter {
11
+ color: var(--white);
12
+ }
13
+
14
+ background-color: var(--black);
15
+ box-shadow: 0 0 0 var(--su-static1) var(--black);
16
+ color: var(--white);
17
+ });
18
+
19
+ // MODIFIERS
20
+ // Sizes
21
+ &&__32,
22
+ &&__48 {
23
+ --_av-br: var(--br-md);
24
+ }
25
+
26
+ &&__96,
27
+ &&__128 {
28
+ --_av-br: calc(var(--br-lg) + var(--br-sm));
29
+ --_av-scale-badge: 3;
30
+ }
31
+
32
+ &&__24 {
33
+ --_av-size: var(--su-static24);
34
+ --_av-fs-letter: var(--su-static16);
35
+ --_av-scale-badge: 1.1;
36
+ }
37
+
38
+ &&__32 {
39
+ --_av-size: var(--su-static32);
40
+ --_av-fs-letter: calc(var(--su-static24) - var(--su-static2));
41
+ --_av-scale-badge: 1.3;
42
+ }
43
+
44
+ &&__48 {
45
+ --_av-size: var(--su-static48);
46
+ --_av-fs-letter: calc(var(--su-static32) + var(--su-static2));
47
+ --_av-scale-badge: 1.6;
48
+ }
49
+
50
+ &&__64 {
51
+ --_av-size: var(--su-static64);
52
+ --_av-br: var(--br-lg);
53
+ --_av-fs-letter: calc(var(--su-static48) - var(--su-static4));
54
+ --_av-scale-badge: 2.4;
55
+ }
56
+
57
+ &&__96 {
58
+ --_av-size: var(--su-static96);
59
+ --_av-fs-letter: calc(var(--su-static64) + var(--su-static2));
60
+ }
61
+
62
+ &&__128 {
63
+ --_av-size: var(--su-static128);
64
+ --_av-fs-letter: calc(var(--su-static96) - var(--su-static8));
65
+ }
66
+
67
+ // CHILD ELEMENTS
68
+ & &--badge {
69
+ bottom: calc(var(--su-static4) * -1); // -4px
70
+ position: absolute;
71
+ right: calc(var(--su-static4) * -1); // -4px
72
+ -webkit-transform: scale(var(--_av-scale-badge));
73
+ transform: scale(var(--_av-scale-badge));
74
+ }
75
+
76
+ & &--image {
77
+ border-radius: var(--_av-br);
78
+ display: block;
79
+ height: var(--_av-size);
80
+ width: var(--_av-size);
81
+ }
82
+
83
+ & &--letter {
84
+ color: var(--_white-static); // Force a light appearance of text rendering
85
+ display: block; // Make sure we're treating the letter as a block-level element
86
+ font-size: var(--_av-fs-letter); // Force a font size so the avatar text doesn't get smaller as the window resizes
87
+ font-weight: bold;
88
+ line-height: 1.4; // Guards against some line-height trolling from the parent
89
+ text-align: center;
90
+ text-transform: uppercase; // Force uppercase in avatars when team name is lowercase
91
+ // We don't need text selection on our letter
92
+ -webkit-user-select: none;
93
+ -moz-user-select: none;
94
+ -ms-user-select: none;
95
+ user-select: none;
96
+ }
97
+
98
+ background-color: var(--_av-bg);
99
+ border-radius: var(--_av-br);
100
+ height: var(--_av-size);
101
+ width: var(--_av-size);
102
+
103
+ background-repeat: no-repeat;
104
+ background-size: 100%;
105
+ display: inline-block; // Make sure the avatar has structure regardless of the element eg. span vs. div
106
+ position: relative;
107
+ vertical-align: bottom; // Make our avatars play more nicely with text next to it.
108
+ }
@@ -1,31 +1,31 @@
1
- .s-award-bling {
2
- --_ab-before-bg: unset;
3
-
4
- // VARIANTS
5
- &&__gold {
6
- --_ab-before-bg: var(--gold-300);
7
- }
8
-
9
- &&__silver {
10
- --_ab-before-bg: var(--silver-300);
11
- }
12
-
13
- &&__bronze {
14
- --_ab-before-bg: var(--bronze-300);
15
- }
16
-
17
- // CHILD ELEMENTS
18
- &:before {
19
- background-color: var(--_ab-before-bg);
20
-
21
- border-radius: 100%;
22
- content: "";
23
- margin-right: var(--su4);
24
- height: var(--su8);
25
- width: var(--su8);
26
- }
27
-
28
- align-items: center;
29
- color: inherit;
30
- display: flex;
31
- }
1
+ .s-award-bling {
2
+ --_ab-before-bg: unset;
3
+
4
+ // VARIANTS
5
+ &&__gold {
6
+ --_ab-before-bg: var(--gold-300);
7
+ }
8
+
9
+ &&__silver {
10
+ --_ab-before-bg: var(--silver-300);
11
+ }
12
+
13
+ &&__bronze {
14
+ --_ab-before-bg: var(--bronze-300);
15
+ }
16
+
17
+ // CHILD ELEMENTS
18
+ &:before {
19
+ background-color: var(--_ab-before-bg);
20
+
21
+ border-radius: 100%;
22
+ content: "";
23
+ margin-right: var(--su4);
24
+ height: var(--su8);
25
+ width: var(--su8);
26
+ }
27
+
28
+ align-items: center;
29
+ color: inherit;
30
+ display: flex;
31
+ }