2020-10-20 05:04:18 +00:00

34 lines
601 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _default() {
return function ({
addUtilities,
variants,
target
}) {
addUtilities({
'.static': {
position: 'static'
},
'.fixed': {
position: 'fixed'
},
'.absolute': {
position: 'absolute'
},
'.relative': {
position: 'relative'
},
...(target('position') === 'ie11' ? {} : {
'.sticky': {
position: 'sticky'
}
})
}, variants('position'));
};
}