Remove position sticky in ie11 mode

This commit is contained in:
Adam Wathan 2020-04-28 16:14:46 -04:00
parent 1117e28c5c
commit a8e27d9728
2 changed files with 8 additions and 22 deletions

View File

@ -8188,10 +8188,6 @@ video {
position: relative;
}
.sticky {
position: sticky;
}
.inset-0 {
top: 0;
right: 0;
@ -19295,10 +19291,6 @@ video {
position: relative;
}
.sm\:sticky {
position: sticky;
}
.sm\:inset-0 {
top: 0;
right: 0;
@ -30403,10 +30395,6 @@ video {
position: relative;
}
.md\:sticky {
position: sticky;
}
.md\:inset-0 {
top: 0;
right: 0;
@ -41511,10 +41499,6 @@ video {
position: relative;
}
.lg\:sticky {
position: sticky;
}
.lg\:inset-0 {
top: 0;
right: 0;
@ -52619,10 +52603,6 @@ video {
position: relative;
}
.xl\:sticky {
position: sticky;
}
.xl\:inset-0 {
top: 0;
right: 0;

View File

@ -1,12 +1,18 @@
export default function() {
return function({ addUtilities, variants }) {
return function({ addUtilities, variants, target }) {
addUtilities(
{
'.static': { position: 'static' },
'.fixed': { position: 'fixed' },
'.absolute': { position: 'absolute' },
'.relative': { position: 'relative' },
'.sticky': { position: 'sticky' },
...(target('position') === 'ie11'
? {}
: {
'.sticky': {
position: 'sticky',
},
}),
},
variants('position')
)