xtendui
Version:
Xtend UI is a powerful frontend library of tailwind components enhanced by vanilla js. It helps you build interfaces with advanced interactions and animations.
34 lines (32 loc) • 732 B
JavaScript
/*!
* Xtend UI (https://xtendui.com/)
* @copyright (c) 2017 - 2021 Riccardo Caroli
* @license MIT (https://github.com/xtendui/xtendui/blob/beta/LICENSE.txt)
*/
module.exports = {
variants: ['responsive'],
utility: {
'.xt-drop-static': {
top: '100% !important',
left: '0 !important',
right: '0 !important',
},
},
component: theme => ({
'.xt-drop': {
position: 'absolute',
zIndex: theme('zIndex.drop'),
'&:not(.on):not(.in):not(.out)': {
display: 'none',
},
'&.out': {
pointerEvents: 'none',
},
'> .xt-arrow': {
position: 'absolute',
pointerEvents: 'none',
transform: 'rotate(45deg)',
},
},
}),
}