xtendui
Version:
Xtend UI is a powerful frontend library of Tailwind CSS components enhanced by vanilla js. It helps you build interfaces with advanced interactions and animations.
32 lines (30 loc) • 680 B
JavaScript
/*!
* Xtend UI (https://xtendui.github.io/xtendui/)
* @copyright (c) 2017-2026 Riccardo Caroli
* @license MIT (https://github.com/xtendui/xtendui/blob/master/LICENSE.txt)
*/
module.exports = {
variants: ['responsive'],
utility: {
'.xt-drop-static': {
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',
},
},
}),
}