|
1 | 1 | <style> |
2 | 2 | :root { |
3 | | - --site--max-width: min(var(--site--width), 100vw); |
4 | | - --container--main: calc(var(--site--max-width) - var(--site--margin) * 2); |
5 | | - --container--full: calc(100vw - var(--site--margin) * 2); |
6 | | - --container--small: calc(var(--column-width--plus-gutter) * (var(--site--column-count) - 2) - var(--site--gutter)); |
7 | | - --site--gutter-total: calc(var(--site--gutter) * (var(--site--column-count) - 1)); |
8 | | - --column-width--1: calc((var(--container--main) - var(--site--gutter-total)) / var(--site--column-count)); |
9 | | - --column-width--plus-gutter: calc(var(--column-width--1) + var(--site--gutter)); |
10 | | - --column-width--2: calc(var(--column-width--plus-gutter) * 2 - var(--site--gutter)); |
11 | | - --column-width--3: calc(var(--column-width--plus-gutter) * 3 - var(--site--gutter)); |
12 | | - --column-width--4: calc(var(--column-width--plus-gutter) * 4 - var(--site--gutter)); |
13 | | - --column-width--5: calc(var(--column-width--plus-gutter) * 5 - var(--site--gutter)); |
14 | | - --column-width--6: calc(var(--column-width--plus-gutter) * 6 - var(--site--gutter)); |
15 | | - --column-width--7: calc(var(--column-width--plus-gutter) * 7 - var(--site--gutter)); |
16 | | - --column-width--8: calc(var(--column-width--plus-gutter) * 8 - var(--site--gutter)); |
17 | | - --column-width--9: calc(var(--column-width--plus-gutter) * 9 - var(--site--gutter)); |
18 | | - --column-width--10: calc(var(--column-width--plus-gutter) * 10 - var(--site--gutter)); |
19 | | - --column-width--11: calc(var(--column-width--plus-gutter) * 11 - var(--site--gutter)); |
20 | | - --column-width--12: calc(var(--column-width--plus-gutter) * 12 - var(--site--gutter)); |
21 | | - --column-margin--1: calc(var(--column-width--plus-gutter) * 1); |
22 | | - --column-margin--2: calc(var(--column-width--plus-gutter) * 2); |
23 | | - --column-margin--3: calc(var(--column-width--plus-gutter) * 3); |
24 | | - --column-margin--4: calc(var(--column-width--plus-gutter) * 4); |
25 | | - --column-margin--5: calc(var(--column-width--plus-gutter) * 5); |
26 | | - --column-margin--6: calc(var(--column-width--plus-gutter) * 6); |
27 | | - --column-margin--7: calc(var(--column-width--plus-gutter) * 7); |
28 | | - --column-margin--8: calc(var(--column-width--plus-gutter) * 8); |
29 | | - --column-margin--9: calc(var(--column-width--plus-gutter) * 9); |
30 | | - --column-margin--10: calc(var(--column-width--plus-gutter) * 10); |
31 | | - --column-margin--11: calc(var(--column-width--plus-gutter) * 11); |
32 | | - --column-margin--12: calc(var(--column-width--plus-gutter) * 12); |
33 | | - --breakout-start: [full-start] minmax(0, 1fr) [content-start]; |
34 | | - --breakout-end: [content-end] minmax(0, 1fr) [full-end]; |
35 | | - --grid-breakout-single: var(--breakout-start) minmax(0, var(--container--main)) var(--breakout-end); |
36 | | - --grid-breakout: var(--breakout-start) repeat(var(--site--column-count), minmax(0, var(--column-width--1))) var(--breakout-end); |
37 | | - --grid-main: repeat(var(--site--column-count), minmax(0, 1fr)); |
38 | | - --grid-1: repeat(1, minmax(0, 1fr)); |
39 | | - --grid-2: repeat(2, minmax(0, 1fr)); |
40 | | - --grid-3: repeat(3, minmax(0, 1fr)); |
41 | | - --grid-4: repeat(4, minmax(0, 1fr)); |
42 | | - --grid-5: repeat(5, minmax(0, 1fr)); |
43 | | - --grid-6: repeat(6, minmax(0, 1fr)); |
44 | | - --grid-7: repeat(7, minmax(0, 1fr)); |
45 | | - --grid-8: repeat(8, minmax(0, 1fr)); |
46 | | - --grid-9: repeat(9, minmax(0, 1fr)); |
47 | | - --grid-10: repeat(10, minmax(0, 1fr)); |
48 | | - --grid-11: repeat(11, minmax(0, 1fr)); |
49 | | - --grid-12: repeat(12, minmax(0, 1fr)); |
50 | | - --_typography---text-transform--none: none; |
51 | | - --_typography---text-transform--uppercase: uppercase; |
52 | | - --_typography---text-transform--captialize: capitalize; |
53 | | - --_typography---text-transform--lowercase: lowercase; |
54 | | - --align--flex-start: flex-start; |
55 | | - --align--flex-center: center; |
56 | | - --align--flex-end: flex-end; |
57 | | - --align--text-left: left; |
58 | | - --align--text-center: center; |
59 | | - --align--text-right: right; |
| 3 | + --site--max-width: min(var(--site--width), 100vw); |
| 4 | + --container--main: calc(var(--site--max-width) - var(--site--margin) * 2); |
| 5 | + --container--full: calc(100vw - var(--site--margin) * 2); |
| 6 | + --container--small: calc(var(--column-width--plus-gutter) * (var(--site--column-count) - 2) - var(--site--gutter)); |
| 7 | + --site--gutter-total: calc(var(--site--gutter) * (var(--site--column-count) - 1)); |
| 8 | + --column-width--1: calc((var(--container--main) - var(--site--gutter-total)) / var(--site--column-count)); |
| 9 | + --column-width--plus-gutter: calc(var(--column-width--1) + var(--site--gutter)); |
| 10 | + --column-width--2: calc(var(--column-width--plus-gutter) * 2 - var(--site--gutter)); |
| 11 | + --column-width--3: calc(var(--column-width--plus-gutter) * 3 - var(--site--gutter)); |
| 12 | + --column-width--4: calc(var(--column-width--plus-gutter) * 4 - var(--site--gutter)); |
| 13 | + --column-width--5: calc(var(--column-width--plus-gutter) * 5 - var(--site--gutter)); |
| 14 | + --column-width--6: calc(var(--column-width--plus-gutter) * 6 - var(--site--gutter)); |
| 15 | + --column-width--7: calc(var(--column-width--plus-gutter) * 7 - var(--site--gutter)); |
| 16 | + --column-width--8: calc(var(--column-width--plus-gutter) * 8 - var(--site--gutter)); |
| 17 | + --column-width--9: calc(var(--column-width--plus-gutter) * 9 - var(--site--gutter)); |
| 18 | + --column-width--10: calc(var(--column-width--plus-gutter) * 10 - var(--site--gutter)); |
| 19 | + --column-width--11: calc(var(--column-width--plus-gutter) * 11 - var(--site--gutter)); |
| 20 | + --column-width--12: calc(var(--column-width--plus-gutter) * 12 - var(--site--gutter)); |
| 21 | + --column-margin--1: calc(var(--column-width--plus-gutter) * 1); |
| 22 | + --column-margin--2: calc(var(--column-width--plus-gutter) * 2); |
| 23 | + --column-margin--3: calc(var(--column-width--plus-gutter) * 3); |
| 24 | + --column-margin--4: calc(var(--column-width--plus-gutter) * 4); |
| 25 | + --column-margin--5: calc(var(--column-width--plus-gutter) * 5); |
| 26 | + --column-margin--6: calc(var(--column-width--plus-gutter) * 6); |
| 27 | + --column-margin--7: calc(var(--column-width--plus-gutter) * 7); |
| 28 | + --column-margin--8: calc(var(--column-width--plus-gutter) * 8); |
| 29 | + --column-margin--9: calc(var(--column-width--plus-gutter) * 9); |
| 30 | + --column-margin--10: calc(var(--column-width--plus-gutter) * 10); |
| 31 | + --column-margin--11: calc(var(--column-width--plus-gutter) * 11); |
| 32 | + --column-margin--12: calc(var(--column-width--plus-gutter) * 12); |
| 33 | + --breakout-start: [full-start] minmax(0, 1fr) [content-start]; |
| 34 | + --breakout-end: [content-end] minmax(0, 1fr) [full-end]; |
| 35 | + --grid-breakout-single: var(--breakout-start) minmax(0, var(--container--main)) var(--breakout-end); |
| 36 | + --grid-breakout: var(--breakout-start) repeat(var(--site--column-count), minmax(0, var(--column-width--1))) var(--breakout-end); |
| 37 | + --_typography---text-transform--none: none; |
| 38 | + --_typography---text-transform--uppercase: uppercase; |
| 39 | + --_typography---text-transform--captialize: capitalize; |
| 40 | + --_typography---text-transform--lowercase: lowercase; |
| 41 | + --align--start: start; |
| 42 | + --align--center: center; |
| 43 | + --align--end: end; |
60 | 44 | } |
61 | 45 | * { |
62 | 46 | vertical-align: bottom; |
63 | 47 | } |
64 | 48 | ::before, ::after { |
65 | 49 | box-sizing: border-box; |
66 | 50 | } |
| 51 | +html { |
| 52 | + background-color: var(--_theme---background); |
| 53 | +} |
67 | 54 | button { |
68 | 55 | background-color: unset; |
69 | 56 | padding: unset; |
|
86 | 73 | position: relative; |
87 | 74 | } |
88 | 75 | @media (prefers-color-scheme: light) { |
89 | | - option { |
90 | | - color: black; |
91 | | - } |
| 76 | + option { color: black; } |
92 | 77 | } |
93 | 78 | img::selection { |
94 | 79 | background: transparent; |
|
99 | 84 | font-smoothing: antialiased; |
100 | 85 | -webkit-font-smoothing: antialiased; |
101 | 86 | } |
| 87 | +/* Clear Defaults */ |
102 | 88 | a:not([class]) { |
103 | 89 | text-decoration: underline; |
104 | 90 | } |
|
113 | 99 | margin-top: 0; |
114 | 100 | margin-bottom: 0; |
115 | 101 | } |
| 102 | +/* Margin Trim */ |
116 | 103 | :is(.u-margin-trim, .u-rich-text) > :not(:not(.w-condition-invisible) ~ :not(.w-condition-invisible)) { |
117 | 104 | margin-top: 0; |
118 | 105 | } |
119 | 106 | :is(.u-margin-trim, .u-rich-text) > :not(:has(~ :not(.w-condition-invisible))) { |
120 | 107 | margin-bottom: 0; |
121 | 108 | } |
122 | | -.w-richtext a { |
123 | | - position: relative; |
124 | | - z-index: 4; |
125 | | -} |
126 | | -:is([class*="u-text-style-"], .u-rich-text :is(h1,h2,h3,h4,h5,h6,p))::before { |
| 109 | +/* Line Height Trim */ |
| 110 | +:is([class*="u-text-style-"],h1,h2,h3,h4,h5,h6,p):not(.w-richtext,.u-text-trim-off)::before { |
127 | 111 | content: ""; |
128 | 112 | display: table; |
129 | 113 | margin-bottom: calc(-0.5lh + var(--_text-style---trim-top)); |
130 | 114 | } |
131 | | -:is([class*="u-text-style-"], .u-rich-text :is(h1,h2,h3,h4,h5,h6,p))::after { |
| 115 | +:is([class*="u-text-style-"],h1,h2,h3,h4,h5,h6,p):not(.w-richtext,.u-text-trim-off)::after { |
132 | 116 | content: ""; |
133 | 117 | display: table; |
134 | 118 | margin-bottom: calc(-0.5lh + var(--_text-style---trim-bottom)); |
135 | 119 | } |
| 120 | +/* Rich Text Links */ |
| 121 | +.w-richtext a { |
| 122 | + position: relative; |
| 123 | + z-index: 4; |
| 124 | +} |
| 125 | +/* Line Clamp */ |
136 | 126 | .u-line-clamp-1, .u-line-clamp-2, .u-line-clamp-3, .u-line-clamp-4 { |
137 | 127 | -webkit-line-clamp: 1; |
138 | 128 | -webkit-box-orient: vertical; |
139 | 129 | } |
140 | 130 | .u-line-clamp-2 { -webkit-line-clamp: 2; } |
141 | 131 | .u-line-clamp-3 { -webkit-line-clamp: 3; } |
142 | 132 | .u-line-clamp-4 { -webkit-line-clamp: 4; } |
143 | | - |
| 133 | +/* Child Contain */ |
| 134 | +.u-child-contain > * { |
| 135 | + width: 100%; |
| 136 | + max-width: inherit !important; |
| 137 | + margin-inline: 0 !important; |
| 138 | + margin-top: 0 !important; |
| 139 | +} |
144 | 140 | /* Hide */ |
145 | 141 | .u-hide-if-empty:empty, |
146 | 142 | .u-hide-if-empty:not(:has(> :not(.w-condition-invisible))), |
147 | 143 | .u-hide-if-empty-cms:not(:has(.w-dyn-item)), |
148 | | -.w-richtext[class*="u-text-style-"] > :not(h1,h2,h3,h4,h5,h6,p,blockquote,ul,ol,span), |
149 | 144 | .u-embed-js, |
150 | 145 | .u-embed-css { |
151 | 146 | display: none !important; |
152 | 147 | } |
153 | | - |
154 | 148 | /* Focus State */ |
155 | | -a, button, [tabindex], |
156 | | -.w-checkbox-input--inputType-custom, |
157 | | -.w-form-formradioinput--inputType-custom { |
| 149 | +a, button, :where([tabindex]) { |
158 | 150 | outline-offset: var(--focus--offset-outer); |
159 | 151 | } |
160 | 152 | a:focus-visible, |
161 | 153 | button:focus-visible, |
162 | | -[tabindex]:focus-visible, |
163 | | -.w-checkbox:has(:focus-visible) .w-checkbox-input--inputType-custom, |
164 | | -.w-radio:has(:focus-visible) .w-form-formradioinput--inputType-custom { |
| 154 | +[tabindex]:focus-visible { |
165 | 155 | outline-color: var(--_theme---text); |
166 | 156 | outline-width: var(--focus--width); |
167 | 157 | outline-style: solid; |
168 | 158 | } |
169 | | -.w-checkbox-input--inputType-custom.w--redirected-focus, |
170 | | -.w-form-formradioinput--inputType-custom.w--redirected-focus { |
171 | | - box-shadow: none; |
172 | | -} |
173 | | - |
174 | 159 | /* Global / Clickable Component */ |
175 | 160 | .wf-design-mode .g_clickable_wrap { |
176 | 161 | z-index: 0; |
|
181 | 166 | .g_clickable_wrap a[href="#"] ~ button { |
182 | 167 | display: block; |
183 | 168 | } |
| 169 | +/* Responsive */ |
| 170 | +@container (width < 62em) { |
| 171 | + .u-grid-from-large { display: flex; } |
| 172 | +} |
| 173 | +@container (width < 48em) { |
| 174 | + .u-grid-from-medium { display: flex; } |
| 175 | +} |
| 176 | +@container (width < 30em) { |
| 177 | + .u-grid-from-small { display: flex; } |
| 178 | +} |
184 | 179 | </style> |
0 commit comments