tailwindcss/src/plugins/position.js

15 lines
371 B
JavaScript
Raw Normal View History

2019-02-28 12:33:10 -05:00
export default function() {
return function({ addUtilities, variants }) {
2019-01-11 12:29:33 -05:00
addUtilities(
{
'.static': { position: 'static' },
'.fixed': { position: 'fixed' },
'.absolute': { position: 'absolute' },
'.relative': { position: 'relative' },
'.sticky': { position: 'sticky' },
2019-01-09 13:23:48 -05:00
},
variants('position')
2019-01-11 12:29:33 -05:00
)
2019-01-09 13:23:48 -05:00
}
}