@splendidlabz/styles 2.3.2 → 3.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.
- package/dist/no-tw/layouts.css +1278 -0
- package/dist/no-tw/styles.css +2018 -0
- package/dist/styles.css +1254 -1442
- package/package.json +23 -9
- package/src/addons/index.css +1 -0
- package/src/addons/scrollbars.css +60 -0
- package/src/{UI/_Accordion.scss → components/accordion.css} +8 -10
- package/src/components/drawer.css +20 -0
- package/src/components/index.css +2 -0
- package/src/effects/elevation.css +290 -0
- package/src/effects/frosted-glass.css +42 -0
- package/src/effects/gradients.css +107 -0
- package/src/effects/highlight.css +13 -0
- package/src/effects/index.css +6 -0
- package/src/effects/inner-border.css +18 -0
- package/src/effects/shadows.css +49 -0
- package/src/effects/text-outline.css +27 -0
- package/src/form/index.css +2 -0
- package/src/form/text-field.css +72 -0
- package/src/form/textarea.css +37 -0
- package/src/{Base/_Accessibility.scss → generic/accessibility.css} +21 -20
- package/src/generic/anchors-and-buttons.css +55 -0
- package/src/generic/form.css +62 -0
- package/src/generic/index.css +4 -0
- package/src/generic/typography.css +48 -0
- package/src/layouts/index.css +6 -0
- package/src/layouts/macro/flex-grid.css +33 -0
- package/src/layouts/macro/grid.css +127 -0
- package/src/layouts/macro/index.css +5 -0
- package/src/layouts/macro/masonry.css +23 -0
- package/src/layouts/macro/subgrid.css +33 -0
- package/src/layouts/macro/wrap.css +6 -0
- package/src/layouts/micro/breakout.css +38 -0
- package/src/layouts/micro/divider.css +102 -0
- package/src/layouts/micro/index.css +6 -0
- package/src/layouts/micro/micro.css +54 -0
- package/src/layouts/micro/scrollable.css +70 -0
- package/src/layouts/micro/stack.css +29 -0
- package/src/layouts/micro/stacking-context.css +3 -0
- package/src/layouts/position/edge.css +429 -0
- package/src/layouts/position/fixed.css +102 -0
- package/src/layouts/position/index.css +5 -0
- package/src/layouts/position/nudge.css +74 -0
- package/src/layouts/position/pos.css +337 -0
- package/src/layouts/position/sticky.css +11 -0
- package/src/layouts/shell/index.css +2 -0
- package/src/layouts/shell/shell-grid.css +34 -0
- package/src/layouts/shell/shell-simple.css +15 -0
- package/src/primitives/backdrop.css +8 -0
- package/src/{utils/_mixins.scss → primitives/break-word.css} +4 -2
- package/src/primitives/card.css +51 -0
- package/src/primitives/focus-within.css +12 -0
- package/src/primitives/hero-heading.css +44 -0
- package/src/primitives/indent-list.css +77 -0
- package/src/primitives/index.css +11 -0
- package/src/{Components/_Prose.scss → primitives/prose.css} +11 -29
- package/src/primitives/shapes.css +16 -0
- package/src/primitives/simple-svg.css +7 -0
- package/src/primitives/table.css +197 -0
- package/src/primitives/text.css +4 -0
- package/src/primitives/writing-mode.css +51 -0
- package/src/reset.css +114 -0
- package/src/scripts/Masonry.js +8 -0
- package/src/scripts/Scrollable.js +14 -0
- package/src/scripts/Sticky.js +34 -0
- package/src/scripts/all.js +7 -0
- package/src/scripts/index.js +4 -0
- package/src/styles.css +14 -0
- package/src/tools/border.css +9 -0
- package/src/tools/index.css +5 -0
- package/src/tools/object.css +5 -0
- package/src/tools/outlines.css +27 -0
- package/src/tools/pigment.css +205 -0
- package/src/tools/transitions.css +14 -0
- package/src/type/font-position.css +18 -0
- package/src/type/index.css +1 -0
- package/src/variables/breakpoints.css +103 -0
- package/src/variables/font.css +88 -0
- package/src/variables/index.css +4 -0
- package/src/variables/radius.css +54 -0
- package/src/variables/variables.css +34 -0
- package/dist/UI/Codepen.css +0 -13
- package/dist/UI/Codepen.css.map +0 -1
- package/dist/UI/Tweet.css +0 -7
- package/dist/UI/Tweet.css.map +0 -1
- package/dist/UI/Youtube.css +0 -13
- package/dist/UI/Youtube.css.map +0 -1
- package/dist/styles.css.map +0 -1
- package/src/Base/_Base.scss +0 -57
- package/src/Base/_Focus.scss +0 -38
- package/src/Base/_Transition.scss +0 -8
- package/src/Base/_index.scss +0 -4
- package/src/Components/_Box.scss +0 -9
- package/src/Components/_BrowserFrame.scss +0 -89
- package/src/Components/_Figure.scss +0 -5
- package/src/Components/_List.scss +0 -19
- package/src/Components/_Scrollbars.scss +0 -40
- package/src/Components/_SimpleSVG.scss +0 -9
- package/src/Components/_index.scss +0 -12
- package/src/Effects/_Backdrop.scss +0 -4
- package/src/Effects/_Elevation.scss +0 -92
- package/src/Effects/_Glow.scss +0 -51
- package/src/Effects/_Gradients.scss +0 -88
- package/src/Effects/_Shadows.scss +0 -51
- package/src/Effects/_SpecialShadows.scss +0 -45
- package/src/Effects/_Text-Outline.scss +0 -25
- package/src/Effects/_index.scss +0 -12
- package/src/Experimental/_SimplePricingPlan.scss +0 -141
- package/src/Forms/_Button.scss +0 -106
- package/src/Forms/_Combobox.scss +0 -49
- package/src/Forms/_FormBase.scss +0 -43
- package/src/Forms/_FormControls.scss +0 -95
- package/src/Forms/_Range.scss +0 -101
- package/src/Forms/_Select.scss +0 -114
- package/src/Forms/_Switch.scss +0 -66
- package/src/Forms/_TextField.scss +0 -116
- package/src/Forms/_Textarea.scss +0 -41
- package/src/Forms/_index.scss +0 -10
- package/src/Typography/_WritingMode.scss +0 -33
- package/src/Typography/_index.scss +0 -1
- package/src/UI/Codepen.scss +0 -11
- package/src/UI/Tweet.scss +0 -5
- package/src/UI/Youtube.scss +0 -13
- package/src/UI/_Breadcrumbs.scss +0 -24
- package/src/UI/_CQChecker.scss +0 -16
- package/src/UI/_Callout.scss +0 -31
- package/src/UI/_Drawer.scss +0 -28
- package/src/UI/_Dropdown.scss +0 -14
- package/src/UI/_FancyList.scss +0 -30
- package/src/UI/_PerspectiveHover.scss +0 -9
- package/src/UI/_Popover.scss +0 -25
- package/src/UI/_Resizer.scss +0 -43
- package/src/UI/_Spotlight.scss +0 -42
- package/src/UI/_Status.scss +0 -33
- package/src/UI/_Tabs.scss +0 -112
- package/src/UI/_Textwall.scss +0 -22
- package/src/UI/_index.scss +0 -17
- package/src/Utilities/_Shapes.scss +0 -20
- package/src/Utilities/_index.scss +0 -1
- package/src/Variables/_Globals.scss +0 -33
- package/src/Variables/_index.scss +0 -1
- package/src/_Animations.scss +0 -18
- package/src/_Fill.scss +0 -314
- package/src/styles.scss +0 -12
- package/src/utils/_index.scss +0 -3
- package/src/utils/functions/_fns.scss +0 -77
- package/src/utils/functions/_fonts.scss +0 -114
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*********************
|
|
2
|
+
* fixed *
|
|
3
|
+
*********************/
|
|
4
|
+
|
|
5
|
+
/* top *
|
|
6
|
+
*********************/
|
|
7
|
+
@utility fixed-top {
|
|
8
|
+
position: fixed;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility fixed-topleft {
|
|
15
|
+
@apply fixed-top;
|
|
16
|
+
@apply nudge-topleft;
|
|
17
|
+
right: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@utility fixed-topright {
|
|
21
|
+
@apply fixed-top;
|
|
22
|
+
@apply nudge-topright;
|
|
23
|
+
left: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@utility fixed-topfull {
|
|
27
|
+
@apply fixed-top;
|
|
28
|
+
@apply nudge-topfull;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* bottom *
|
|
32
|
+
*********************/
|
|
33
|
+
@utility fixed-bottom {
|
|
34
|
+
position: fixed;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@utility fixed-bottomleft {
|
|
41
|
+
@apply fixed-bottom;
|
|
42
|
+
@apply nudge-bottomleft;
|
|
43
|
+
right: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@utility fixed-bottomright {
|
|
47
|
+
@apply fixed-bottom;
|
|
48
|
+
@apply nudge-bottomright;
|
|
49
|
+
left: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@utility fixed-bottomfull {
|
|
53
|
+
@apply fixed-bottom;
|
|
54
|
+
@apply nudge-bottomfull;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* left *
|
|
58
|
+
*********************/
|
|
59
|
+
@utility fixed-left {
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: 0;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility fixed-leftfull {
|
|
67
|
+
@apply fixed-left;
|
|
68
|
+
@apply nudge-leftfull;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* right *
|
|
72
|
+
*********************/
|
|
73
|
+
@utility fixed-right {
|
|
74
|
+
position: fixed;
|
|
75
|
+
top: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
right: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility fixed-rightfull {
|
|
81
|
+
@apply fixed-right;
|
|
82
|
+
@apply nudge-rightfull;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* center *
|
|
86
|
+
*********************/
|
|
87
|
+
@utility fixed-center {
|
|
88
|
+
position: fixed;
|
|
89
|
+
top: 50%;
|
|
90
|
+
left: 50%;
|
|
91
|
+
transform: translate(-50%, -50%);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* overlay *
|
|
95
|
+
*********************/
|
|
96
|
+
@utility fixed-overlay {
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
position: fixed;
|
|
99
|
+
inset-block: var(--nudge-y, var(--nudge, 0));
|
|
100
|
+
inset-inline: var(--nudge-x, var(--nudge, 0));
|
|
101
|
+
display: grid;
|
|
102
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--nudge: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/*********************
|
|
6
|
+
* nudge utilities *
|
|
7
|
+
*********************/
|
|
8
|
+
@utility nudge {
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@utility nudge-top {
|
|
13
|
+
@apply nudge;
|
|
14
|
+
top: var(--nudge-y, var(--nudge, 0));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@utility nudge-topleft {
|
|
18
|
+
@apply nudge-top;
|
|
19
|
+
left: var(--nudge-x, var(--nudge, 0));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@utility nudge-topright {
|
|
23
|
+
@apply nudge-top;
|
|
24
|
+
right: var(--nudge-x, var(--nudge, 0));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@utility nudge-topfull {
|
|
28
|
+
@apply nudge-top;
|
|
29
|
+
left: var(--nudge-x, var(--nudge, 0));
|
|
30
|
+
right: var(--nudge-x, var(--nudge, 0));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@utility nudge-bottom {
|
|
34
|
+
@apply nudge;
|
|
35
|
+
bottom: var(--nudge-y, var(--nudge, 0));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@utility nudge-bottomleft {
|
|
39
|
+
@apply nudge-bottom;
|
|
40
|
+
left: var(--nudge-x, var(--nudge, 0));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@utility nudge-bottomright {
|
|
44
|
+
@apply nudge-bottom;
|
|
45
|
+
right: var(--nudge-x, var(--nudge, 0));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@utility nudge-bottomfull {
|
|
49
|
+
@apply nudge-bottom;
|
|
50
|
+
left: var(--nudge-x, var(--nudge, 0));
|
|
51
|
+
right: var(--nudge-x, var(--nudge, 0));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility nudge-left {
|
|
55
|
+
@apply nudge;
|
|
56
|
+
left: var(--nudge-x, var(--nudge, 0));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@utility nudge-leftfull {
|
|
60
|
+
@apply nudge-left;
|
|
61
|
+
top: var(--nudge-y, var(--nudge, 0));
|
|
62
|
+
bottom: var(--nudge-y, var(--nudge, 0));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@utility nudge-right {
|
|
66
|
+
@apply nudge;
|
|
67
|
+
right: var(--nudge-x, var(--nudge, 0));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@utility nudge-rightfull {
|
|
71
|
+
@apply nudge-right;
|
|
72
|
+
top: var(--nudge-y, var(--nudge, 0));
|
|
73
|
+
bottom: var(--nudge-y, var(--nudge, 0));
|
|
74
|
+
}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/*********************
|
|
2
|
+
* stack pos utilities *
|
|
3
|
+
*********************/
|
|
4
|
+
|
|
5
|
+
/* prettier-ignore */
|
|
6
|
+
@utility stack-pos-top { place-self: start center; }
|
|
7
|
+
|
|
8
|
+
/* prettier-ignore */
|
|
9
|
+
@utility stack-pos-topleft { place-self: start start; }
|
|
10
|
+
|
|
11
|
+
/* prettier-ignore */
|
|
12
|
+
@utility stack-pos-topright { place-self: start end; }
|
|
13
|
+
|
|
14
|
+
/* prettier-ignore */
|
|
15
|
+
@utility stack-pos-topfull { place-self: start stretch; }
|
|
16
|
+
|
|
17
|
+
/* prettier-ignore */
|
|
18
|
+
@utility stack-pos-bottomleft { place-self: end start; }
|
|
19
|
+
|
|
20
|
+
/* prettier-ignore */
|
|
21
|
+
@utility stack-pos-bottom { place-self: end center; }
|
|
22
|
+
|
|
23
|
+
/* prettier-ignore */
|
|
24
|
+
@utility stack-pos-bottomright { place-self: end end; }
|
|
25
|
+
|
|
26
|
+
/* prettier-ignore */
|
|
27
|
+
@utility stack-pos-bottomfull { place-self: end stretch; }
|
|
28
|
+
|
|
29
|
+
/* prettier-ignore */
|
|
30
|
+
@utility stack-pos-left { place-self: center start; }
|
|
31
|
+
|
|
32
|
+
/* prettier-ignore */
|
|
33
|
+
@utility stack-pos-lefttop { place-self: start start; }
|
|
34
|
+
|
|
35
|
+
/* prettier-ignore */
|
|
36
|
+
@utility stack-pos-leftbottom { place-self: end start; }
|
|
37
|
+
|
|
38
|
+
/* prettier-ignore */
|
|
39
|
+
@utility stack-pos-leftfull { place-self: stretch start; }
|
|
40
|
+
|
|
41
|
+
/* prettier-ignore */
|
|
42
|
+
@utility stack-pos-right { place-self: center end; }
|
|
43
|
+
|
|
44
|
+
/* prettier-ignore */
|
|
45
|
+
@utility stack-pos-righttop { place-self: start end; }
|
|
46
|
+
|
|
47
|
+
/* prettier-ignore */
|
|
48
|
+
@utility stack-pos-rightbottom { place-self: end end; }
|
|
49
|
+
|
|
50
|
+
/* prettier-ignore */
|
|
51
|
+
@utility stack-pos-rightfull { place-self: stretch end; }
|
|
52
|
+
|
|
53
|
+
/* prettier-ignore */
|
|
54
|
+
@utility stack-pos-center { place-self: center center; }
|
|
55
|
+
|
|
56
|
+
/*********************
|
|
57
|
+
* Relative pos utilities *
|
|
58
|
+
*********************/
|
|
59
|
+
@utility relative-pos {
|
|
60
|
+
position: absolute;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@utility relative-pos-top {
|
|
64
|
+
@apply relative-pos;
|
|
65
|
+
inset-block-start: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@utility relative-pos-topleft {
|
|
69
|
+
@apply relative-pos;
|
|
70
|
+
@apply relative-pos-top;
|
|
71
|
+
inset-inline-start: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@utility relative-pos-topright {
|
|
75
|
+
@apply relative-pos;
|
|
76
|
+
@apply relative-pos-top;
|
|
77
|
+
inset-inline-end: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility relative-pos-topfull {
|
|
81
|
+
@apply relative-pos;
|
|
82
|
+
@apply relative-pos-top;
|
|
83
|
+
inset-inline: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@utility relative-pos-bottom {
|
|
87
|
+
@apply relative-pos;
|
|
88
|
+
inset-block-end: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@utility relative-pos-bottomleft {
|
|
92
|
+
@apply relative-pos;
|
|
93
|
+
@apply relative-pos-bottom;
|
|
94
|
+
inset-inline-start: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@utility relative-pos-bottomright {
|
|
98
|
+
@apply relative-pos;
|
|
99
|
+
@apply relative-pos-bottom;
|
|
100
|
+
inset-inline-end: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@utility relative-pos-bottomfull {
|
|
104
|
+
@apply relative-pos;
|
|
105
|
+
inset-block-end: 0;
|
|
106
|
+
inset-inline: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@utility relative-pos-left {
|
|
110
|
+
@apply relative-pos;
|
|
111
|
+
inset-inline-start: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@utility relative-pos-lefttop {
|
|
115
|
+
@apply relative-pos;
|
|
116
|
+
@apply relative-pos-left;
|
|
117
|
+
inset-block-start: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@utility relative-pos-leftbottom {
|
|
121
|
+
@apply relative-pos;
|
|
122
|
+
@apply relative-pos-left;
|
|
123
|
+
inset-block-end: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@utility relative-pos-leftfull {
|
|
127
|
+
@apply relative-pos;
|
|
128
|
+
@apply relative-pos-left;
|
|
129
|
+
inset-block: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@utility relative-pos-right {
|
|
133
|
+
@apply relative-pos;
|
|
134
|
+
inset-inline-end: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@utility relative-pos-righttop {
|
|
138
|
+
@apply relative-pos;
|
|
139
|
+
@apply relative-pos-right;
|
|
140
|
+
inset-block-start: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility relative-pos-rightbottom {
|
|
144
|
+
@apply relative-pos;
|
|
145
|
+
@apply relative-pos-right;
|
|
146
|
+
inset-block-end: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@utility relative-pos-rightfull {
|
|
150
|
+
@apply relative-pos;
|
|
151
|
+
@apply relative-pos-right;
|
|
152
|
+
inset-block: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@utility relative-pos-center {
|
|
156
|
+
@apply relative-pos;
|
|
157
|
+
top: 50%;
|
|
158
|
+
left: 50%;
|
|
159
|
+
transform: translate(-50%, -50%);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@utility relative-pos-overlay {
|
|
163
|
+
@apply relative-pos;
|
|
164
|
+
inset: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/*********************
|
|
168
|
+
* pos utilities for client use *
|
|
169
|
+
*********************/
|
|
170
|
+
@utility pos-top {
|
|
171
|
+
@apply nudge-top;
|
|
172
|
+
|
|
173
|
+
:where([class*='stack']) > & {
|
|
174
|
+
@apply stack-pos-top;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:where([class*='relative']) > & {
|
|
178
|
+
@apply relative-pos-top;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@utility pos-topleft {
|
|
183
|
+
@apply nudge-topleft;
|
|
184
|
+
|
|
185
|
+
:where([class*='stack']) > & {
|
|
186
|
+
@apply stack-pos-topleft;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:where([class*='relative']) > & {
|
|
190
|
+
@apply relative-pos-topleft;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility pos-topright {
|
|
195
|
+
@apply nudge-topright;
|
|
196
|
+
|
|
197
|
+
:where([class*='stack']) > & {
|
|
198
|
+
@apply stack-pos-topright;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:where([class*='relative']) > & {
|
|
202
|
+
@apply relative-pos-topright;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility pos-topfull {
|
|
207
|
+
@apply nudge-topfull;
|
|
208
|
+
|
|
209
|
+
:where([class*='stack']) > & {
|
|
210
|
+
@apply stack-pos-topfull;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:where([class*='relative']) > & {
|
|
214
|
+
@apply relative-pos-topfull;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility pos-bottom {
|
|
219
|
+
@apply nudge-bottom;
|
|
220
|
+
|
|
221
|
+
:where([class*='stack']) > & {
|
|
222
|
+
@apply stack-pos-bottom;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:where([class*='relative']) > & {
|
|
226
|
+
@apply relative-pos-bottom;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@utility pos-bottomleft {
|
|
231
|
+
@apply nudge-bottomleft;
|
|
232
|
+
|
|
233
|
+
:where([class*='stack']) > & {
|
|
234
|
+
@apply stack-pos-bottomleft;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:where([class*='relative']) > & {
|
|
238
|
+
@apply relative-pos-bottomleft;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@utility pos-bottomright {
|
|
243
|
+
@apply nudge-bottomright;
|
|
244
|
+
|
|
245
|
+
:where([class*='stack']) > & {
|
|
246
|
+
@apply stack-pos-bottomright;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:where([class*='relative']) > & {
|
|
250
|
+
@apply relative-pos-bottomright;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@utility pos-bottomfull {
|
|
255
|
+
@apply nudge-bottomfull;
|
|
256
|
+
|
|
257
|
+
:where([class*='stack']) > & {
|
|
258
|
+
@apply stack-pos-bottomfull;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:where([class*='relative']) > & {
|
|
262
|
+
@apply relative-pos-bottomfull;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@utility pos-left {
|
|
267
|
+
@apply nudge-left;
|
|
268
|
+
|
|
269
|
+
:where([class*='stack']) > & {
|
|
270
|
+
@apply stack-pos-left;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:where([class*='relative']) > & {
|
|
274
|
+
@apply relative-pos-left;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@utility pos-leftfull {
|
|
279
|
+
@apply nudge-leftfull;
|
|
280
|
+
|
|
281
|
+
:where([class*='stack']) > & {
|
|
282
|
+
@apply stack-pos-leftfull;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:where([class*='relative']) > & {
|
|
286
|
+
@apply relative-pos-leftfull;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@utility pos-right {
|
|
291
|
+
@apply nudge-right;
|
|
292
|
+
|
|
293
|
+
:where([class*='stack']) > & {
|
|
294
|
+
@apply stack-pos-right;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:where([class*='relative']) > & {
|
|
298
|
+
@apply relative-pos-right;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@utility pos-rightfull {
|
|
303
|
+
@apply nudge-rightfull;
|
|
304
|
+
|
|
305
|
+
:where([class*='stack']) > & {
|
|
306
|
+
@apply stack-pos-rightfull;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
:where([class*='relative']) > & {
|
|
310
|
+
@apply relative-pos-rightfull;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@utility pos-center {
|
|
315
|
+
:where([class*='stack']) > & {
|
|
316
|
+
@apply stack-pos-center;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:where([class*='relative']) > & {
|
|
320
|
+
@apply relative-pos-center;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@utility pos-overlay {
|
|
325
|
+
:where([class*='stack']) > & {
|
|
326
|
+
display: grid;
|
|
327
|
+
|
|
328
|
+
> * {
|
|
329
|
+
grid-column: 1 / span 1;
|
|
330
|
+
grid-row: 1 / span 1;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
:where([class*='relative']) > & {
|
|
335
|
+
@apply relative-pos-overlay;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* // Potential improvements fro flexibility with Style Queries or CSS IF in the future. */
|
|
2
|
+
@utility shell-grid {
|
|
3
|
+
& {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns:
|
|
6
|
+
minmax(0, var(--lsb-width, auto))
|
|
7
|
+
minmax(0, 1fr);
|
|
8
|
+
gap: var(--gap, 0);
|
|
9
|
+
height: 100dvh;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:has(> header) {
|
|
13
|
+
grid-template-rows: auto 1fr;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:has(> .right-sidebar) {
|
|
17
|
+
grid-template-columns:
|
|
18
|
+
minmax(0, var(--lsb-width, auto))
|
|
19
|
+
minmax(0, var(--content-width, 1fr))
|
|
20
|
+
minmax(0, var(--rsb-width, auto));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& > .is(header, .Full) {
|
|
24
|
+
grid-column: 1 / -1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .left-sidebar,
|
|
28
|
+
> .right-sidebar,
|
|
29
|
+
> .content {
|
|
30
|
+
overflow: auto;
|
|
31
|
+
grid-column-end: span var(--span, 1);
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@utility card {
|
|
2
|
+
& {
|
|
3
|
+
padding: var(--padding, 1rem);
|
|
4
|
+
border: var(--border-width) var(--border-style) var(--border-color);
|
|
5
|
+
border-radius: var(--radius);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@utility card-split {
|
|
10
|
+
& {
|
|
11
|
+
@apply card;
|
|
12
|
+
|
|
13
|
+
> *,
|
|
14
|
+
:where(astro-slot, astro-island, astro-content) > * {
|
|
15
|
+
margin: var(--nudge, 0);
|
|
16
|
+
padding: var(--padding, 1rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.card-split {
|
|
20
|
+
/* Increase specificity to overwrite padding and gap utilities used on card-split. */
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
gap: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
|
|
25
|
+
> *,
|
|
26
|
+
:where(astro-slot, astro-island, astro-content) > * {
|
|
27
|
+
border-radius: calc(var(--radius) - var(--nudge));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Adjust borders */
|
|
32
|
+
&:where(.divider-between-x, .divider-between-horizontal)
|
|
33
|
+
> :where(.card-split) {
|
|
34
|
+
border-width: 0;
|
|
35
|
+
border-top-width: var(--border-width);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where(.divider-between-y, .divider-between-vertical)
|
|
39
|
+
> :where(.card-split) {
|
|
40
|
+
border-width: 0;
|
|
41
|
+
border-left-width: var(--border-width);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/*********************
|
|
47
|
+
* Aliases *
|
|
48
|
+
*********************/
|
|
49
|
+
@utility box {
|
|
50
|
+
@apply card;
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Transfers outlines from the focusable element within to the container */
|
|
2
|
+
@utility has-focus-within {
|
|
3
|
+
&:focus-within {
|
|
4
|
+
outline: var(--outline-width) var(--outline-style) transparent;
|
|
5
|
+
outline-offset: var(--outline-offset);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
*:focus,
|
|
9
|
+
*:focus-visible {
|
|
10
|
+
outline-color: transparent;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*********************
|
|
2
|
+
* Hero Heading *
|
|
3
|
+
*********************/
|
|
4
|
+
@utility hero-heading {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--gap, 0.25em);
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
|
|
10
|
+
> :where(.hero-eyebrow) {
|
|
11
|
+
font-size: var(--eyebrow-size, 0.6em);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> *,
|
|
15
|
+
> *:where(.contents) > *,
|
|
16
|
+
> *:where(astro-island, astro-slot) > * {
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@utility hero-heading-start {
|
|
22
|
+
& {
|
|
23
|
+
@apply hero-heading;
|
|
24
|
+
text-align: start;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@utility hero-heading-center {
|
|
29
|
+
& {
|
|
30
|
+
@apply hero-heading;
|
|
31
|
+
align-self: center;
|
|
32
|
+
margin-inline: auto;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@utility hero-heading-end {
|
|
38
|
+
& {
|
|
39
|
+
@apply hero-heading;
|
|
40
|
+
align-self: end;
|
|
41
|
+
margin-inline-start: auto;
|
|
42
|
+
text-align: end;
|
|
43
|
+
}
|
|
44
|
+
}
|