Skip to content

Commit dff0834

Browse files
committed
Rename box-sizing utilities
1 parent 48d0621 commit dff0834

File tree

4 files changed

+84
-84
lines changed

4 files changed

+84
-84
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,6 +3339,14 @@ video {
33393339
border-left-width: 1px !important;
33403340
}
33413341

3342+
.box-border {
3343+
box-sizing: border !important;
3344+
}
3345+
3346+
.box-content {
3347+
box-sizing: content !important;
3348+
}
3349+
33423350
.cursor-auto {
33433351
cursor: auto !important;
33443352
}
@@ -6817,14 +6825,6 @@ video {
68176825
box-shadow: none !important;
68186826
}
68196827

6820-
.box-sizing-border {
6821-
box-sizing: border !important;
6822-
}
6823-
6824-
.box-sizing-content {
6825-
box-sizing: content !important;
6826-
}
6827-
68286828
.fill-current {
68296829
fill: currentColor !important;
68306830
}
@@ -12661,6 +12661,14 @@ video {
1266112661
border-left-width: 1px !important;
1266212662
}
1266312663

12664+
.sm\:box-border {
12665+
box-sizing: border !important;
12666+
}
12667+
12668+
.sm\:box-content {
12669+
box-sizing: content !important;
12670+
}
12671+
1266412672
.sm\:cursor-auto {
1266512673
cursor: auto !important;
1266612674
}
@@ -16139,14 +16147,6 @@ video {
1613916147
box-shadow: none !important;
1614016148
}
1614116149

16142-
.sm\:box-sizing-border {
16143-
box-sizing: border !important;
16144-
}
16145-
16146-
.sm\:box-sizing-content {
16147-
box-sizing: content !important;
16148-
}
16149-
1615016150
.sm\:fill-current {
1615116151
fill: currentColor !important;
1615216152
}
@@ -21984,6 +21984,14 @@ video {
2198421984
border-left-width: 1px !important;
2198521985
}
2198621986

21987+
.md\:box-border {
21988+
box-sizing: border !important;
21989+
}
21990+
21991+
.md\:box-content {
21992+
box-sizing: content !important;
21993+
}
21994+
2198721995
.md\:cursor-auto {
2198821996
cursor: auto !important;
2198921997
}
@@ -25462,14 +25470,6 @@ video {
2546225470
box-shadow: none !important;
2546325471
}
2546425472

25465-
.md\:box-sizing-border {
25466-
box-sizing: border !important;
25467-
}
25468-
25469-
.md\:box-sizing-content {
25470-
box-sizing: content !important;
25471-
}
25472-
2547325473
.md\:fill-current {
2547425474
fill: currentColor !important;
2547525475
}
@@ -31307,6 +31307,14 @@ video {
3130731307
border-left-width: 1px !important;
3130831308
}
3130931309

31310+
.lg\:box-border {
31311+
box-sizing: border !important;
31312+
}
31313+
31314+
.lg\:box-content {
31315+
box-sizing: content !important;
31316+
}
31317+
3131031318
.lg\:cursor-auto {
3131131319
cursor: auto !important;
3131231320
}
@@ -34785,14 +34793,6 @@ video {
3478534793
box-shadow: none !important;
3478634794
}
3478734795

34788-
.lg\:box-sizing-border {
34789-
box-sizing: border !important;
34790-
}
34791-
34792-
.lg\:box-sizing-content {
34793-
box-sizing: content !important;
34794-
}
34795-
3479634796
.lg\:fill-current {
3479734797
fill: currentColor !important;
3479834798
}
@@ -40630,6 +40630,14 @@ video {
4063040630
border-left-width: 1px !important;
4063140631
}
4063240632

40633+
.xl\:box-border {
40634+
box-sizing: border !important;
40635+
}
40636+
40637+
.xl\:box-content {
40638+
box-sizing: content !important;
40639+
}
40640+
4063340641
.xl\:cursor-auto {
4063440642
cursor: auto !important;
4063540643
}
@@ -44108,14 +44116,6 @@ video {
4410844116
box-shadow: none !important;
4410944117
}
4411044118

44111-
.xl\:box-sizing-border {
44112-
box-sizing: border !important;
44113-
}
44114-
44115-
.xl\:box-sizing-content {
44116-
box-sizing: content !important;
44117-
}
44118-
4411944119
.xl\:fill-current {
4412044120
fill: currentColor !important;
4412144121
}

__tests__/fixtures/tailwind-output.css

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,6 +3339,14 @@ video {
33393339
border-left-width: 1px;
33403340
}
33413341

3342+
.box-border {
3343+
box-sizing: border;
3344+
}
3345+
3346+
.box-content {
3347+
box-sizing: content;
3348+
}
3349+
33423350
.cursor-auto {
33433351
cursor: auto;
33443352
}
@@ -6817,14 +6825,6 @@ video {
68176825
box-shadow: none;
68186826
}
68196827

6820-
.box-sizing-border {
6821-
box-sizing: border;
6822-
}
6823-
6824-
.box-sizing-content {
6825-
box-sizing: content;
6826-
}
6827-
68286828
.fill-current {
68296829
fill: currentColor;
68306830
}
@@ -12661,6 +12661,14 @@ video {
1266112661
border-left-width: 1px;
1266212662
}
1266312663

12664+
.sm\:box-border {
12665+
box-sizing: border;
12666+
}
12667+
12668+
.sm\:box-content {
12669+
box-sizing: content;
12670+
}
12671+
1266412672
.sm\:cursor-auto {
1266512673
cursor: auto;
1266612674
}
@@ -16139,14 +16147,6 @@ video {
1613916147
box-shadow: none;
1614016148
}
1614116149

16142-
.sm\:box-sizing-border {
16143-
box-sizing: border;
16144-
}
16145-
16146-
.sm\:box-sizing-content {
16147-
box-sizing: content;
16148-
}
16149-
1615016150
.sm\:fill-current {
1615116151
fill: currentColor;
1615216152
}
@@ -21984,6 +21984,14 @@ video {
2198421984
border-left-width: 1px;
2198521985
}
2198621986

21987+
.md\:box-border {
21988+
box-sizing: border;
21989+
}
21990+
21991+
.md\:box-content {
21992+
box-sizing: content;
21993+
}
21994+
2198721995
.md\:cursor-auto {
2198821996
cursor: auto;
2198921997
}
@@ -25462,14 +25470,6 @@ video {
2546225470
box-shadow: none;
2546325471
}
2546425472

25465-
.md\:box-sizing-border {
25466-
box-sizing: border;
25467-
}
25468-
25469-
.md\:box-sizing-content {
25470-
box-sizing: content;
25471-
}
25472-
2547325473
.md\:fill-current {
2547425474
fill: currentColor;
2547525475
}
@@ -31307,6 +31307,14 @@ video {
3130731307
border-left-width: 1px;
3130831308
}
3130931309

31310+
.lg\:box-border {
31311+
box-sizing: border;
31312+
}
31313+
31314+
.lg\:box-content {
31315+
box-sizing: content;
31316+
}
31317+
3131031318
.lg\:cursor-auto {
3131131319
cursor: auto;
3131231320
}
@@ -34785,14 +34793,6 @@ video {
3478534793
box-shadow: none;
3478634794
}
3478734795

34788-
.lg\:box-sizing-border {
34789-
box-sizing: border;
34790-
}
34791-
34792-
.lg\:box-sizing-content {
34793-
box-sizing: content;
34794-
}
34795-
3479634796
.lg\:fill-current {
3479734797
fill: currentColor;
3479834798
}
@@ -40630,6 +40630,14 @@ video {
4063040630
border-left-width: 1px;
4063140631
}
4063240632

40633+
.xl\:box-border {
40634+
box-sizing: border;
40635+
}
40636+
40637+
.xl\:box-content {
40638+
box-sizing: content;
40639+
}
40640+
4063340641
.xl\:cursor-auto {
4063440642
cursor: auto;
4063540643
}
@@ -44108,14 +44116,6 @@ video {
4410844116
box-shadow: none;
4410944117
}
4411044118

44111-
.xl\:box-sizing-border {
44112-
box-sizing: border;
44113-
}
44114-
44115-
.xl\:box-sizing-content {
44116-
box-sizing: content;
44117-
}
44118-
4411944119
.xl\:fill-current {
4412044120
fill: currentColor;
4412144121
}

src/corePlugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import borderColor from './plugins/borderColor'
1212
import borderRadius from './plugins/borderRadius'
1313
import borderStyle from './plugins/borderStyle'
1414
import borderWidth from './plugins/borderWidth'
15+
import boxSizing from './plugins/boxSizing'
1516
import cursor from './plugins/cursor'
1617
import display from './plugins/display'
1718
import flexDirection from './plugins/flexDirection'
@@ -48,7 +49,6 @@ import position from './plugins/position'
4849
import inset from './plugins/inset'
4950
import resize from './plugins/resize'
5051
import boxShadow from './plugins/boxShadow'
51-
import boxSizing from './plugins/boxSizing'
5252
import fill from './plugins/fill'
5353
import stroke from './plugins/stroke'
5454
import tableLayout from './plugins/tableLayout'
@@ -91,6 +91,7 @@ export default function({ corePlugins: corePluginConfig }) {
9191
borderRadius,
9292
borderStyle,
9393
borderWidth,
94+
boxSizing,
9495
cursor,
9596
display,
9697
flexDirection,
@@ -127,7 +128,6 @@ export default function({ corePlugins: corePluginConfig }) {
127128
inset,
128129
resize,
129130
boxShadow,
130-
boxSizing,
131131
fill,
132132
stroke,
133133
tableLayout,

src/plugins/boxSizing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export default function() {
22
return function({ addUtilities, variants }) {
33
addUtilities(
44
{
5-
'.box-sizing-border': { 'box-sizing': 'border' },
6-
'.box-sizing-content': { 'box-sizing': 'content' },
5+
'.box-border': { 'box-sizing': 'border' },
6+
'.box-content': { 'box-sizing': 'content' },
77
},
88
variants('boxSizing')
99
)

0 commit comments

Comments
 (0)