@obosbbl/grunnmuren-tailwind 2.4.1 → 2.4.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tailwind-base.css +55 -58
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-tailwind",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Grunnmuren Tailwind preset",
5
5
  "repository": {
6
6
  "url": "https://github.com/code-obos/grunnmuren"
package/tailwind-base.css CHANGED
@@ -113,6 +113,61 @@
113
113
  @apply sm:gap-x-4 md:gap-x-9 lg:gap-x-12 xl:gap-x-16;
114
114
  }
115
115
 
116
+ /** Grid base, defines the grid columns and their spacing */
117
+ @utility layout-grid {
118
+ @apply layout-grid-gap-x sm:grid-cols-14 grid;
119
+ }
120
+
121
+ /** Grid container that applies the grid columns, grid spacing and the container component class */
122
+ @utility layout-grid-container {
123
+ @apply layout-grid container;
124
+ /** Make content of the grid span the mid 12 columns as a default (unless it has another explicit col-span class) */
125
+ & > * {
126
+ @apply sm:col-start-2 sm:col-span-12;
127
+ }
128
+ }
129
+
130
+ @utility layout-subgrid-* {
131
+ @apply layout-grid-gap-x grid;
132
+ }
133
+
134
+ @utility layout-subgrid-1 {
135
+ @apply grid-cols-1;
136
+ }
137
+ @utility layout-subgrid-2 {
138
+ @apply grid-cols-2;
139
+ }
140
+ @utility layout-subgrid-3 {
141
+ @apply grid-cols-3;
142
+ }
143
+ @utility layout-subgrid-4 {
144
+ @apply grid-cols-4;
145
+ }
146
+ @utility layout-subgrid-5 {
147
+ @apply grid-cols-5;
148
+ }
149
+ @utility layout-subgrid-6 {
150
+ @apply grid-cols-6;
151
+ }
152
+ @utility layout-subgrid-7 {
153
+ @apply grid-cols-7;
154
+ }
155
+ @utility layout-subgrid-8 {
156
+ @apply grid-cols-8;
157
+ }
158
+ @utility layout-subgrid-9 {
159
+ @apply grid-cols-9;
160
+ }
161
+ @utility layout-subgrid-10 {
162
+ @apply grid-cols-10;
163
+ }
164
+ @utility layout-subgrid-11 {
165
+ @apply grid-cols-11;
166
+ }
167
+ @utility layout-subgrid-12 {
168
+ @apply grid-cols-12;
169
+ }
170
+
116
171
  @utility layout-gap-x {
117
172
  @apply gap-x-2;
118
173
  @apply layout-grid-gap-x;
@@ -202,64 +257,6 @@
202
257
  }
203
258
 
204
259
  @layer components {
205
- /*** Grid Layout ***/
206
-
207
- .layout-grid,
208
- .layout-grid-container {
209
- /** Grid base: defines the grid columns and their spacing */
210
- @apply layout-grid-gap-x sm:grid-cols-14 grid;
211
-
212
- /** Grid container that applies the grid columns, grid spacing and the container component class */
213
- &.layout-grid-container {
214
- @apply container;
215
- /** Make content of the grid span the mid 12 columns as a default (unless it has another explicit col-span class) */
216
- & > * {
217
- @apply sm:col-start-2 sm:col-span-12;
218
- }
219
- }
220
- }
221
-
222
- [class*="layout-subgrid-"] {
223
- @apply layout-grid-gap-x grid;
224
- }
225
-
226
- [class*="layout-subgrid-1"] {
227
- @apply grid-cols-1;
228
- }
229
- [class*="layout-subgrid-2"] {
230
- @apply grid-cols-2;
231
- }
232
- [class*="layout-subgrid-3"] {
233
- @apply grid-cols-3;
234
- }
235
- [class*="layout-subgrid-4"] {
236
- @apply grid-cols-4;
237
- }
238
- [class*="layout-subgrid-5"] {
239
- @apply grid-cols-5;
240
- }
241
- [class*="layout-subgrid-6"] {
242
- @apply grid-cols-6;
243
- }
244
- [class*="layout-subgrid-7"] {
245
- @apply grid-cols-7;
246
- }
247
- [class*="layout-subgrid-8"] {
248
- @apply grid-cols-8;
249
- }
250
- [class*="layout-subgrid-9"] {
251
- @apply grid-cols-9;
252
- }
253
- [class*="layout-subgrid-10"] {
254
- @apply grid-cols-10;
255
- }
256
- [class*="layout-subgrid-11"] {
257
- @apply grid-cols-11;
258
- }
259
- [class*="layout-subgrid-12"] {
260
- @apply grid-cols-12;
261
- }
262
-
263
260
  /*** Link List component styles ***/
264
261
  .link-list-container {
265
262
  @apply @container;