Skip to content

Commit 6312c76

Browse files
authored
Merge pull request #1283 from tailwindcss/max-width-none
Add max-w-none utility
2 parents 009f52d + de5c786 commit 6312c76

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

__tests__/fixtures/tailwind-output-important.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5009,6 +5009,10 @@ video {
50095009
max-height: 100vh !important;
50105010
}
50115011

5012+
.max-w-none {
5013+
max-width: none !important;
5014+
}
5015+
50125016
.max-w-xs {
50135017
max-width: 20rem !important;
50145018
}
@@ -14279,6 +14283,10 @@ video {
1427914283
max-height: 100vh !important;
1428014284
}
1428114285

14286+
.sm\:max-w-none {
14287+
max-width: none !important;
14288+
}
14289+
1428214290
.sm\:max-w-xs {
1428314291
max-width: 20rem !important;
1428414292
}
@@ -23550,6 +23558,10 @@ video {
2355023558
max-height: 100vh !important;
2355123559
}
2355223560

23561+
.md\:max-w-none {
23562+
max-width: none !important;
23563+
}
23564+
2355323565
.md\:max-w-xs {
2355423566
max-width: 20rem !important;
2355523567
}
@@ -32821,6 +32833,10 @@ video {
3282132833
max-height: 100vh !important;
3282232834
}
3282332835

32836+
.lg\:max-w-none {
32837+
max-width: none !important;
32838+
}
32839+
3282432840
.lg\:max-w-xs {
3282532841
max-width: 20rem !important;
3282632842
}
@@ -42092,6 +42108,10 @@ video {
4209242108
max-height: 100vh !important;
4209342109
}
4209442110

42111+
.xl\:max-w-none {
42112+
max-width: none !important;
42113+
}
42114+
4209542115
.xl\:max-w-xs {
4209642116
max-width: 20rem !important;
4209742117
}

__tests__/fixtures/tailwind-output.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5009,6 +5009,10 @@ video {
50095009
max-height: 100vh;
50105010
}
50115011

5012+
.max-w-none {
5013+
max-width: none;
5014+
}
5015+
50125016
.max-w-xs {
50135017
max-width: 20rem;
50145018
}
@@ -14279,6 +14283,10 @@ video {
1427914283
max-height: 100vh;
1428014284
}
1428114285

14286+
.sm\:max-w-none {
14287+
max-width: none;
14288+
}
14289+
1428214290
.sm\:max-w-xs {
1428314291
max-width: 20rem;
1428414292
}
@@ -23550,6 +23558,10 @@ video {
2355023558
max-height: 100vh;
2355123559
}
2355223560

23561+
.md\:max-w-none {
23562+
max-width: none;
23563+
}
23564+
2355323565
.md\:max-w-xs {
2355423566
max-width: 20rem;
2355523567
}
@@ -32821,6 +32833,10 @@ video {
3282132833
max-height: 100vh;
3282232834
}
3282332835

32836+
.lg\:max-w-none {
32837+
max-width: none;
32838+
}
32839+
3282432840
.lg\:max-w-xs {
3282532841
max-width: 20rem;
3282632842
}
@@ -42092,6 +42108,10 @@ video {
4209242108
max-height: 100vh;
4209342109
}
4209442110

42111+
.xl\:max-w-none {
42112+
max-width: none;
42113+
}
42114+
4209542115
.xl\:max-w-xs {
4209642116
max-width: 20rem;
4209742117
}

stubs/defaultConfig.stub.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ module.exports = {
302302
screen: '100vh',
303303
},
304304
maxWidth: {
305+
none: 'none',
305306
xs: '20rem',
306307
sm: '24rem',
307308
md: '28rem',

0 commit comments

Comments
 (0)