Skip to content

Commit

Permalink
Add list-item display utility (#3929)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
  • Loading branch information
neupauer committed Apr 4, 2021
1 parent 1cb060d commit 0b5f5e9
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-flagged.css
Expand Up @@ -10864,6 +10864,10 @@ video {
display: contents;
}

.list-item {
display: list-item;
}

.hidden {
display: none;
}
Expand Down Expand Up @@ -39600,6 +39604,10 @@ video {
display: contents;
}

.sm\:list-item {
display: list-item;
}

.sm\:hidden {
display: none;
}
Expand Down Expand Up @@ -68293,6 +68301,10 @@ video {
display: contents;
}

.md\:list-item {
display: list-item;
}

.md\:hidden {
display: none;
}
Expand Down Expand Up @@ -96986,6 +96998,10 @@ video {
display: contents;
}

.lg\:list-item {
display: list-item;
}

.lg\:hidden {
display: none;
}
Expand Down Expand Up @@ -125679,6 +125695,10 @@ video {
display: contents;
}

.xl\:list-item {
display: list-item;
}

.xl\:hidden {
display: none;
}
Expand Down Expand Up @@ -154372,6 +154392,10 @@ video {
display: contents;
}

.\32xl\:list-item {
display: list-item;
}

.\32xl\:hidden {
display: none;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Expand Up @@ -10864,6 +10864,10 @@ video {
display: contents !important;
}

.list-item {
display: list-item !important;
}

.hidden {
display: none !important;
}
Expand Down Expand Up @@ -39600,6 +39604,10 @@ video {
display: contents !important;
}

.sm\:list-item {
display: list-item !important;
}

.sm\:hidden {
display: none !important;
}
Expand Down Expand Up @@ -68293,6 +68301,10 @@ video {
display: contents !important;
}

.md\:list-item {
display: list-item !important;
}

.md\:hidden {
display: none !important;
}
Expand Down Expand Up @@ -96986,6 +96998,10 @@ video {
display: contents !important;
}

.lg\:list-item {
display: list-item !important;
}

.lg\:hidden {
display: none !important;
}
Expand Down Expand Up @@ -125679,6 +125695,10 @@ video {
display: contents !important;
}

.xl\:list-item {
display: list-item !important;
}

.xl\:hidden {
display: none !important;
}
Expand Down Expand Up @@ -154372,6 +154392,10 @@ video {
display: contents !important;
}

.\32xl\:list-item {
display: list-item !important;
}

.\32xl\:hidden {
display: none !important;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Expand Up @@ -9302,6 +9302,10 @@ video {
display: contents;
}

.list-item {
display: list-item;
}

.hidden {
display: none;
}
Expand Down Expand Up @@ -35482,6 +35486,10 @@ video {
display: contents;
}

.sm\:list-item {
display: list-item;
}

.sm\:hidden {
display: none;
}
Expand Down Expand Up @@ -61619,6 +61627,10 @@ video {
display: contents;
}

.md\:list-item {
display: list-item;
}

.md\:hidden {
display: none;
}
Expand Down Expand Up @@ -87756,6 +87768,10 @@ video {
display: contents;
}

.lg\:list-item {
display: list-item;
}

.lg\:hidden {
display: none;
}
Expand Down Expand Up @@ -113893,6 +113909,10 @@ video {
display: contents;
}

.xl\:list-item {
display: list-item;
}

.xl\:hidden {
display: none;
}
Expand Down Expand Up @@ -140030,6 +140050,10 @@ video {
display: contents;
}

.\32xl\:list-item {
display: list-item;
}

.\32xl\:hidden {
display: none;
}
Expand Down
24 changes: 24 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Expand Up @@ -10864,6 +10864,10 @@ video {
display: contents;
}

.list-item {
display: list-item;
}

.hidden {
display: none;
}
Expand Down Expand Up @@ -39600,6 +39604,10 @@ video {
display: contents;
}

.sm\:list-item {
display: list-item;
}

.sm\:hidden {
display: none;
}
Expand Down Expand Up @@ -68293,6 +68301,10 @@ video {
display: contents;
}

.md\:list-item {
display: list-item;
}

.md\:hidden {
display: none;
}
Expand Down Expand Up @@ -96986,6 +96998,10 @@ video {
display: contents;
}

.lg\:list-item {
display: list-item;
}

.lg\:hidden {
display: none;
}
Expand Down Expand Up @@ -125679,6 +125695,10 @@ video {
display: contents;
}

.xl\:list-item {
display: list-item;
}

.xl\:hidden {
display: none;
}
Expand Down Expand Up @@ -154372,6 +154392,10 @@ video {
display: contents;
}

.\32xl\:list-item {
display: list-item;
}

.\32xl\:hidden {
display: none;
}
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/display.js
Expand Up @@ -59,6 +59,9 @@ export default function () {
'.contents': {
display: 'contents',
},
'.list-item': {
display: 'list-item',
},
},
variants('display')
)
Expand Down

0 comments on commit 0b5f5e9

Please sign in to comment.