Skip to content

Commit b95cf5f

Browse files
authored
Remove clearfix utility (#2766)
1 parent 18e2bd6 commit b95cf5f

5 files changed

+0
-149
lines changed

__tests__/fixtures/tailwind-output-flagged.css

-36
Original file line numberDiff line numberDiff line change
@@ -11417,12 +11417,6 @@ video {
1141711417
float: none;
1141811418
}
1141911419

11420-
.clearfix:after {
11421-
content: "";
11422-
display: table;
11423-
clear: both;
11424-
}
11425-
1142611420
.clear-left {
1142711421
clear: left;
1142811422
}
@@ -40227,12 +40221,6 @@ video {
4022740221
float: none;
4022840222
}
4022940223

40230-
.sm\:clearfix:after {
40231-
content: "";
40232-
display: table;
40233-
clear: both;
40234-
}
40235-
4023640224
.sm\:clear-left {
4023740225
clear: left;
4023840226
}
@@ -69007,12 +68995,6 @@ video {
6900768995
float: none;
6900868996
}
6900968997

69010-
.md\:clearfix:after {
69011-
content: "";
69012-
display: table;
69013-
clear: both;
69014-
}
69015-
6901668998
.md\:clear-left {
6901768999
clear: left;
6901869000
}
@@ -97787,12 +97769,6 @@ video {
9778797769
float: none;
9778897770
}
9778997771

97790-
.lg\:clearfix:after {
97791-
content: "";
97792-
display: table;
97793-
clear: both;
97794-
}
97795-
9779697772
.lg\:clear-left {
9779797773
clear: left;
9779897774
}
@@ -126567,12 +126543,6 @@ video {
126567126543
float: none;
126568126544
}
126569126545

126570-
.xl\:clearfix:after {
126571-
content: "";
126572-
display: table;
126573-
clear: both;
126574-
}
126575-
126576126546
.xl\:clear-left {
126577126547
clear: left;
126578126548
}
@@ -155347,12 +155317,6 @@ video {
155347155317
float: none;
155348155318
}
155349155319

155350-
.\32xl\:clearfix:after {
155351-
content: "";
155352-
display: table;
155353-
clear: both;
155354-
}
155355-
155356155320
.\32xl\:clear-left {
155357155321
clear: left;
155358155322
}

__tests__/fixtures/tailwind-output-important.css

-36
Original file line numberDiff line numberDiff line change
@@ -11417,12 +11417,6 @@ video {
1141711417
float: none !important;
1141811418
}
1141911419

11420-
.clearfix:after {
11421-
content: "" !important;
11422-
display: table !important;
11423-
clear: both !important;
11424-
}
11425-
1142611420
.clear-left {
1142711421
clear: left !important;
1142811422
}
@@ -40227,12 +40221,6 @@ video {
4022740221
float: none !important;
4022840222
}
4022940223

40230-
.sm\:clearfix:after {
40231-
content: "" !important;
40232-
display: table !important;
40233-
clear: both !important;
40234-
}
40235-
4023640224
.sm\:clear-left {
4023740225
clear: left !important;
4023840226
}
@@ -69007,12 +68995,6 @@ video {
6900768995
float: none !important;
6900868996
}
6900968997

69010-
.md\:clearfix:after {
69011-
content: "" !important;
69012-
display: table !important;
69013-
clear: both !important;
69014-
}
69015-
6901668998
.md\:clear-left {
6901768999
clear: left !important;
6901869000
}
@@ -97787,12 +97769,6 @@ video {
9778797769
float: none !important;
9778897770
}
9778997771

97790-
.lg\:clearfix:after {
97791-
content: "" !important;
97792-
display: table !important;
97793-
clear: both !important;
97794-
}
97795-
9779697772
.lg\:clear-left {
9779797773
clear: left !important;
9779897774
}
@@ -126567,12 +126543,6 @@ video {
126567126543
float: none !important;
126568126544
}
126569126545

126570-
.xl\:clearfix:after {
126571-
content: "" !important;
126572-
display: table !important;
126573-
clear: both !important;
126574-
}
126575-
126576126546
.xl\:clear-left {
126577126547
clear: left !important;
126578126548
}
@@ -155347,12 +155317,6 @@ video {
155347155317
float: none !important;
155348155318
}
155349155319

155350-
.\32xl\:clearfix:after {
155351-
content: "" !important;
155352-
display: table !important;
155353-
clear: both !important;
155354-
}
155355-
155356155320
.\32xl\:clear-left {
155357155321
clear: left !important;
155358155322
}

__tests__/fixtures/tailwind-output-no-color-opacity.css

-36
Original file line numberDiff line numberDiff line change
@@ -9855,12 +9855,6 @@ video {
98559855
float: none;
98569856
}
98579857

9858-
.clearfix:after {
9859-
content: "";
9860-
display: table;
9861-
clear: both;
9862-
}
9863-
98649858
.clear-left {
98659859
clear: left;
98669860
}
@@ -36109,12 +36103,6 @@ video {
3610936103
float: none;
3611036104
}
3611136105

36112-
.sm\:clearfix:after {
36113-
content: "";
36114-
display: table;
36115-
clear: both;
36116-
}
36117-
3611836106
.sm\:clear-left {
3611936107
clear: left;
3612036108
}
@@ -62333,12 +62321,6 @@ video {
6233362321
float: none;
6233462322
}
6233562323

62336-
.md\:clearfix:after {
62337-
content: "";
62338-
display: table;
62339-
clear: both;
62340-
}
62341-
6234262324
.md\:clear-left {
6234362325
clear: left;
6234462326
}
@@ -88557,12 +88539,6 @@ video {
8855788539
float: none;
8855888540
}
8855988541

88560-
.lg\:clearfix:after {
88561-
content: "";
88562-
display: table;
88563-
clear: both;
88564-
}
88565-
8856688542
.lg\:clear-left {
8856788543
clear: left;
8856888544
}
@@ -114781,12 +114757,6 @@ video {
114781114757
float: none;
114782114758
}
114783114759

114784-
.xl\:clearfix:after {
114785-
content: "";
114786-
display: table;
114787-
clear: both;
114788-
}
114789-
114790114760
.xl\:clear-left {
114791114761
clear: left;
114792114762
}
@@ -141005,12 +140975,6 @@ video {
141005140975
float: none;
141006140976
}
141007140977

141008-
.\32xl\:clearfix:after {
141009-
content: "";
141010-
display: table;
141011-
clear: both;
141012-
}
141013-
141014140978
.\32xl\:clear-left {
141015140979
clear: left;
141016140980
}

__tests__/fixtures/tailwind-output.css

-36
Original file line numberDiff line numberDiff line change
@@ -11417,12 +11417,6 @@ video {
1141711417
float: none;
1141811418
}
1141911419

11420-
.clearfix:after {
11421-
content: "";
11422-
display: table;
11423-
clear: both;
11424-
}
11425-
1142611420
.clear-left {
1142711421
clear: left;
1142811422
}
@@ -40227,12 +40221,6 @@ video {
4022740221
float: none;
4022840222
}
4022940223

40230-
.sm\:clearfix:after {
40231-
content: "";
40232-
display: table;
40233-
clear: both;
40234-
}
40235-
4023640224
.sm\:clear-left {
4023740225
clear: left;
4023840226
}
@@ -69007,12 +68995,6 @@ video {
6900768995
float: none;
6900868996
}
6900968997

69010-
.md\:clearfix:after {
69011-
content: "";
69012-
display: table;
69013-
clear: both;
69014-
}
69015-
6901668998
.md\:clear-left {
6901768999
clear: left;
6901869000
}
@@ -97787,12 +97769,6 @@ video {
9778797769
float: none;
9778897770
}
9778997771

97790-
.lg\:clearfix:after {
97791-
content: "";
97792-
display: table;
97793-
clear: both;
97794-
}
97795-
9779697772
.lg\:clear-left {
9779797773
clear: left;
9779897774
}
@@ -126567,12 +126543,6 @@ video {
126567126543
float: none;
126568126544
}
126569126545

126570-
.xl\:clearfix:after {
126571-
content: "";
126572-
display: table;
126573-
clear: both;
126574-
}
126575-
126576126546
.xl\:clear-left {
126577126547
clear: left;
126578126548
}
@@ -155347,12 +155317,6 @@ video {
155347155317
float: none;
155348155318
}
155349155319

155350-
.\32xl\:clearfix:after {
155351-
content: "";
155352-
display: table;
155353-
clear: both;
155354-
}
155355-
155356155320
.\32xl\:clear-left {
155357155321
clear: left;
155358155322
}

src/plugins/float.js

-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ export default function () {
55
'.float-right': { float: 'right' },
66
'.float-left': { float: 'left' },
77
'.float-none': { float: 'none' },
8-
'.clearfix:after': {
9-
content: '""',
10-
display: 'table',
11-
clear: 'both',
12-
},
138
},
149
variants('float')
1510
)

0 commit comments

Comments
 (0)