UNPKG

789 BJavaScriptView Raw
1/*!
2 * Xtend UI (https://xtendui.com/)
3 * @copyright (c) 2017-2022 Riccardo Caroli
4 * @license MIT (https://github.com/xtendui/xtendui/blob/master/LICENSE.txt)
5 */
6
7module.exports = {
8 variants: ['responsive'],
9 utility: {
10 '.xt-tooltip-static': {
11 padding: 0,
12 top: '100% !important',
13 left: '0 !important',
14 right: '0 !important',
15 },
16 },
17 component: theme => ({
18 '.xt-tooltip': {
19 position: 'absolute',
20 zIndex: theme('zIndex.tooltip'),
21 margin: '0 !important',
22 '&:not(.on):not(.in):not(.out)': {
23 display: 'none',
24 },
25 '&.out': {
26 pointerEvents: 'none',
27 },
28 '> .xt-arrow': {
29 position: 'absolute',
30 pointerEvents: 'none',
31 transform: 'rotate(45deg)',
32 },
33 },
34 }),
35}