@obosbbl/grunnmuren-tailwind 2.4.6 → 2.4.8
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/package.json +2 -2
- package/tailwind-base.css +58 -32
- package/tailwind-typography.css +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obosbbl/grunnmuren-tailwind",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.8",
|
|
4
4
|
"description": "Grunnmuren Tailwind preset",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"tw-animate-css": "^1.2.5"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"tailwindcss": "4.2.
|
|
22
|
+
"tailwindcss": "4.2.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"tailwindcss": "^4.0.0"
|
package/tailwind-base.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
html {
|
|
81
|
-
@apply text
|
|
81
|
+
@apply font-text font-normal text-black antialiased;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
b {
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
|
|
101
101
|
/*** Layout ***/
|
|
102
102
|
@utility page-layout {
|
|
103
|
-
@apply flex
|
|
103
|
+
@apply flex min-h-screen flex-col;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
@utility page-layout-main {
|
|
107
|
-
@apply bg-white
|
|
107
|
+
@apply grow bg-white;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/** Grid column spacing */
|
|
@@ -114,28 +114,54 @@
|
|
|
114
114
|
|
|
115
115
|
/** Grid base, defines the grid columns and their spacing */
|
|
116
116
|
@utility layout-grid {
|
|
117
|
-
@apply layout-grid-gap-x sm:grid-cols-14
|
|
117
|
+
@apply layout-grid-gap-x grid sm:grid-cols-14;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/** Grid container that applies the grid columns, grid spacing and the container component class */
|
|
121
121
|
@utility layout-grid-container {
|
|
122
122
|
@apply layout-grid container;
|
|
123
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Make content of the grid span the mid 12 columns as a default,
|
|
125
|
+
* unless the child has an explicit col-span or col-end class.
|
|
126
|
+
*
|
|
127
|
+
* We use ^= (starts with) and *= ' ' (space-preceded) to only match classes
|
|
128
|
+
* that apply to the element itself, not descendant selectors like *:col-span-* or **:col-span-*.
|
|
129
|
+
*/
|
|
124
130
|
&
|
|
125
|
-
> *:not(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
> *:not(
|
|
132
|
+
:where(
|
|
133
|
+
[class^='col-span'],
|
|
134
|
+
[class*=' col-span'],
|
|
135
|
+
[class^='col-end'],
|
|
136
|
+
[class*=' col-end'],
|
|
137
|
+
[class^='sm:col-span'],
|
|
138
|
+
[class*=' sm:col-span'],
|
|
139
|
+
[class^='sm:col-end'],
|
|
140
|
+
[class*=' sm:col-end'],
|
|
141
|
+
|
|
142
|
+
)
|
|
129
143
|
) {
|
|
130
144
|
@apply sm:col-span-12;
|
|
131
145
|
}
|
|
132
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Default col-start for grid children.
|
|
149
|
+
* Apply sm:col-start-2 unless the child has an explicit col-start or col-span-full class.
|
|
150
|
+
*/
|
|
133
151
|
&
|
|
134
|
-
> *:not(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
152
|
+
> *:not(
|
|
153
|
+
:where(
|
|
154
|
+
[class^='col-start'],
|
|
155
|
+
[class*=' col-start'],
|
|
156
|
+
[class^='col-span-full'],
|
|
157
|
+
[class*=' col-span-full'],
|
|
158
|
+
[class^='sm:col-start'],
|
|
159
|
+
[class*=' sm:col-start'],
|
|
160
|
+
[class^='sm:col-span-full'],
|
|
161
|
+
[class*=' sm:col-span-full'],
|
|
162
|
+
|
|
163
|
+
)
|
|
164
|
+
) {
|
|
139
165
|
@apply sm:col-start-2;
|
|
140
166
|
}
|
|
141
167
|
}
|
|
@@ -200,33 +226,33 @@
|
|
|
200
226
|
}
|
|
201
227
|
|
|
202
228
|
@utility container {
|
|
203
|
-
@apply w-full
|
|
229
|
+
@apply mx-auto w-full max-w-(--container-width) px-(--container-gutter-width);
|
|
204
230
|
}
|
|
205
231
|
|
|
206
232
|
@utility container-prose {
|
|
207
|
-
@apply w-full px-(--container-gutter-width)
|
|
233
|
+
@apply mx-auto w-full px-(--container-gutter-width);
|
|
208
234
|
max-width: 45.5rem;
|
|
209
235
|
}
|
|
210
236
|
|
|
211
237
|
/*** Typography styles ***/
|
|
212
238
|
@utility heading-xl {
|
|
213
|
-
@apply font-display
|
|
239
|
+
@apply font-display text-[2.8125rem]/[3.625rem] font-semibold lg:text-[3.9375rem]/[5.125rem];
|
|
214
240
|
}
|
|
215
241
|
|
|
216
242
|
@utility heading-l {
|
|
217
|
-
@apply font-display
|
|
243
|
+
@apply font-display text-[1.8125rem]/[2.75rem] font-semibold lg:text-[2.25rem]/[3.5rem];
|
|
218
244
|
}
|
|
219
245
|
|
|
220
246
|
@utility heading-m {
|
|
221
|
-
@apply font-text
|
|
247
|
+
@apply font-text text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
|
|
222
248
|
}
|
|
223
249
|
|
|
224
250
|
@utility heading-s {
|
|
225
|
-
@apply font-text
|
|
251
|
+
@apply font-text text-[1.1875rem]/[1.875rem] font-medium lg:text-[1.3125rem]/[2.125rem];
|
|
226
252
|
}
|
|
227
253
|
|
|
228
254
|
@utility heading-xs {
|
|
229
|
-
@apply font-text
|
|
255
|
+
@apply font-text text-[1.125rem]/[1.75rem] font-medium lg:text-[1.1875rem]/[1.9375rem];
|
|
230
256
|
}
|
|
231
257
|
|
|
232
258
|
@utility paragraph {
|
|
@@ -234,11 +260,11 @@
|
|
|
234
260
|
}
|
|
235
261
|
|
|
236
262
|
@utility lead {
|
|
237
|
-
@apply
|
|
263
|
+
@apply text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
|
|
238
264
|
}
|
|
239
265
|
|
|
240
266
|
@utility blockquote {
|
|
241
|
-
@apply font-
|
|
267
|
+
@apply before:font-display grid grid-cols-[2.6875rem_1fr] pt-4 text-[1.1875rem]/[1.875rem] font-medium italic before:text-[3.5625rem]/[1.5625rem] before:not-italic before:content-["“"] lg:grid-cols-[2.9375rem_1fr] lg:gap-x-[0.375rem] lg:text-[1.3125rem]/[2.125rem] lg:before:text-[3.9375rem]/[1.8125rem];
|
|
242
268
|
}
|
|
243
269
|
|
|
244
270
|
@utility description {
|
|
@@ -302,7 +328,7 @@
|
|
|
302
328
|
/*** Stepper component styles ***/
|
|
303
329
|
.stepper-container,
|
|
304
330
|
[data-slot='stepper-container'] {
|
|
305
|
-
@apply relative max-lg:
|
|
331
|
+
@apply relative max-lg:min-w-full max-lg:overflow-hidden;
|
|
306
332
|
/** Make room for the focus outline */
|
|
307
333
|
@apply max-lg:px-1;
|
|
308
334
|
}
|
|
@@ -314,11 +340,11 @@
|
|
|
314
340
|
|
|
315
341
|
[data-slot='step'] {
|
|
316
342
|
counter-increment: step-counter;
|
|
317
|
-
@apply flex items-center gap-x-2
|
|
343
|
+
@apply relative flex items-center gap-x-2 not-last:grow max-lg:my-1.5;
|
|
318
344
|
|
|
319
345
|
&::before {
|
|
320
346
|
content: counter(step-counter);
|
|
321
|
-
@apply
|
|
347
|
+
@apply border-blue-dark grid size-8 shrink-0 place-content-center rounded-full border-2 font-semibold;
|
|
322
348
|
}
|
|
323
349
|
|
|
324
350
|
/** Place the focus styles on the ::before element instead of the link, since the link text is not visible on smaller screens */
|
|
@@ -329,14 +355,14 @@
|
|
|
329
355
|
}
|
|
330
356
|
|
|
331
357
|
[data-slot='link'] {
|
|
332
|
-
@apply max-lg:absolute max-lg:
|
|
358
|
+
@apply max-lg:absolute max-lg:max-w-11 max-lg:overflow-x-hidden max-lg:opacity-0;
|
|
333
359
|
@apply focus-visible:outline-none;
|
|
334
360
|
/** Create a 44x44 px clickable area, where the step number next to each link will also be covered **/
|
|
335
|
-
@apply
|
|
361
|
+
@apply -my-2.5 py-2.5 lg:-ml-11 lg:pl-11;
|
|
336
362
|
}
|
|
337
363
|
|
|
338
364
|
&::before {
|
|
339
|
-
@apply
|
|
365
|
+
@apply text-blue-dark bg-white;
|
|
340
366
|
}
|
|
341
367
|
|
|
342
368
|
&[data-state='completed'] {
|
|
@@ -348,16 +374,16 @@
|
|
|
348
374
|
/* order matters here, as data-current selector needs to come after completed state selector */
|
|
349
375
|
&[data-current='true'] {
|
|
350
376
|
&::before {
|
|
351
|
-
@apply bg-sky-light
|
|
377
|
+
@apply bg-sky-light text-blue-dark border-4;
|
|
352
378
|
}
|
|
353
379
|
}
|
|
354
380
|
|
|
355
381
|
svg {
|
|
356
|
-
@apply
|
|
382
|
+
@apply bg-blue-dark absolute -top-1.5 left-4.5 size-5 rounded-full border-2 border-white text-white;
|
|
357
383
|
}
|
|
358
384
|
|
|
359
385
|
[data-slot='progress-bar'] {
|
|
360
|
-
@apply w-4 max-lg:grow lg:
|
|
386
|
+
@apply w-4 max-lg:grow lg:absolute lg:-bottom-[calc(100%-2px)] lg:-left-3 lg:w-14 lg:rotate-90 lg:px-1.5;
|
|
361
387
|
}
|
|
362
388
|
}
|
|
363
389
|
}
|
package/tailwind-typography.css
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
&:where([class~='lead']) {
|
|
96
|
-
@apply
|
|
96
|
+
@apply text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
|
|
97
97
|
margin-top: 1.2em;
|
|
98
98
|
margin-bottom: 1.2em;
|
|
99
99
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
color: var(--tw-prose-links);
|
|
103
103
|
text-decoration: underline;
|
|
104
104
|
/** Copied from the Link component: **/
|
|
105
|
-
@apply inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current
|
|
105
|
+
@apply focus-visible:outline-focus-offset inline-flex cursor-pointer items-center gap-1 font-medium hover:no-underline focus-visible:outline-current [&>svg]:shrink-0;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
&:where(strong) {
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&:where(blockquote) {
|
|
198
|
-
@apply font-
|
|
198
|
+
@apply before:font-display grid grid-cols-[2.25rem_1fr] pt-4 text-[1rem]/[1.625rem] font-medium italic before:text-[3rem]/[1.375rem] before:not-italic before:content-["“"] lg:text-[1rem]/[1.6875rem];
|
|
199
199
|
margin-top: 1.6em;
|
|
200
200
|
margin-bottom: 1.6em;
|
|
201
201
|
}
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
&:where(code) {
|
|
288
|
-
@apply
|
|
288
|
+
@apply border-gray bg-gray-lightest rounded-sm border px-2 py-0.5 text-sm font-semibold whitespace-nowrap text-(--tw-prose-code);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
&:where(a code) {
|