feat: another batch

This commit is contained in:
Herculino Trotta
2025-11-03 01:40:13 -03:00
parent 89b2d0118d
commit 9ade58a003
49 changed files with 822 additions and 493 deletions

View File

@@ -0,0 +1,21 @@
import tippy from 'tippy.js';
import 'tippy.js/dist/tippy.css';
import 'tippy.js/themes/light-border.css';
function initiateTooltips() {
const currentDataTheme = document.documentElement.getAttribute('data-theme') || '';
let theme;
if (currentDataTheme.endsWith('_dark')) {
theme = 'light-border';
} else if (currentDataTheme.endsWith('_light')) {
theme = 'dark';
}
tippy('[data-tippy-content]', {
theme: theme
});
}
window.initiateTooltips = initiateTooltips;