Kompatibilität für Chrome

This commit is contained in:
Turtle committed 2026-01-02 11:21:19 +01:00
1 parent 7a5fe69f29
commit 54368e20d0
4 files changed
+23 -13

No files matched your search

+13
View File
@@ -54,6 +54,16 @@ input {
border-radius: var(--border-radius);
padding: 4px;
}
select {
border-radius: var(--border-radius);
padding: 5px;
font-size: 18px;
}
button {
border-radius: var(--border-radius);
font-size: 18px;
font-weight: normal;
}
/* ----------- overlay ----------- */
@@ -230,6 +240,9 @@ dropdown > div:first-child {
height: 100%;
background: none;
}
dropdown > div > button {
border-radius: 0;
}
dropdown > div:last-child {
position: absolute;
background: var(--accent_color_bg_o);
+1 -10
View File
@@ -10,16 +10,7 @@ function showOverlay(id) {
if (!elm) return;
const overlay = document.createElement("div");
const computedStyles = getComputedStyle(elm);
const defaultStyles = getDefaultComputedStyle(elm);
let styleString = "";
for (let style of computedStyles) {
if (style == "display") continue;
const computedValue = computedStyles.getPropertyValue(style);
const defaultValue = defaultStyles.getPropertyValue(style);
if (computedValue == defaultValue) continue;
styleString += `${style}: ${computedValue}; `;
}
const styleString = elm.getAttribute("style");
overlay.classList.add("overlay");
overlay.setAttribute("name", id);