@obosbbl/grunnmuren-tailwind 2.4.3 → 2.4.5
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 +1 -1
- package/tailwind-base.css +57 -58
package/package.json
CHANGED
package/tailwind-base.css
CHANGED
|
@@ -262,34 +262,9 @@
|
|
|
262
262
|
|
|
263
263
|
@layer components {
|
|
264
264
|
/*** Link List component styles ***/
|
|
265
|
-
|
|
266
|
-
@apply @container;
|
|
267
|
-
|
|
268
|
-
&:has([data-slot="heading"]) {
|
|
269
|
-
.link-list,
|
|
270
|
-
[data-slot="link-list"] {
|
|
271
|
-
@apply overflow-visible;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
[data-slot="heading"] {
|
|
276
|
-
@apply p-1.25;
|
|
277
|
-
|
|
278
|
-
[data-slot="link"] {
|
|
279
|
-
@apply py-2.25;
|
|
280
|
-
& > svg {
|
|
281
|
-
@apply text-base;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
&:not(:has([data-slot="link"])) {
|
|
286
|
-
@apply my-2.25;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
265
|
+
[data-layout="grid"] {
|
|
290
266
|
[data-slot="link-list"] {
|
|
291
267
|
@apply @sm:gap-x-4 @md:gap-x-9 @lg:gap-x-12 @xl:gap-x-16;
|
|
292
|
-
|
|
293
268
|
&:has([data-slot="link-list-item"]:nth-child(6)):not(
|
|
294
269
|
:has([data-slot="link-list-item"]:nth-child(9):last-child)
|
|
295
270
|
):not(:has([data-slot="link-list-item"]:nth-child(11))) {
|
|
@@ -302,42 +277,66 @@
|
|
|
302
277
|
}
|
|
303
278
|
}
|
|
304
279
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
@apply min-w-fit overflow-hidden grid auto-rows-max gap-y-px;
|
|
280
|
+
/*** Stepper component styles ***/
|
|
281
|
+
.stepper-container,
|
|
282
|
+
[data-slot="stepper-container"] {
|
|
283
|
+
@apply relative max-lg:overflow-hidden max-lg:min-w-full;
|
|
284
|
+
/** Make room for the focus outline */
|
|
285
|
+
@apply max-lg:px-1;
|
|
312
286
|
}
|
|
313
287
|
|
|
314
|
-
.
|
|
315
|
-
[data-slot="
|
|
316
|
-
|
|
317
|
-
@apply
|
|
318
|
-
[data-slot="link"] {
|
|
319
|
-
@apply paragraph;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
288
|
+
.stepper,
|
|
289
|
+
[data-slot="stepper"] {
|
|
290
|
+
counter-reset: step-counter;
|
|
291
|
+
@apply flex gap-x-2 lg:flex-col lg:gap-y-14;
|
|
322
292
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
[data-slot="link"] {
|
|
327
|
-
@apply flex w-full cursor-pointer justify-between gap-x-2 py-3.5 font-medium no-underline focus-visible:outline-focus;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
293
|
+
[data-slot="step"] {
|
|
294
|
+
counter-increment: step-counter;
|
|
295
|
+
@apply flex items-center gap-x-2 relative max-lg:my-1.5 not-last:grow;
|
|
330
296
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
297
|
+
&::before {
|
|
298
|
+
content: counter(step-counter);
|
|
299
|
+
@apply shrink-0 font-semibold size-8 border-2 rounded-full border-blue-dark grid place-content-center;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/** Place the focus styles on the ::before element instead of the link, since the link text is not visible on smaller screens */
|
|
303
|
+
&:has([data-slot="link"]:focus-visible) {
|
|
304
|
+
&::before {
|
|
305
|
+
@apply outline-focus-offset;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
[data-slot="link"] {
|
|
310
|
+
@apply max-lg:absolute max-lg:opacity-0 max-lg:max-w-11 max-lg:overflow-x-hidden;
|
|
311
|
+
@apply focus-visible:outline-none;
|
|
312
|
+
/** Create a 44x44 px clickable area, where the step number next to each link will also be covered **/
|
|
313
|
+
@apply py-2.5 lg:pl-11 lg:-ml-11 -my-2.5;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&::before {
|
|
317
|
+
@apply bg-white text-blue-dark;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&[data-state="completed"] {
|
|
321
|
+
&::before {
|
|
322
|
+
@apply bg-blue-dark text-white;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* order matters here, as data-current selector needs to come after completed state selector */
|
|
327
|
+
&[data-current="true"] {
|
|
328
|
+
&::before {
|
|
329
|
+
@apply bg-sky-light border-4 text-blue-dark;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
svg {
|
|
334
|
+
@apply text-white absolute border-2 border-white bg-blue-dark rounded-full left-4.5 -top-1.5 size-5;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
[data-slot="progress-bar"] {
|
|
338
|
+
@apply w-4 max-lg:grow lg:w-14 lg:rotate-90 lg:absolute lg:-left-3 lg:px-1.5 lg:-bottom-[calc(100%-2px)];
|
|
339
|
+
}
|
|
341
340
|
}
|
|
342
341
|
}
|
|
343
342
|
}
|