first commit
This commit is contained in:
37
resources/css/presets/aura/tooltip/index.js
Normal file
37
resources/css/presets/aura/tooltip/index.js
Normal file
@ -0,0 +1,37 @@
|
||||
export default {
|
||||
root: ({ context, props }) => ({
|
||||
class: [
|
||||
// Position
|
||||
'absolute',
|
||||
// Spacing
|
||||
{
|
||||
'px-1.5': context?.right || context?.left || (!context?.right && !context?.left && !context?.top && !context?.bottom),
|
||||
'py-1.5': context?.top || context?.bottom
|
||||
}
|
||||
]
|
||||
}),
|
||||
arrow: {
|
||||
class: 'hidden'
|
||||
},
|
||||
text: {
|
||||
class: [
|
||||
// Size
|
||||
'text-xs leading-none',
|
||||
|
||||
// Spacing
|
||||
'p-2',
|
||||
|
||||
// Shape
|
||||
'rounded-md',
|
||||
|
||||
// Color
|
||||
'text-surface-900 dark:text-surface-0/80',
|
||||
'bg-surface-0 dark:bg-surface-900',
|
||||
'ring-1 ring-inset ring-surface-200 dark:ring-surface-800 ring-offset-0',
|
||||
|
||||
// Misc
|
||||
'whitespace-pre-line',
|
||||
'break-words'
|
||||
]
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user