@letsprogram/ng-oat 0.1.7 → 0.1.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/assets/oat/css/grid.css +324 -87
- package/assets/oat/css/utilities.css +772 -198
- package/assets/oat/oat.css +10 -5
- package/package.json +1 -1
package/assets/oat/oat.css
CHANGED
|
@@ -1387,18 +1387,23 @@
|
|
|
1387
1387
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
/*
|
|
1391
|
-
|
|
1390
|
+
/* .grid template-columns use @media (viewport) — a container cannot query
|
|
1391
|
+
* its own size via @container; those rules would query the *parent* container,
|
|
1392
|
+
* causing mismatches in sidebar layouts where content width < 1024px. */
|
|
1393
|
+
@media (min-width: 640px) {
|
|
1392
1394
|
.grid {
|
|
1393
1395
|
grid-template-columns: repeat(2, 1fr);
|
|
1394
1396
|
}
|
|
1395
1397
|
}
|
|
1396
1398
|
|
|
1397
|
-
@
|
|
1399
|
+
@media (min-width: 1024px) {
|
|
1398
1400
|
.grid {
|
|
1399
1401
|
grid-template-columns: repeat(var(--grid-cols, 12), 1fr);
|
|
1400
1402
|
}
|
|
1403
|
+
}
|
|
1401
1404
|
|
|
1405
|
+
/* Children's column span responds to the .grid container's own width */
|
|
1406
|
+
@container (min-width: 640px) {
|
|
1402
1407
|
.grid>* {
|
|
1403
1408
|
grid-column: span var(--span, 1);
|
|
1404
1409
|
}
|
|
@@ -1417,7 +1422,7 @@
|
|
|
1417
1422
|
--grid-cols: 4;
|
|
1418
1423
|
}
|
|
1419
1424
|
|
|
1420
|
-
@
|
|
1425
|
+
@media (min-width: 640px) {
|
|
1421
1426
|
|
|
1422
1427
|
.grid.cols-2,
|
|
1423
1428
|
.grid.cols-3,
|
|
@@ -1426,7 +1431,7 @@
|
|
|
1426
1431
|
}
|
|
1427
1432
|
}
|
|
1428
1433
|
|
|
1429
|
-
@
|
|
1434
|
+
@media (min-width: 1024px) {
|
|
1430
1435
|
.grid.cols-2 {
|
|
1431
1436
|
grid-template-columns: repeat(2, 1fr);
|
|
1432
1437
|
}
|
package/package.json
CHANGED