mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-21 16:21:32 +02:00
feat: theme toasts and move elements styling to their js
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
import { delegate } from 'tippy.js';
|
||||
import {delegate} from 'tippy.js';
|
||||
import 'tippy.js/dist/tippy.css';
|
||||
import 'tippy.js/themes/light-border.css';
|
||||
|
||||
import '../styles/_toasts.scss'
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
delegate(document.body, {
|
||||
target: '[data-tippy-content]',
|
||||
theme: theme,
|
||||
theme: "wygiwyh",
|
||||
zIndex: 1089,
|
||||
content(reference) {
|
||||
return reference.getAttribute('data-tippy-content');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import AirDatepicker from 'air-datepicker';
|
||||
import {createPopper} from '@popperjs/core';
|
||||
import '../styles/_datepicker.scss'
|
||||
|
||||
// --- Static Locale Imports ---
|
||||
// We import all locales statically to ensure Vite transforms them correctly.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// import 'tom-select/dist/css/tom-select.default.min.css';
|
||||
|
||||
import TomSelect from "tom-select";
|
||||
import * as Popper from "@popperjs/core";
|
||||
import '../styles/_tom-select.scss'
|
||||
|
||||
|
||||
window.TomSelect = function createDynamicTomSelect(element) {
|
||||
|
||||
Reference in New Issue
Block a user