mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Don't mix unitless values with units in the same scale
Resolves an issue where `ring-offset-0` didn't actually work because `calc(0 * 1)` fails to compute, need a unit.
This commit is contained in:
parent
e701c818a0
commit
3de0c48bd6
@ -241,7 +241,7 @@ test('the default config can be overridden using the presets key', () => {
|
||||
.then((result) => {
|
||||
const expected = `
|
||||
.min-h-0 {
|
||||
min-height: 0;
|
||||
min-height: 0px;
|
||||
}
|
||||
.min-h-24 {
|
||||
min-height: 24px;
|
||||
@ -291,7 +291,7 @@ test('presets can be functions', () => {
|
||||
.then((result) => {
|
||||
const expected = `
|
||||
.min-h-0 {
|
||||
min-height: 0;
|
||||
min-height: 0px;
|
||||
}
|
||||
.min-h-24 {
|
||||
min-height: 24px;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -29,7 +29,7 @@ module.exports = {
|
||||
},
|
||||
spacing: {
|
||||
px: '1px',
|
||||
0: '0',
|
||||
0: '0px',
|
||||
0.5: '0.125rem',
|
||||
1: '0.25rem',
|
||||
1.5: '0.375rem',
|
||||
@ -106,7 +106,7 @@ module.exports = {
|
||||
}),
|
||||
borderOpacity: (theme) => theme('opacity'),
|
||||
borderRadius: {
|
||||
none: '0',
|
||||
none: '0px',
|
||||
sm: '0.125rem',
|
||||
DEFAULT: '0.25rem',
|
||||
md: '0.375rem',
|
||||
@ -118,7 +118,7 @@ module.exports = {
|
||||
},
|
||||
borderWidth: {
|
||||
DEFAULT: '1px',
|
||||
0: '0',
|
||||
0: '0px',
|
||||
2: '2px',
|
||||
4: '4px',
|
||||
8: '8px',
|
||||
@ -414,7 +414,7 @@ module.exports = {
|
||||
letterSpacing: {
|
||||
tighter: '-0.05em',
|
||||
tight: '-0.025em',
|
||||
normal: '0',
|
||||
normal: '0em',
|
||||
wide: '0.025em',
|
||||
wider: '0.05em',
|
||||
widest: '0.1em',
|
||||
@ -471,12 +471,12 @@ module.exports = {
|
||||
...breakpoints(theme('screens')),
|
||||
}),
|
||||
minHeight: {
|
||||
0: '0',
|
||||
0: '0px',
|
||||
full: '100%',
|
||||
screen: '100vh',
|
||||
},
|
||||
minWidth: {
|
||||
0: '0',
|
||||
0: '0px',
|
||||
full: '100%',
|
||||
min: 'min-content',
|
||||
max: 'max-content',
|
||||
@ -540,7 +540,7 @@ module.exports = {
|
||||
}),
|
||||
ringOffsetColor: (theme) => theme('colors'),
|
||||
ringOffsetWidth: {
|
||||
0: '0',
|
||||
0: '0px',
|
||||
1: '1px',
|
||||
2: '2px',
|
||||
4: '4px',
|
||||
@ -552,7 +552,7 @@ module.exports = {
|
||||
}),
|
||||
ringWidth: {
|
||||
DEFAULT: '3px',
|
||||
0: '0',
|
||||
0: '0px',
|
||||
1: '1px',
|
||||
2: '2px',
|
||||
4: '4px',
|
||||
@ -567,7 +567,7 @@ module.exports = {
|
||||
'-3': '-3deg',
|
||||
'-2': '-2deg',
|
||||
'-1': '-1deg',
|
||||
0: '0',
|
||||
0: '0deg',
|
||||
1: '1deg',
|
||||
2: '2deg',
|
||||
3: '3deg',
|
||||
@ -595,7 +595,7 @@ module.exports = {
|
||||
'-3': '-3deg',
|
||||
'-2': '-2deg',
|
||||
'-1': '-1deg',
|
||||
0: '0',
|
||||
0: '0deg',
|
||||
1: '1deg',
|
||||
2: '2deg',
|
||||
3: '3deg',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user