@obosbbl/grunnmuren-tailwind 2.4.7 → 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 +22 -22
- 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,7 +114,7 @@
|
|
|
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 */
|
|
@@ -226,33 +226,33 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
@utility container {
|
|
229
|
-
@apply w-full
|
|
229
|
+
@apply mx-auto w-full max-w-(--container-width) px-(--container-gutter-width);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
@utility container-prose {
|
|
233
|
-
@apply w-full px-(--container-gutter-width)
|
|
233
|
+
@apply mx-auto w-full px-(--container-gutter-width);
|
|
234
234
|
max-width: 45.5rem;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
/*** Typography styles ***/
|
|
238
238
|
@utility heading-xl {
|
|
239
|
-
@apply font-display
|
|
239
|
+
@apply font-display text-[2.8125rem]/[3.625rem] font-semibold lg:text-[3.9375rem]/[5.125rem];
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
@utility heading-l {
|
|
243
|
-
@apply font-display
|
|
243
|
+
@apply font-display text-[1.8125rem]/[2.75rem] font-semibold lg:text-[2.25rem]/[3.5rem];
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
@utility heading-m {
|
|
247
|
-
@apply font-text
|
|
247
|
+
@apply font-text text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
@utility heading-s {
|
|
251
|
-
@apply font-text
|
|
251
|
+
@apply font-text text-[1.1875rem]/[1.875rem] font-medium lg:text-[1.3125rem]/[2.125rem];
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
@utility heading-xs {
|
|
255
|
-
@apply font-text
|
|
255
|
+
@apply font-text text-[1.125rem]/[1.75rem] font-medium lg:text-[1.1875rem]/[1.9375rem];
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
@utility paragraph {
|
|
@@ -260,11 +260,11 @@
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
@utility lead {
|
|
263
|
-
@apply
|
|
263
|
+
@apply text-[1.4375rem]/[2.25rem] font-medium lg:text-[1.625rem]/[2.5625rem];
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
@utility blockquote {
|
|
267
|
-
@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];
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
@utility description {
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
/*** Stepper component styles ***/
|
|
329
329
|
.stepper-container,
|
|
330
330
|
[data-slot='stepper-container'] {
|
|
331
|
-
@apply relative max-lg:
|
|
331
|
+
@apply relative max-lg:min-w-full max-lg:overflow-hidden;
|
|
332
332
|
/** Make room for the focus outline */
|
|
333
333
|
@apply max-lg:px-1;
|
|
334
334
|
}
|
|
@@ -340,11 +340,11 @@
|
|
|
340
340
|
|
|
341
341
|
[data-slot='step'] {
|
|
342
342
|
counter-increment: step-counter;
|
|
343
|
-
@apply flex items-center gap-x-2
|
|
343
|
+
@apply relative flex items-center gap-x-2 not-last:grow max-lg:my-1.5;
|
|
344
344
|
|
|
345
345
|
&::before {
|
|
346
346
|
content: counter(step-counter);
|
|
347
|
-
@apply
|
|
347
|
+
@apply border-blue-dark grid size-8 shrink-0 place-content-center rounded-full border-2 font-semibold;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
/** Place the focus styles on the ::before element instead of the link, since the link text is not visible on smaller screens */
|
|
@@ -355,14 +355,14 @@
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
[data-slot='link'] {
|
|
358
|
-
@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;
|
|
359
359
|
@apply focus-visible:outline-none;
|
|
360
360
|
/** Create a 44x44 px clickable area, where the step number next to each link will also be covered **/
|
|
361
|
-
@apply
|
|
361
|
+
@apply -my-2.5 py-2.5 lg:-ml-11 lg:pl-11;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
&::before {
|
|
365
|
-
@apply
|
|
365
|
+
@apply text-blue-dark bg-white;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
&[data-state='completed'] {
|
|
@@ -374,16 +374,16 @@
|
|
|
374
374
|
/* order matters here, as data-current selector needs to come after completed state selector */
|
|
375
375
|
&[data-current='true'] {
|
|
376
376
|
&::before {
|
|
377
|
-
@apply bg-sky-light
|
|
377
|
+
@apply bg-sky-light text-blue-dark border-4;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
svg {
|
|
382
|
-
@apply
|
|
382
|
+
@apply bg-blue-dark absolute -top-1.5 left-4.5 size-5 rounded-full border-2 border-white text-white;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
[data-slot='progress-bar'] {
|
|
386
|
-
@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;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
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) {
|