Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit 6e7e37f

Browse files
authored
Merge pull request #6 from IBM/5-stretching-rows
fix(scss): switch fixed rows to minmax for dynamic content
2 parents ed82d7e + 358f852 commit 6e7e37f

21 files changed

+46
-28
lines changed

bin/src/scss/_core.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ body {
9191
@include gridLegacyWrapper($includeFlexFallback) {
9292
@include gridColumns($breakpoint, $first, $last) {
9393
display: grid;
94-
grid-auto-rows: $rowHeight * 1rem;
94+
grid-auto-rows: minmax($rowHeight * 1rem, min-content);
9595
}
9696
@include gridVariables($breakpoint, $first, $rows, $rowHeight);
9797
}
Binary file not shown.

examples/bootstrap/css-gridish/css/bootstrap-grid-legacy.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ body {
276276
@supports (display: grid) {
277277
.bootstrap-grid {
278278
display: grid;
279-
grid-auto-rows: 1rem;
279+
grid-auto-rows: minmax(1rem, min-content);
280280
grid-template-columns: repeat(auto-fill, 8.33333vw); }
281281
.bootstrap-grid.bootstrap-grid--fixed-columns {
282282
grid-template-columns: repeat(auto-fill, 3rem); }

examples/bootstrap/css-gridish/css/bootstrap-grid-legacy.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap/css-gridish/css/bootstrap-grid.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ body {
5757

5858
.bootstrap-grid {
5959
display: grid;
60-
grid-auto-rows: 1rem;
60+
grid-auto-rows: minmax(1rem, min-content);
6161
grid-template-columns: repeat(auto-fill, 8.33333vw); }
6262
.bootstrap-grid.bootstrap-grid--fixed-columns {
6363
grid-template-columns: repeat(auto-fill, 3rem); }

examples/bootstrap/css-gridish/css/bootstrap-grid.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/bootstrap/css-gridish/scss/_core.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ body {
9191
@include gridLegacyWrapper($includeFlexFallback) {
9292
@include gridColumns($breakpoint, $first, $last) {
9393
display: grid;
94-
grid-auto-rows: $rowHeight * 1rem;
94+
grid-auto-rows: minmax($rowHeight * 1rem, min-content);
9595
}
9696
@include gridVariables($breakpoint, $first, $rows, $rowHeight);
9797
}
0 Bytes
Binary file not shown.

examples/carbon/css-gridish/css/bx-grid-legacy.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ body {
301301
@supports (display: grid) {
302302
.bx-grid {
303303
display: grid;
304-
grid-auto-rows: 0.5rem;
304+
grid-auto-rows: minmax(0.5rem, min-content);
305305
grid-template-columns: repeat(auto-fill, calc(8.33333vw - 0.83333vw)); }
306306
.bx-grid.bx-grid--fixed-columns {
307307
grid-template-columns: repeat(auto-fill, 1.66667rem); }

0 commit comments

Comments
 (0)