@stackoverflow/stacks 3.0.0-beta.23 → 3.0.0-beta.25

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 (72) hide show
  1. package/dist/css/stacks.css +16797 -17011
  2. package/dist/css/stacks.min.css +1 -1
  3. package/lib/atomic/backgrounds.less +67 -0
  4. package/lib/atomic/border-radius.less +38 -0
  5. package/lib/atomic/borders.less +73 -0
  6. package/lib/atomic/box-shadow.less +29 -0
  7. package/lib/atomic/box-sizing.less +3 -0
  8. package/lib/atomic/current-color.less +2 -0
  9. package/lib/atomic/cursors.less +8 -0
  10. package/lib/atomic/display.less +15 -0
  11. package/lib/atomic/floats.less +20 -0
  12. package/lib/atomic/gap.less +2 -0
  13. package/lib/atomic/grid.less +2 -0
  14. package/lib/atomic/interactivity.less +45 -0
  15. package/lib/atomic/lists.less +29 -0
  16. package/lib/atomic/{spacing.less → margin.less} +0 -10
  17. package/lib/atomic/object-fit.less +9 -0
  18. package/lib/atomic/opacity.less +54 -0
  19. package/lib/atomic/outline.less +11 -0
  20. package/lib/atomic/overflow.less +17 -0
  21. package/lib/atomic/padding.less +12 -0
  22. package/lib/atomic/positioning.less +7 -0
  23. package/lib/atomic/sizing.less +3 -28
  24. package/lib/atomic/transitions.less +20 -0
  25. package/lib/atomic/truncation.less +58 -0
  26. package/lib/atomic/typography.less +19 -124
  27. package/lib/atomic/vertical-alignment.less +9 -0
  28. package/lib/atomic/visibility.less +18 -0
  29. package/lib/atomic/z-index.less +12 -0
  30. package/lib/base/reset-normalize.less +2 -2
  31. package/lib/components/activity-indicator/activity-indicator.less +3 -3
  32. package/lib/components/anchor/anchor.less +28 -39
  33. package/lib/components/avatar/avatar.less +17 -16
  34. package/lib/components/badge/badge.less +14 -4
  35. package/lib/components/banner/banner.less +1 -1
  36. package/lib/components/button/button.less +7 -7
  37. package/lib/components/button-group/button-group.less +2 -2
  38. package/lib/components/card/card.less +1 -1
  39. package/lib/components/checkbox_radio/checkbox_radio.less +3 -3
  40. package/lib/components/code-block/code-block.less +1 -2
  41. package/lib/components/description/description.less +2 -1
  42. package/lib/components/form-group/form-group.less +14 -1
  43. package/lib/components/input-fill/input-fill.less +3 -3
  44. package/lib/components/input-icon/input-icon.less +2 -2
  45. package/lib/components/input-message/input-message.less +1 -0
  46. package/lib/components/input_textarea/input_textarea.less +2 -2
  47. package/lib/components/label/label.less +12 -56
  48. package/lib/components/link/link.less +44 -98
  49. package/lib/components/link-preview/link-preview.less +5 -13
  50. package/lib/components/menu/menu.less +9 -1
  51. package/lib/components/navigation/navigation.less +7 -1
  52. package/lib/components/notice/notice.less +1 -1
  53. package/lib/components/page-title/page-title.less +1 -1
  54. package/lib/components/pagination/pagination.less +11 -4
  55. package/lib/components/popover/popover.less +2 -2
  56. package/lib/components/post-summary/post-summary.less +6 -1
  57. package/lib/components/progress-bar/progress-bar.less +17 -17
  58. package/lib/components/prose/prose.less +35 -9
  59. package/lib/components/select/select.less +26 -10
  60. package/lib/components/table/table.less +48 -14
  61. package/lib/components/tag/tag.less +15 -5
  62. package/lib/components/toggle-switch/toggle-switch.less +15 -19
  63. package/lib/components/topbar/topbar.less +13 -13
  64. package/lib/components/uploader/uploader.less +5 -5
  65. package/lib/components/user-card/user-card.less +14 -3
  66. package/lib/exports/constants-helpers.less +6 -6
  67. package/lib/exports/mixins.less +27 -278
  68. package/lib/stacks-static.less +41 -20
  69. package/package.json +1 -1
  70. package/lib/atomic/border.less +0 -121
  71. package/lib/atomic/misc.less +0 -380
  72. package/lib/components/block-link/block-link.less +0 -82
@@ -1,121 +0,0 @@
1
- #stacks-internals #responsify('.ba', { .bas-solid; .baw1; });
2
- #stacks-internals #responsify('.bt', { .bts-solid; .btw1; });
3
- #stacks-internals #responsify('.br', { .brs-solid; .brw1; });
4
- #stacks-internals #responsify('.bb', { .bbs-solid; .bbw1; });
5
- #stacks-internals #responsify('.bl', { .bls-solid; .blw1; });
6
- .bx { .bls-solid; .brs-solid; .bxw1; }
7
- .by { .bts-solid; .bbs-solid; .byw1; }
8
-
9
- // ============================================================================
10
- // $ WIDTH
11
- // ----------------------------------------------------------------------------
12
- // $$ All Sides
13
- #stacks-internals #responsify('.baw0', { border-width: 0 !important; });
14
- .baw1 { border-width: var(--su-static1) !important; }
15
- .baw2 { border-width: var(--su-static2) !important; }
16
- .baw3 { border-width: var(--su-static4) !important; }
17
-
18
- // $$ Top Border
19
- #stacks-internals #responsify('.btw0', { border-top-width: 0 !important; });
20
- .btw1 { border-top-width: var(--su-static1) !important; }
21
- .btw2 { border-top-width: var(--su-static2) !important; }
22
- .btw3 { border-top-width: var(--su-static4) !important; }
23
-
24
- // $$ Right Border
25
- #stacks-internals #responsify('.brw0', { border-right-width: 0 !important; });
26
- .brw1 { border-right-width: var(--su-static1) !important; }
27
- .brw2 { border-right-width: var(--su-static2) !important; }
28
- .brw3 { border-right-width: var(--su-static4) !important; }
29
-
30
- // $$ Bottom Border
31
- #stacks-internals #responsify('.bbw0', { border-bottom-width: 0 !important; });
32
- .bbw1 { border-bottom-width: var(--su-static1) !important; }
33
- .bbw2 { border-bottom-width: var(--su-static2) !important; }
34
- .bbw3 { border-bottom-width: var(--su-static4) !important; }
35
-
36
- // $$ Left Border
37
- #stacks-internals #responsify('.blw0', { border-left-width: 0 !important; });
38
- .blw0 { border-left-width: 0 !important; }
39
- .blw1 { border-left-width: var(--su-static1) !important; }
40
- .blw2 { border-left-width: var(--su-static2) !important; }
41
- .blw3 { border-left-width: var(--su-static4) !important; }
42
-
43
- // $$ Y-Axis Border
44
- .byw0 { .btw0; .bbw0; }
45
- .byw1 { .btw1; .bbw1; }
46
- .byw2 { .btw2; .bbw2; }
47
- .byw3 { .btw3; .bbw3; }
48
-
49
- // $$ X-Axis Border
50
- .bxw0 { .brw0; .blw0; }
51
- .bxw1 { .brw1; .blw1; }
52
- .bxw2 { .brw2; .blw2; }
53
- .bxw3 { .brw3; .blw3; }
54
-
55
-
56
- // ============================================================================
57
- // $ STYLE
58
- // ============================================================================
59
- // $$ All sides
60
- .bas-solid { border-style: solid !important; }
61
- .bas-dashed { border-style: dashed !important; }
62
-
63
- // $$ Top Border
64
- .bts-solid { border-top-style: solid !important; }
65
- .bts-dashed { border-top-style: dashed !important; }
66
-
67
- // $$ Right Border
68
- .brs-solid { border-right-style: solid !important; }
69
- .brs-dashed { border-right-style: dashed !important; }
70
-
71
- // $$ Bottom Border
72
- .bbs-solid { border-bottom-style: solid !important; }
73
- .bbs-dashed { border-bottom-style: dashed !important; }
74
-
75
- // $$ Left Border
76
- .bls-solid { border-left-style: solid !important; }
77
- .bls-dashed { border-left-style: dashed !important; }
78
-
79
-
80
- // ============================================================================
81
- // $ BORDER RADIUS
82
- // ----------------------------------------------------------------------------
83
- // $$ All Sides
84
- .bar-md { border-radius: var(--br-md) !important; }
85
- .bar-circle { border-radius: var(--br-circle) !important; }
86
- .bar-pill { border-radius: var(--br-pill) !important; }
87
-
88
- // $$ Top Left Corner
89
- .btlr0 { border-top-left-radius: 0 !important; }
90
- .btlr-md { border-top-left-radius: var(--br-md) !important; }
91
-
92
- // $$ Top Right Corner
93
- .btrr0 { border-top-right-radius: 0 !important; }
94
- .btrr-md { border-top-right-radius: var(--br-md) !important; }
95
-
96
- // $$ Bottom Left Corner
97
- .bblr0 { border-bottom-left-radius: 0 !important; }
98
- .bblr-md { border-bottom-left-radius: var(--br-md) !important; }
99
-
100
- // $$ Bottom Right Corner
101
- .bbrr0 { border-bottom-right-radius: 0 !important; }
102
- .bbrr-md { border-bottom-right-radius: var(--br-md) !important; }
103
-
104
- // $$ Top Corners
105
- .btr0 { .btlr0; .btrr0; }
106
- .btr-md { .btlr-md; .btrr-md; }
107
-
108
- // $$ Right Corners
109
- .brr0 { .btrr0; .bbrr0; }
110
- .brr-md { .btrr-md; .bbrr-md; }
111
-
112
- // $$ Bottom Corners
113
- .bbr0 { .bblr0; .bbrr0; }
114
- .bbr-md { .bblr-md; .bbrr-md; }
115
-
116
- // $$ Left Corners
117
- .blr0 { .btlr0; .bblr0; }
118
- .blr-md { .btlr-md; .bblr-md; }
119
-
120
- // $$ All Sides
121
- #stacks-internals #responsify('.bar0', { border-radius: 0 !important; });
@@ -1,380 +0,0 @@
1
- @import (reference) "../base/internal.less";
2
- @import (reference) "../exports/color-mixins.less";
3
- @import (reference) "../exports/constants-helpers.less";
4
- @import (reference) "../exports/mixins.less";
5
-
6
- //
7
- // STACK OVERFLOW
8
- // UTILITIES
9
- //
10
- // This CSS comes from Stacks, our CSS & Pattern library for rapidly building
11
- // Stack Overflow. For documentation of all these classes and how to contribute,
12
- // visit https://stackoverflow.design/
13
- //
14
- // ============================================================================
15
- // $ DISPLAY
16
- // ----------------------------------------------------------------------------
17
-
18
- #stacks-internals #responsify('.d-block', { display: block !important; });
19
- #stacks-internals #responsify('.d-flex', { display: flex !important; });
20
- #stacks-internals #responsify('.d-inline-flex', { display: inline-flex !important; });
21
- #stacks-internals #responsify('.d-grid', { display: grid !important; });
22
- #stacks-internals #responsify('.d-inline-grid', { display: inline-grid !important; });
23
- #stacks-internals #responsify('.d-inline', { display: inline !important; });
24
- #stacks-internals #responsify('.d-inline-block', { display: inline-block !important; });
25
- .d-table { display: table !important; }
26
- .d-table-cell { display: table-cell !important; }
27
- #stacks-internals #responsify('.d-none', { display: none !important; });
28
- .d-unset { display: unset !important; }
29
-
30
- // ============================================================================
31
- // $ BACKGROUND-POSITIONS
32
- // ----------------------------------------------------------------------------
33
- .bg-bottom { background-position: bottom !important; }
34
- .bg-center { background-position: center !important; }
35
- .bg-left { background-position: left !important; }
36
- .bg-left-bottom { background-position: left bottom !important; }
37
- .bg-left-top { background-position: left top !important; }
38
- .bg-right { background-position: right !important; }
39
- .bg-right-bottom { background-position: right bottom !important; }
40
- .bg-right-top { background-position: right top !important; }
41
- .bg-top { background-position: top !important; }
42
-
43
- // ============================================================================
44
- // $ BACKGROUND-REPEATS
45
- // ----------------------------------------------------------------------------
46
- .bg-repeat { background-repeat: repeat !important; }
47
- .bg-no-repeat { background-repeat: no-repeat !important; }
48
- .bg-repeat-x { background-repeat: repeat-x !important; }
49
- .bg-repeat-y { background-repeat: repeat-y !important; }
50
-
51
- // ============================================================================
52
- // $ BACKGROUND-SIZE
53
- // ----------------------------------------------------------------------------
54
- .bg-auto { background-size: auto !important; }
55
- .bg-cover { background-size: cover !important; }
56
- .bg-contain { background-size: contain !important; }
57
-
58
- // ============================================================================
59
- // $ BACKGROUND-ATTACHMENT
60
- // ----------------------------------------------------------------------------
61
- .bg-fixed { background-attachment: fixed !important; }
62
- .bg-local { background-attachment: local !important; }
63
- .bg-scroll { background-attachment: scroll !important; }
64
-
65
- // ============================================================================
66
- // $ BACKGROUND-IMAGE
67
- // ----------------------------------------------------------------------------
68
- .bg-image-none { background-image: none !important; }
69
-
70
- .bg-loading {
71
- animation: loadingBgAnimation 1.5s ease-out infinite;
72
- animation-delay: 1ms;
73
- }
74
-
75
- @keyframes loadingBgAnimation {
76
- 0% {
77
- background-color: var(--black-150);
78
- opacity: 1;
79
- }
80
- 50% {
81
- background-color: var(--black-100);
82
- opacity: 0.7;
83
- }
84
- 100% {
85
- background-color: var(--black-150);
86
- opacity: 1;
87
- }
88
- }
89
-
90
- .bg-confetti-animated {
91
- background-repeat: repeat-x;
92
- background-position: top -10px center;
93
- background-image: url("data:image/svg+xml;,%3Csvg width='600' height='90' viewBox='0 0 600 90' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='42' y='-10' width='6' height='10'/%3E%3Crect x='84' y='-10' width='6' height='10'/%3E%3Crect x='126' y='-13' width='5' height='13'/%3E%3Crect x='168' y='-13' width='5' height='13'/%3E%3Crect x='210' y='-10' width='6' height='10'/%3E%3Crect x='252' y='-13' width='5' height='13'/%3E%3Crect x='294' y='-10' width='6' height='10'/%3E%3Crect x='336' y='-13' width='5' height='13'/%3E%3Crect x='378' y='-13' width='5' height='13'/%3E%3Crect x='420' y='-10' width='6' height='10'/%3E%3Crect x='462' y='-10' width='6' height='10'/%3E%3Crect x='504' y='-13' width='5' height='13'/%3E%3Crect x='546' y='-10' width='6' height='10'/%3E%3Cstyle type='text/css'%3E rect %7B opacity: 0; %7D rect:nth-child(1) %7B transform-origin: 45px 5px; transform: rotate(-145deg); animation: blast 700ms infinite ease-out; animation-delay: 88ms; animation-duration: 631ms; %7D rect:nth-child(2) %7B transform-origin: 87px 5px; transform: rotate(164deg); animation: blast 700ms infinite ease-out; animation-delay: 131ms; animation-duration: 442ms; %7D rect:nth-child(3) %7B transform-origin: 128px 6px; transform: rotate(4deg); animation: blast 700ms infinite ease-out; animation-delay: 92ms; animation-duration: 662ms; %7D rect:nth-child(4) %7B transform-origin: 170px 6px; transform: rotate(-175deg); animation: blast 700ms infinite ease-out; animation-delay: 17ms; animation-duration: 593ms; %7D rect:nth-child(5) %7B transform-origin: 213px 5px; transform: rotate(-97deg); animation: blast 700ms infinite ease-out; animation-delay: 122ms; animation-duration: 476ms; %7D rect:nth-child(6) %7B transform-origin: 255px 6px; transform: rotate(57deg); animation: blast 700ms infinite ease-out; animation-delay: 271ms; animation-duration: 381ms; %7D rect:nth-child(7) %7B transform-origin: 297px 5px; transform: rotate(-46deg); animation: blast 700ms infinite ease-out; animation-delay: 131ms; animation-duration: 619ms; %7D rect:nth-child(8) %7B transform-origin: 338px 6px; transform: rotate(-65deg); animation: blast 700ms infinite ease-out; animation-delay: 85ms; animation-duration: 668ms; %7D rect:nth-child(9) %7B transform-origin: 380px 6px; transform: rotate(13deg); animation: blast 700ms infinite ease-out; animation-delay: 128ms; animation-duration: 377ms; %7D rect:nth-child(10) %7B transform-origin: 423px 5px; transform: rotate(176deg); animation: blast 700ms infinite ease-out; animation-delay: 311ms; animation-duration: 508ms; %7D rect:nth-child(11) %7B transform-origin: 465px 5px; transform: rotate(108deg); animation: blast 700ms infinite ease-out; animation-delay: 108ms; animation-duration: 595ms; %7D rect:nth-child(12) %7B transform-origin: 506px 6px; transform: rotate(62deg); animation: blast 700ms infinite ease-out; animation-delay: 105ms; animation-duration: 375ms; %7D rect:nth-child(13) %7B transform-origin: 549px 5px; transform: rotate(16deg); animation: blast 700ms infinite ease-out; animation-delay: 149ms; animation-duration: 491ms; %7D rect:nth-child(odd) %7B fill: %2365BB5C; %7D rect:nth-child(even) %7B z-index: 1; fill: %2333AAFF; %7D rect:nth-child(4n) %7B animation-duration: 1400ms; fill: %23F23B14; %7D rect:nth-child(3n) %7B animation-duration: 1750ms; animation-delay: 700ms; %7D rect:nth-child(4n-7) %7B fill: %232A2F6A; %7D rect:nth-child(6n) %7B fill: %23FBBA23; %7D @keyframes blast %7B from %7B opacity: 0; %7D 20%25 %7B opacity: 1; %7D to %7B transform: translateY(90px); %7D %7D %3C/style%3E%3C/svg%3E%0A");
94
-
95
- @media (prefers-reduced-motion) {
96
- background-image: url("data:image/svg+xml;,%3Csvg width='574' height='60' viewBox='0 0 574 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect opacity='0.8' x='27.1224' y='20.0458' width='5' height='13' transform='rotate(-139 27.1224 20.0458)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='118.478' y='7.00201' width='5' height='13' transform='rotate(-38.8114 118.478 7.00201)' fill='%23FBBA23'/%3E%3Crect opacity='0.8' x='504.616' y='25.4479' width='5' height='13' transform='rotate(-60.2734 504.616 25.4479)' fill='%23F23B14'/%3E%3Crect opacity='0.6' x='538.983' y='45.555' width='5' height='13' transform='rotate(16.7826 538.983 45.555)' fill='%232A2F6A'/%3E%3Crect opacity='0.3' x='470.322' y='2.63625' width='5' height='13' transform='rotate(11.295 470.322 2.63625)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='190.295' y='4.58138' width='5' height='13' transform='rotate(27.5954 190.295 4.58138)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='234.303' y='16.3233' width='5' height='13' transform='rotate(-41.8233 234.303 16.3233)' fill='%2365BB5C'/%3E%3Crect opacity='0.6' x='369.702' y='40.9875' width='5' height='13' transform='rotate(-56.419 369.702 40.9875)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='402.121' y='31.0848' width='5' height='13' transform='rotate(-17.9234 402.121 31.0848)' fill='%23F23B14'/%3E%3Crect opacity='0.6' x='200.316' y='31.9328' width='5' height='13' transform='rotate(-15.8896 200.316 31.9328)' fill='%232A2F6A'/%3E%3Crect opacity='0.6' x='69.6745' y='23.4725' width='6' height='10' transform='rotate(70.0266 69.6745 23.4725)' fill='%2365BB5C'/%3E%3Crect opacity='0.6' x='291.945' y='7.16931' width='6' height='10' transform='rotate(30.4258 291.945 7.16931)' fill='%23FBBA23'/%3E%3Crect opacity='0.3' x='33.7754' y='38.2208' width='6' height='10' transform='rotate(38.6056 33.7754 38.2208)' fill='%23FBBA23'/%3E%3Crect opacity='0.8' x='109.752' y='31.1743' width='6' height='10' transform='rotate(28.5296 109.752 31.1743)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='278.081' y='37.8695' width='6' height='10' transform='rotate(-26.5651 278.081 37.8695)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='416.294' y='11.5573' width='6' height='10' transform='rotate(-22.8498 416.294 11.5573)' fill='%23FBBA23'/%3E%3Crect opacity='0.3' x='354.667' y='9.32341' width='6' height='10' transform='rotate(17.7506 354.667 9.32341)' fill='%232A2F6A'/%3E%3Crect opacity='0.8' x='532.404' y='16.6372' width='6' height='10' transform='rotate(-75.3432 532.404 16.6372)' fill='%23FBBA23'/%3E%3Crect opacity='0.6' x='460.463' y='39.3557' width='6' height='10' transform='rotate(45.4982 460.463 39.3557)' fill='%2365BB5C'/%3E%3C/svg%3E");
97
- }
98
- }
99
-
100
- .bg-confetti-static {
101
- background-repeat: repeat-x;
102
- background-position: top -10px center;
103
- background-image: url("data:image/svg+xml;,%3Csvg width='574' height='60' viewBox='0 0 574 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect opacity='0.8' x='27.1224' y='20.0458' width='5' height='13' transform='rotate(-139 27.1224 20.0458)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='118.478' y='7.00201' width='5' height='13' transform='rotate(-38.8114 118.478 7.00201)' fill='%23FBBA23'/%3E%3Crect opacity='0.8' x='504.616' y='25.4479' width='5' height='13' transform='rotate(-60.2734 504.616 25.4479)' fill='%23F23B14'/%3E%3Crect opacity='0.6' x='538.983' y='45.555' width='5' height='13' transform='rotate(16.7826 538.983 45.555)' fill='%232A2F6A'/%3E%3Crect opacity='0.3' x='470.322' y='2.63625' width='5' height='13' transform='rotate(11.295 470.322 2.63625)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='190.295' y='4.58138' width='5' height='13' transform='rotate(27.5954 190.295 4.58138)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='234.303' y='16.3233' width='5' height='13' transform='rotate(-41.8233 234.303 16.3233)' fill='%2365BB5C'/%3E%3Crect opacity='0.6' x='369.702' y='40.9875' width='5' height='13' transform='rotate(-56.419 369.702 40.9875)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='402.121' y='31.0848' width='5' height='13' transform='rotate(-17.9234 402.121 31.0848)' fill='%23F23B14'/%3E%3Crect opacity='0.6' x='200.316' y='31.9328' width='5' height='13' transform='rotate(-15.8896 200.316 31.9328)' fill='%232A2F6A'/%3E%3Crect opacity='0.6' x='69.6745' y='23.4725' width='6' height='10' transform='rotate(70.0266 69.6745 23.4725)' fill='%2365BB5C'/%3E%3Crect opacity='0.6' x='291.945' y='7.16931' width='6' height='10' transform='rotate(30.4258 291.945 7.16931)' fill='%23FBBA23'/%3E%3Crect opacity='0.3' x='33.7754' y='38.2208' width='6' height='10' transform='rotate(38.6056 33.7754 38.2208)' fill='%23FBBA23'/%3E%3Crect opacity='0.8' x='109.752' y='31.1743' width='6' height='10' transform='rotate(28.5296 109.752 31.1743)' fill='%2333AAFF'/%3E%3Crect opacity='0.3' x='278.081' y='37.8695' width='6' height='10' transform='rotate(-26.5651 278.081 37.8695)' fill='%23F23B14'/%3E%3Crect opacity='0.8' x='416.294' y='11.5573' width='6' height='10' transform='rotate(-22.8498 416.294 11.5573)' fill='%23FBBA23'/%3E%3Crect opacity='0.3' x='354.667' y='9.32341' width='6' height='10' transform='rotate(17.7506 354.667 9.32341)' fill='%232A2F6A'/%3E%3Crect opacity='0.8' x='532.404' y='16.6372' width='6' height='10' transform='rotate(-75.3432 532.404 16.6372)' fill='%23FBBA23'/%3E%3Crect opacity='0.6' x='460.463' y='39.3557' width='6' height='10' transform='rotate(45.4982 460.463 39.3557)' fill='%2365BB5C'/%3E%3C/svg%3E");
104
- }
105
-
106
- // Focus styles
107
- .focus,
108
- .f\:focus:focus,
109
- .f\:focus:focus-within {
110
- .focus-styles();
111
- }
112
-
113
- .focus-inset,
114
- .f\:focus-inset:focus,
115
- .f\:focus-inset:focus-within {
116
- .focus-styles(true);
117
- }
118
-
119
- .focus-bordered,
120
- .f\:focus-bordered:focus,
121
- .f\:focus-bordered:focus-within {
122
- .focus-styles(false, true);
123
- }
124
-
125
- .focus-inset-bordered,
126
- .f\:focus-inset-bordered:focus,
127
- .f\:focus-inset-bordered:focus-within {
128
- .focus-styles(true, true);
129
- }
130
-
131
- // ============================================================================
132
- // $ OBJECT-FIT / OBJECT-POSITION
133
- // ----------------------------------------------------------------------------
134
-
135
- .of-contain { object-fit: contain !important; }
136
- .of-cover { object-fit: cover !important; }
137
- .of-fill { object-fit: fill !important; }
138
- .of-none { object-fit: none !important; }
139
- .of-scale-down { object-fit: scale-down !important; }
140
-
141
- .op-center { object-position: center !important; }
142
-
143
- // ============================================================================
144
- // $ CURSORS
145
- // ----------------------------------------------------------------------------
146
- .c-auto { cursor: auto !important; }
147
- .c-default { cursor: default !important; }
148
- .c-pointer { cursor: pointer !important; }
149
- .c-text { cursor: text !important; }
150
- .c-wait { cursor: wait !important; }
151
- .c-move { cursor: move !important; }
152
- .c-not-allowed { cursor: not-allowed !important; }
153
- .c-help { cursor: help !important; }
154
-
155
- // ============================================================================
156
- // $ POINTER EVENTS
157
- // ----------------------------------------------------------------------------
158
- .pe-auto { pointer-events: auto !important; }
159
- .pe-none { pointer-events: none !important; }
160
-
161
- // ============================================================================
162
- // $ USER SELECT
163
- // ----------------------------------------------------------------------------
164
- .us-auto {
165
- -webkit-user-select: auto !important;
166
- -moz-user-select: auto !important;
167
- -ms-user-select: auto !important;
168
- user-select: auto !important;
169
- }
170
-
171
- .us-none {
172
- -webkit-user-select: none !important;
173
- -moz-user-select: none !important;
174
- -ms-user-select: none !important;
175
- user-select: none !important;
176
- }
177
-
178
- // ============================================================================
179
- // $ VISIBILITY
180
- // ----------------------------------------------------------------------------
181
- .v-visible { visibility: visible !important; }
182
- .v-hidden { visibility: hidden !important; }
183
- .v-visible-sr {
184
- // Borrowed from Wordpress
185
- // https://make.wordpress.org/accessibility/2015/02/09/hiding-text-for-screen-readers-with-wordpress-core/
186
- border: 0;
187
- /* stylelint-disable-next-line property-no-deprecated -- clip is kept for older browser compatibility alongside clip-path */
188
- clip: rect(var(--su-static1), var(--su-static1), var(--su-static1), var(--su-static1)); // rect(1px, 1px, 1px, 1px)
189
- clip-path: inset(50%);
190
- height: var(--su-static1);
191
- margin: calc(var(--su-static1) * -1); // -1px
192
- overflow: hidden;
193
- padding: 0;
194
- position: absolute;
195
- width: var(--su-static1);
196
- overflow-wrap: normal;
197
- }
198
-
199
- // ============================================================================
200
- // $ FLOATS
201
- // ----------------------------------------------------------------------------
202
- .float-left { float: left !important; }
203
- .float-right { float: right !important; }
204
- .float-none { float: none !important; }
205
- .clearfix { .clearfix(); }
206
- .clear-left { clear: left !important; }
207
- .clear-right { clear: right !important; }
208
- .clear-both { clear: both !important; }
209
- .clear-none { clear: none !important; }
210
-
211
- // ============================================================================
212
- // $ BOX SIZING
213
- // ----------------------------------------------------------------------------
214
- .box-content { box-sizing: content-box !important; }
215
- .box-border { box-sizing: border-box !important; }
216
- .box-unset { box-sizing: unset !important; }
217
-
218
- // ============================================================================
219
- // $ VERTICAL ALIGNMENT
220
- // ----------------------------------------------------------------------------
221
- .va-baseline { vertical-align: baseline !important; }
222
- .va-bottom { vertical-align: bottom !important; }
223
- .va-middle { vertical-align: middle !important; }
224
- .va-sub { vertical-align: sub !important; }
225
- .va-super { vertical-align: super !important; }
226
- .va-text-bottom { vertical-align: text-bottom !important; }
227
- .va-text-top { vertical-align: text-top !important; }
228
- .va-top { vertical-align: top !important; }
229
- .va-unset { vertical-align: unset !important; }
230
-
231
- // ============================================================================
232
- // $ POSITION
233
- // ----------------------------------------------------------------------------
234
- #stacks-internals #responsify('.ps-absolute', { position: absolute !important; });
235
- #stacks-internals #responsify('.ps-fixed', { position: fixed !important; });
236
- #stacks-internals #responsify('.ps-relative', { position: relative !important; });
237
- #stacks-internals #responsify('.ps-static', { position: static !important; });
238
- #stacks-internals #responsify('.ps-sticky', { position: sticky !important; });
239
- .ps-unset { position: unset !important; }
240
-
241
- // ============================================================================
242
- // $ OVERFLOW
243
- // ----------------------------------------------------------------------------
244
- .overflow-auto { overflow: auto !important; @scrollbar-styles(); }
245
- .overflow-x-auto { overflow-x: auto !important; @scrollbar-styles(); }
246
- .overflow-y-auto { overflow-y: auto !important; @scrollbar-styles(); }
247
-
248
- .overflow-hidden { overflow: hidden !important; @scrollbar-styles(); }
249
- .overflow-x-hidden { overflow-x: hidden !important; @scrollbar-styles(); }
250
- .overflow-y-hidden { overflow-y: hidden !important; @scrollbar-styles(); }
251
-
252
- .overflow-scroll { overflow: scroll !important; @scrollbar-styles(); }
253
- .overflow-x-scroll { overflow-x: scroll !important; @scrollbar-styles(); }
254
- .overflow-y-scroll { overflow-y: scroll !important; @scrollbar-styles(); }
255
-
256
- .overflow-visible { overflow: visible !important; }
257
-
258
- // ============================================================================
259
- // $ OPACITY
260
- // ----------------------------------------------------------------------------
261
- .o0 { opacity: 0 !important; }
262
- .h\:o0:hover { .o0; }
263
- .o5 { opacity: 0.05 !important; }
264
- .h\:o5:hover { .o5; }
265
- .o10 { opacity: 0.1 !important; }
266
- .o20 { opacity: 0.2 !important; }
267
- .o30 { opacity: 0.3 !important; }
268
- .o40 { opacity: 0.4 !important; }
269
- .o50 { opacity: 0.5 !important; }
270
- .h\:o50:hover { .o50; }
271
- .o60 { opacity: 0.6 !important; }
272
- .o70 { opacity: 0.7 !important; }
273
- .o80 { opacity: 0.8 !important; }
274
- .h\:o80:hover { .o80; }
275
- .o90 { opacity: 0.9 !important; }
276
- .o100 { opacity: 1 !important; }
277
- .h\:o100:hover { .o100; }
278
-
279
- .f\:o100 {
280
- &:focus,
281
- &:focus-within {
282
- .o100;
283
- }
284
- }
285
-
286
- // ============================================================================
287
- // $ Z-INDEX
288
- // ----------------------------------------------------------------------------
289
- .z-hide { z-index: var(--zi-hide) !important; }
290
- .z-base { z-index: var(--zi-base) !important; }
291
- .z-active { z-index: var(--zi-active) !important; }
292
- .z-selected { z-index: var(--zi-selected) !important; }
293
- .z-dropdown { z-index: var(--zi-dropdown) !important; }
294
- .z-popover { z-index: var(--zi-popovers) !important; }
295
- .z-tooltip { z-index: var(--zi-tooltips) !important; }
296
- .z-banner { z-index: var(--zi-banners) !important; }
297
- .z-nav { z-index: var(--zi-navigation) !important; }
298
- .z-nav-fixed { z-index: var(--zi-navigation-fixed) !important; }
299
- .z-modal { z-index: var(--zi-modals) !important; }
300
- .z-modal-bg { z-index: var(--zi-modals-background) !important; }
301
-
302
- // ============================================================================
303
- // $ OUTLINE
304
- // ----------------------------------------------------------------------------
305
- .outline-none { outline: 0 !important; }
306
- .outline-ring { outline: solid var(--su-static4) var(--translucent-secondary); } // TODO SHINE revisit this value once theme colors are finalized
307
-
308
- .f\:outline-ring {
309
- &:focus,
310
- &:focus-within {
311
- .outline-ring;
312
- }
313
- }
314
-
315
- // ============================================================================
316
- // $ CURRENT COLOR
317
- // ----------------------------------------------------------------------------
318
- .fill-current { fill: currentColor !important; }
319
- .stroke-current { stroke: currentColor !important; }
320
-
321
- // ============================================================================
322
- // $ BOX SHADOW
323
- // ----------------------------------------------------------------------------
324
- #stacks-internals #responsify('.bs-none', { box-shadow: none !important; });
325
- .bs-sm { box-shadow: var(--bs-sm) !important; }
326
- .h\:bs-sm:hover { .bs-sm; }
327
- .bs-md { box-shadow: var(--bs-md) !important; }
328
- .h\:bs-md:hover { .bs-md; }
329
- .bs-lg { box-shadow: var(--bs-lg) !important; }
330
- .h\:bs-lg:hover { .bs-lg; }
331
- .bs-xl { box-shadow: var(--bs-xl) !important; }
332
- .bs-ring { box-shadow: 0 0 0 var(--su-static4) var(--focus-ring); }
333
- .h\:bs-ring:hover { .bs-ring; }
334
- .f\:bs-ring {
335
- &:focus,
336
- &:focus-within {
337
- .bs-ring;
338
- }
339
- }
340
-
341
- // -- Added hover styles for box-shadow
342
- // TODO do we still need them? Can we deprecate/remove these weird hover classes?
343
- .bs-sm.bs-hover:hover { box-shadow: 0 var(--su-static2) var(--su-static8) .set-black()[150] !important; }
344
- .bs-md.bs-hover:hover { box-shadow: 0 var(--su-static4) var(--su-static8) .set-black()[225] !important; }
345
- .bs-lg.bs-hover:hover { box-shadow: 0 var(--su-static4) var(--su-static12) fade(.set-black()[350], 70%) !important; }
346
- .bs-i-sm.bs-hover:hover { box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 fade(.set-black()[300], 75%) !important; }
347
- .bs-i-md.bs-hover:hover { box-shadow: inset 0 var(--su-static1) var(--su-static8) 0 fade(.set-black()[350], 80%) !important; }
348
- .bs-i-lg.bs-hover:hover { box-shadow: inset 0 var(--su-static1) var(--su-static12) 0 .set-black()[350] !important; }
349
-
350
- // ============================================================================
351
- // $ TRANSITIONS
352
- // ----------------------------------------------------------------------------
353
-
354
- // -- Provide a sensible default
355
- .t {
356
- transition-duration: var(--transition-time);
357
- transition-property: all;
358
- transition-timing-function: var(--te-ease-in);
359
- transition-delay: 0s;
360
- }
361
-
362
- // -- Durations
363
- .t-slow { transition-duration: 0.25s !important; }
364
- .t-fast { transition-duration: 0.05s !important; }
365
-
366
- // -- Properties
367
- .t-unset { transition-property: none !important; }
368
- .t-bg { transition-property: background-color !important; }
369
- .t-opacity { transition-property: opacity !important; }
370
- .t-shadow { transition-property: box-shadow !important; }
371
-
372
- // -- Delays
373
- .t-delay { transition-delay: 0.25s !important; }
374
- .t-delay-unset { transition-delay: 0s !important; }
375
-
376
- // ============================================================================
377
- // $ TABLE LAYOUT
378
- // ----------------------------------------------------------------------------
379
- .tl-fixed { table-layout: fixed !important; }
380
- .tl-auto { table-layout: auto !important; }
@@ -1,82 +0,0 @@
1
- a.s-block-link,
2
- .s-block-link {
3
- --_bl-bs-color: var(--theme-primary);
4
- --_bl-bg: transparent;
5
- --_bl-fc: var(--black-500);
6
- --_bl-fc-hover: var(--black-600);
7
- --_bl-fc-visited: var(--_bl-fc);
8
-
9
- // CONTEXTUAL STYLES
10
- .dark-mode({
11
- &.is-selected {
12
- --_bl-bg: var(--black-100);
13
- }
14
- });
15
-
16
- // STATES
17
- &.is-selected {
18
- --_bl-bg: var(--black-150);
19
- --_bl-fc: var(--black-600);
20
-
21
- font-weight: bold;
22
- }
23
-
24
- // MODIFIERS
25
- &&__left,
26
- &&__right {
27
- &.is-selected {
28
- &:not(:focus-visible):not(.focus-inset) {
29
- box-shadow: inset var(--_li-block-bs-offset-x, 3px) 0 0 var(--_bl-bs-color);
30
- }
31
- }
32
- }
33
-
34
- &&__right {
35
- &.is-selected {
36
- --_li-block-bs-offset-x: calc(var(--su-static1) - var(--su-static4)); // -3px
37
- }
38
- }
39
-
40
- // VARIANTS
41
- &&__danger {
42
- --_bl-fc: var(--red-400);
43
- --_bl-fc-hover: var(--red-500);
44
- --_bl-fc-visited: var(--red-500);
45
- }
46
-
47
- &:active,
48
- &:hover {
49
- &,
50
- &:visited {
51
- color: var(--_bl-fc-hover);
52
- }
53
- }
54
-
55
- &:visited {
56
- color: var(--_bl-fc-visited);
57
- }
58
-
59
- &:focus-visible {
60
- .focus-styles(true);
61
- }
62
-
63
- &:focus-visible,
64
- &.focus-inset {
65
- border-radius: var(--br-md);
66
- }
67
-
68
- background-color: var(--_bl-bg); // [1]
69
- color: var(--_bl-fc);
70
-
71
- border-radius: 0; // [1]
72
- border: none; // [1]
73
- cursor: pointer; // [1]
74
- display: block;
75
- font-family: inherit; // [1]
76
- line-height: inherit; // [1]
77
- padding: var(--su6) var(--su12);
78
- text-align: left; // [1]
79
- width: 100%;
80
- }
81
-
82
- // [1] Normalize for when applying to a button