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.

47 lines (45 loc) 1.1 kB
/*! * 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-slider': { position: 'relative', overflow: 'hidden', // fix page load height without .on slides '&:not([data-xt-slider-init])': { '.xt-slide': { '&:first-child': { display: 'block !important', position: 'relative !important', }, }, }, }, '.xt-slides': { position: 'relative', display: 'flex', flexWrap: 'nowrap', // prevent browser selection '-webkit-user-select': 'none', '-moz-user-select': 'none', '-ms-user-select': 'none', 'user-select': 'none', }, '.xt-slide': { position: 'relative', zIndex: theme('zIndex.slide'), }, '.xt-slide-absolute': { position: 'relative', '&:not(.on)': { position: 'absolute', top: '0', left: '0', right: '0', }, }, }), }