@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "2.4.7",
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.1"
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-black antialiased font-normal font-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 flex-col min-h-screen;
103
+ @apply flex min-h-screen flex-col;
104
104
  }
105
105
 
106
106
  @utility page-layout-main {
107
- @apply bg-white grow;
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 grid;
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 px-(--container-gutter-width) mx-auto max-w-(--container-width);
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) mx-auto;
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 font-semibold text-[2.8125rem]/[3.625rem] lg:text-[3.9375rem]/[5.125rem];
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 font-semibold text-[1.8125rem]/[2.75rem] lg:text-[2.25rem]/[3.5rem];
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 font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
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 font-medium text-[1.1875rem]/[1.875rem] lg:text-[1.3125rem]/[2.125rem];
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 font-medium text-[1.125rem]/[1.75rem] lg:text-[1.1875rem]/[1.9375rem];
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 font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
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-medium italic grid grid-cols-[3rem_1fr] gap-x-[0.4375rem] pt-4 text-[1.625rem]/[2.5625rem] lg:text-[1.4375rem]/[2.25rem] before:text-[4.6875rem]/[1.6875rem] before:font-display before:not-italic before:content-["“"];
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:overflow-hidden max-lg:min-w-full;
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 relative max-lg:my-1.5 not-last:grow;
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 shrink-0 font-semibold size-8 border-2 rounded-full border-blue-dark grid place-content-center;
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:opacity-0 max-lg:max-w-11 max-lg:overflow-x-hidden;
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 py-2.5 lg:pl-11 lg:-ml-11 -my-2.5;
361
+ @apply -my-2.5 py-2.5 lg:-ml-11 lg:pl-11;
362
362
  }
363
363
 
364
364
  &::before {
365
- @apply bg-white text-blue-dark;
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 border-4 text-blue-dark;
377
+ @apply bg-sky-light text-blue-dark border-4;
378
378
  }
379
379
  }
380
380
 
381
381
  svg {
382
- @apply text-white absolute border-2 border-white bg-blue-dark rounded-full left-4.5 -top-1.5 size-5;
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:w-14 lg:rotate-90 lg:absolute lg:-left-3 lg:px-1.5 lg:-bottom-[calc(100%-2px)];
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
  }
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  &:where([class~='lead']) {
96
- @apply font-medium text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem];
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 focus-visible:outline-focus-offset [&>svg]:shrink-0;
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-medium italic grid grid-cols-[3rem_1fr] gap-x-[0.4375rem] pt-4 text-[1.4375rem]/[2.25rem] lg:text-[1.625rem]/[2.5625rem] before:text-[4.6875rem]/[1.6875rem] before:font-display before:not-italic before:content-["“"];
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 text-(--tw-prose-code) py-0.5 px-2 rounded-sm border border-gray bg-gray-lightest whitespace-nowrap font-semibold text-sm;
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) {