UNPKG

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.

23 lines (21 loc) 613 B
/*! * Xtend UI (https://xtendui.com/) * @copyright (c) 2017 - 2021 Riccardo Caroli * @license MIT (https://github.com/xtendui/xtendui/blob/beta/LICENSE.txt) */ module.exports = { component: theme => ({ '.xt-sticky:not(.xt-sticky-nozindex)': { // needs zIndex because after ScrollTrigger end animations position: 'relative', zIndex: theme('zIndex.sticky') - 1, '&[style*="position: fixed"]': { zIndex: theme('zIndex.sticky'), }, }, '.xt-sticky:not(.xt-sticky-noheight)': { height: 'auto !important', maxHeight: 'none !important', }, }), }