mirror of
https://github.com/wled/WLED.git
synced 2025-07-27 04:36:33 +00:00
Remove hideD class to use hide class instead
This commit is contained in:
parent
bd620a764d
commit
fa5648c0c3
@ -1334,7 +1334,7 @@ TD .checkmark, TD .radiomark {
|
|||||||
top: calc(var(--sti) + 42px);
|
top: calc(var(--sti) + 42px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog:not(.hideD)::before {
|
.dialog:not(.hide)::before {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -1360,19 +1360,7 @@ TD .checkmark, TD .radiomark {
|
|||||||
box-shadow: 4px 4px 10px 4px var(--c-1);
|
box-shadow: 4px 4px 10px 4px var(--c-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hideD {
|
#pallist .lstI.sticky {
|
||||||
top: -9999999999px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pallist.simplified {
|
|
||||||
overflow: scroll;
|
|
||||||
height: 500px;
|
|
||||||
/* Fix shadow */
|
|
||||||
margin: 0px -16px;
|
|
||||||
padding: 0px 16px 0px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pallist.simplified .lstI.selected {
|
|
||||||
top: 42px;
|
top: 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2275,7 +2275,7 @@ function setPalette(paletteId = null)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (simplifiedUI) {
|
if (simplifiedUI) {
|
||||||
gId("palw").lastChild.classList.toggle("hideD");
|
gId("palw").lastChild.classList.toggle("hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
var obj = {"seg": {"pal": paletteId}};
|
var obj = {"seg": {"pal": paletteId}};
|
||||||
@ -3050,13 +3050,13 @@ function simplifyUI() {
|
|||||||
while (gId("palw").firstChild) {
|
while (gId("palw").firstChild) {
|
||||||
div.appendChild(gId("palw").firstChild);
|
div.appendChild(gId("palw").firstChild);
|
||||||
}
|
}
|
||||||
div.classList.add("hideD", "dialog");
|
div.classList.add("hide", "dialog");
|
||||||
let btn = document.createElement("button");
|
let btn = document.createElement("button");
|
||||||
btn.classList.add("btn");
|
btn.classList.add("btn");
|
||||||
btn.innerText = "Change palette";
|
btn.innerText = "Change palette";
|
||||||
let togglePal = (e) => {
|
let togglePal = (e) => {
|
||||||
if (e.target != btn && e.target != div) return
|
if (e.target != btn && e.target != div) return
|
||||||
gId("palw").lastChild.classList.toggle("hideD");
|
gId("palw").lastChild.classList.toggle("hide");
|
||||||
};
|
};
|
||||||
btn.addEventListener("click", togglePal);
|
btn.addEventListener("click", togglePal);
|
||||||
div.addEventListener("click", togglePal);
|
div.addEventListener("click", togglePal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user