Skip to content

Commit

Permalink
* Add ellipsis and no-ellipsis utilities
Browse files Browse the repository at this point in the history
Co-authored-by: Benoît Rouleau <benoit.rouleau@icloud.com>
  • Loading branch information
adamwathan and benface committed Oct 14, 2020
1 parent ae1b3f5 commit ba3d4aa
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 0 deletions.
48 changes: 48 additions & 0 deletions __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -38562,6 +38562,14 @@ video {
--text-opacity: 1;
}

.overflow-ellipsis {
text-overflow: ellipsis;
}

.overflow-clip {
text-overflow: clip;
}

.italic {
font-style: italic;
}
Expand Down Expand Up @@ -82549,6 +82557,14 @@ video {
--text-opacity: 1;
}

.sm\:overflow-ellipsis {
text-overflow: ellipsis;
}

.sm\:overflow-clip {
text-overflow: clip;
}

.sm\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -126506,6 +126522,14 @@ video {
--text-opacity: 1;
}

.md\:overflow-ellipsis {
text-overflow: ellipsis;
}

.md\:overflow-clip {
text-overflow: clip;
}

.md\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -170463,6 +170487,14 @@ video {
--text-opacity: 1;
}

.lg\:overflow-ellipsis {
text-overflow: ellipsis;
}

.lg\:overflow-clip {
text-overflow: clip;
}

.lg\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -214420,6 +214452,14 @@ video {
--text-opacity: 1;
}

.xl\:overflow-ellipsis {
text-overflow: ellipsis;
}

.xl\:overflow-clip {
text-overflow: clip;
}

.xl\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -258377,6 +258417,14 @@ video {
--text-opacity: 1;
}

.\32xl\:overflow-ellipsis {
text-overflow: ellipsis;
}

.\32xl\:overflow-clip {
text-overflow: clip;
}

.\32xl\:italic {
font-style: italic;
}
Expand Down
40 changes: 40 additions & 0 deletions __tests__/fixtures/tailwind-output-ie11.css
Original file line number Diff line number Diff line change
Expand Up @@ -8991,6 +8991,14 @@ video {
color: #702459;
}

.overflow-ellipsis {
text-overflow: ellipsis;
}

.overflow-clip {
text-overflow: clip;
}

.italic {
font-style: italic;
}
Expand Down Expand Up @@ -19821,6 +19829,14 @@ video {
color: #702459;
}

.sm\:overflow-ellipsis {
text-overflow: ellipsis;
}

.sm\:overflow-clip {
text-overflow: clip;
}

.sm\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -30621,6 +30637,14 @@ video {
color: #702459;
}

.md\:overflow-ellipsis {
text-overflow: ellipsis;
}

.md\:overflow-clip {
text-overflow: clip;
}

.md\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -41421,6 +41445,14 @@ video {
color: #702459;
}

.lg\:overflow-ellipsis {
text-overflow: ellipsis;
}

.lg\:overflow-clip {
text-overflow: clip;
}

.lg\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -52221,6 +52253,14 @@ video {
color: #702459;
}

.xl\:overflow-ellipsis {
text-overflow: ellipsis;
}

.xl\:overflow-clip {
text-overflow: clip;
}

.xl\:italic {
font-style: italic;
}
Expand Down
40 changes: 40 additions & 0 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -15827,6 +15827,14 @@ video {
--text-opacity: 1 !important;
}

.overflow-ellipsis {
text-overflow: ellipsis !important;
}

.overflow-clip {
text-overflow: clip !important;
}

.italic {
font-style: italic !important;
}
Expand Down Expand Up @@ -34450,6 +34458,14 @@ video {
--text-opacity: 1 !important;
}

.sm\:overflow-ellipsis {
text-overflow: ellipsis !important;
}

.sm\:overflow-clip {
text-overflow: clip !important;
}

.sm\:italic {
font-style: italic !important;
}
Expand Down Expand Up @@ -53043,6 +53059,14 @@ video {
--text-opacity: 1 !important;
}

.md\:overflow-ellipsis {
text-overflow: ellipsis !important;
}

.md\:overflow-clip {
text-overflow: clip !important;
}

.md\:italic {
font-style: italic !important;
}
Expand Down Expand Up @@ -71636,6 +71660,14 @@ video {
--text-opacity: 1 !important;
}

.lg\:overflow-ellipsis {
text-overflow: ellipsis !important;
}

.lg\:overflow-clip {
text-overflow: clip !important;
}

.lg\:italic {
font-style: italic !important;
}
Expand Down Expand Up @@ -90229,6 +90261,14 @@ video {
--text-opacity: 1 !important;
}

.xl\:overflow-ellipsis {
text-overflow: ellipsis !important;
}

.xl\:overflow-clip {
text-overflow: clip !important;
}

.xl\:italic {
font-style: italic !important;
}
Expand Down
40 changes: 40 additions & 0 deletions __tests__/fixtures/tailwind-output-no-color-opacity.css
Original file line number Diff line number Diff line change
Expand Up @@ -13379,6 +13379,14 @@ video {
color: #702459;
}

.overflow-ellipsis {
text-overflow: ellipsis;
}

.overflow-clip {
text-overflow: clip;
}

.italic {
font-style: italic;
}
Expand Down Expand Up @@ -29554,6 +29562,14 @@ video {
color: #702459;
}

.sm\:overflow-ellipsis {
text-overflow: ellipsis;
}

.sm\:overflow-clip {
text-overflow: clip;
}

.sm\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -45699,6 +45715,14 @@ video {
color: #702459;
}

.md\:overflow-ellipsis {
text-overflow: ellipsis;
}

.md\:overflow-clip {
text-overflow: clip;
}

.md\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -61844,6 +61868,14 @@ video {
color: #702459;
}

.lg\:overflow-ellipsis {
text-overflow: ellipsis;
}

.lg\:overflow-clip {
text-overflow: clip;
}

.lg\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -77989,6 +78021,14 @@ video {
color: #702459;
}

.xl\:overflow-ellipsis {
text-overflow: ellipsis;
}

.xl\:overflow-clip {
text-overflow: clip;
}

.xl\:italic {
font-style: italic;
}
Expand Down
40 changes: 40 additions & 0 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -15827,6 +15827,14 @@ video {
--text-opacity: 1;
}

.overflow-ellipsis {
text-overflow: ellipsis;
}

.overflow-clip {
text-overflow: clip;
}

.italic {
font-style: italic;
}
Expand Down Expand Up @@ -34450,6 +34458,14 @@ video {
--text-opacity: 1;
}

.sm\:overflow-ellipsis {
text-overflow: ellipsis;
}

.sm\:overflow-clip {
text-overflow: clip;
}

.sm\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -53043,6 +53059,14 @@ video {
--text-opacity: 1;
}

.md\:overflow-ellipsis {
text-overflow: ellipsis;
}

.md\:overflow-clip {
text-overflow: clip;
}

.md\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -71636,6 +71660,14 @@ video {
--text-opacity: 1;
}

.lg\:overflow-ellipsis {
text-overflow: ellipsis;
}

.lg\:overflow-clip {
text-overflow: clip;
}

.lg\:italic {
font-style: italic;
}
Expand Down Expand Up @@ -90229,6 +90261,14 @@ video {
--text-opacity: 1;
}

.xl\:overflow-ellipsis {
text-overflow: ellipsis;
}

.xl\:overflow-clip {
text-overflow: clip;
}

.xl\:italic {
font-style: italic;
}
Expand Down
1 change: 1 addition & 0 deletions src/corePluginList.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const corePluginList = [
'textAlign',
'textColor',
'textOpacity',
'textOverflow',
'fontStyle',
'textTransform',
'textDecoration',
Expand Down

0 comments on commit ba3d4aa

Please sign in to comment.