Add Tippy.js tooltips to focusable elements
This commit is contained in:
parent
a2fbf908aa
commit
09934a9f8e
11 changed files with 73 additions and 29 deletions
|
|
@ -4,19 +4,19 @@
|
|||
|
||||
/* Tippy tooltips */
|
||||
.tippy-box[data-theme~="bm"] {
|
||||
@apply bg-stone-800 font-sans text-sm text-stone-50 dark:bg-zinc-900 dark:text-zinc-100;
|
||||
@apply bg-stone-900 font-sans text-sm text-stone-50 dark:bg-zinc-700 dark:text-zinc-50;
|
||||
}
|
||||
.tippy-box[data-theme~="bm"][data-placement^="top"] > .tippy-arrow::before {
|
||||
@apply border-t-stone-800 dark:border-t-zinc-900;
|
||||
@apply border-t-stone-900 dark:border-t-zinc-700;
|
||||
}
|
||||
.tippy-box[data-theme~="bm"][data-placement^="bottom"] > .tippy-arrow::before {
|
||||
@apply border-b-stone-800 dark:border-b-zinc-900;
|
||||
@apply border-b-stone-900 dark:border-b-zinc-700;
|
||||
}
|
||||
.tippy-box[data-theme~="bm"][data-placement^="left"] > .tippy-arrow::before {
|
||||
@apply border-l-stone-800 dark:border-l-zinc-900;
|
||||
@apply border-l-stone-900 dark:border-l-zinc-700;
|
||||
}
|
||||
.tippy-box[data-theme~="bm"][data-placement^="right"] > .tippy-arrow::before {
|
||||
@apply border-r-stone-800 dark:border-r-zinc-900;
|
||||
@apply border-r-stone-900 dark:border-r-zinc-700;
|
||||
}
|
||||
|
||||
@layer components {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue