Skip to content

Commit

Permalink
Add new utilities for grid-auto-columns and grid-auto-rows (#2531)
Browse files Browse the repository at this point in the history
* Add grid-auto-columns/rows utilities

* Add responsive variants for auto-cols/rows utilities

* Update changelog
  • Loading branch information
adamwathan authored Oct 9, 2020
1 parent 0feb064 commit 69845d6
Show file tree
Hide file tree
Showing 9 changed files with 716 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add additional small `rotate` and `skew` values ([#2528](https://github.com/tailwindlabs/tailwindcss/pull/2528))
- Add `xl`, `2xl`, and `3xl` border radius values ([#2529](https://github.com/tailwindlabs/tailwindcss/pull/2529))
- Support disabling dark mode variants globally ([#2530](https://github.com/tailwindlabs/tailwindcss/pull/2530))
- Add new utilities for `grid-auto-columns` and `grid-auto-rows` ([#2531](https://github.com/tailwindlabs/tailwindcss/pull/2531))

## [1.8.12] - 2020-10-07

Expand Down
192 changes: 192 additions & 0 deletions __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -40116,6 +40116,22 @@ video {
grid-template-columns: none;
}

.auto-cols-auto {
grid-auto-columns: auto;
}

.auto-cols-min {
grid-auto-columns: min-content;
}

.auto-cols-max {
grid-auto-columns: max-content;
}

.auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -40312,6 +40328,22 @@ video {
grid-template-rows: none;
}

.auto-rows-auto {
grid-auto-rows: auto;
}

.auto-rows-min {
grid-auto-rows: min-content;
}

.auto-rows-max {
grid-auto-rows: max-content;
}

.auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.row-auto {
grid-row: auto;
}
Expand Down Expand Up @@ -84069,6 +84101,22 @@ video {
grid-template-columns: none;
}

.sm\:auto-cols-auto {
grid-auto-columns: auto;
}

.sm\:auto-cols-min {
grid-auto-columns: min-content;
}

.sm\:auto-cols-max {
grid-auto-columns: max-content;
}

.sm\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.sm\:col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -84265,6 +84313,22 @@ video {
grid-template-rows: none;
}

.sm\:auto-rows-auto {
grid-auto-rows: auto;
}

.sm\:auto-rows-min {
grid-auto-rows: min-content;
}

.sm\:auto-rows-max {
grid-auto-rows: max-content;
}

.sm\:auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.sm\:row-auto {
grid-row: auto;
}
Expand Down Expand Up @@ -127992,6 +128056,22 @@ video {
grid-template-columns: none;
}

.md\:auto-cols-auto {
grid-auto-columns: auto;
}

.md\:auto-cols-min {
grid-auto-columns: min-content;
}

.md\:auto-cols-max {
grid-auto-columns: max-content;
}

.md\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.md\:col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -128188,6 +128268,22 @@ video {
grid-template-rows: none;
}

.md\:auto-rows-auto {
grid-auto-rows: auto;
}

.md\:auto-rows-min {
grid-auto-rows: min-content;
}

.md\:auto-rows-max {
grid-auto-rows: max-content;
}

.md\:auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.md\:row-auto {
grid-row: auto;
}
Expand Down Expand Up @@ -171915,6 +172011,22 @@ video {
grid-template-columns: none;
}

.lg\:auto-cols-auto {
grid-auto-columns: auto;
}

.lg\:auto-cols-min {
grid-auto-columns: min-content;
}

.lg\:auto-cols-max {
grid-auto-columns: max-content;
}

.lg\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.lg\:col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -172111,6 +172223,22 @@ video {
grid-template-rows: none;
}

.lg\:auto-rows-auto {
grid-auto-rows: auto;
}

.lg\:auto-rows-min {
grid-auto-rows: min-content;
}

.lg\:auto-rows-max {
grid-auto-rows: max-content;
}

.lg\:auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.lg\:row-auto {
grid-row: auto;
}
Expand Down Expand Up @@ -215838,6 +215966,22 @@ video {
grid-template-columns: none;
}

.xl\:auto-cols-auto {
grid-auto-columns: auto;
}

.xl\:auto-cols-min {
grid-auto-columns: min-content;
}

.xl\:auto-cols-max {
grid-auto-columns: max-content;
}

.xl\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.xl\:col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -216034,6 +216178,22 @@ video {
grid-template-rows: none;
}

.xl\:auto-rows-auto {
grid-auto-rows: auto;
}

.xl\:auto-rows-min {
grid-auto-rows: min-content;
}

.xl\:auto-rows-max {
grid-auto-rows: max-content;
}

.xl\:auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.xl\:row-auto {
grid-row: auto;
}
Expand Down Expand Up @@ -259761,6 +259921,22 @@ video {
grid-template-columns: none;
}

.\32xl\:auto-cols-auto {
grid-auto-columns: auto;
}

.\32xl\:auto-cols-min {
grid-auto-columns: min-content;
}

.\32xl\:auto-cols-max {
grid-auto-columns: max-content;
}

.\32xl\:auto-cols-fr {
grid-auto-columns: minmax(0, 1fr);
}

.\32xl\:col-auto {
grid-column: auto;
}
Expand Down Expand Up @@ -259957,6 +260133,22 @@ video {
grid-template-rows: none;
}

.\32xl\:auto-rows-auto {
grid-auto-rows: auto;
}

.\32xl\:auto-rows-min {
grid-auto-rows: min-content;
}

.\32xl\:auto-rows-max {
grid-auto-rows: max-content;
}

.\32xl\:auto-rows-fr {
grid-auto-rows: minmax(0, 1fr);
}

.\32xl\:row-auto {
grid-row: auto;
}
Expand Down
Loading

0 comments on commit 69845d6

Please sign in to comment.