mirror of
https://github.com/GuySandler/CanvasRefined.git
synced 2026-11-25 07:07:14 +01:00
ui revamp 4
I think I am done for now
This commit is contained in:
1 parent
a13374c23f
commit
de2cb476a5
2 files changed
+7
-3
No files matched your search
+5
-1
@@ -510,7 +510,7 @@ function setup() {
|
||||
});
|
||||
|
||||
document.querySelector("#alert").addEventListener("click", clearAlert);
|
||||
|
||||
// TODO: maybe fix this at some point, idk what is causing the error here
|
||||
document.querySelectorAll(".preset-button.customization-button").forEach(btn => btn.addEventListener("click", changeToPresetCSS));
|
||||
|
||||
// activate card color inputs
|
||||
@@ -752,12 +752,16 @@ function setup() {
|
||||
document.getElementById("fontsDropdown").addEventListener("click", (e) => {
|
||||
const el = document.getElementById("quick-fonts");
|
||||
const el2 = document.getElementsByClassName("custom-font")[0];
|
||||
const arrow = document.getElementById("fontsDropdownArrow");
|
||||
if (el.style.display === "none") {
|
||||
el.style.display = "flex";
|
||||
el2.style.display = "block";
|
||||
arrow.style.transform = "rotate(180deg)";
|
||||
|
||||
} else {
|
||||
el.style.display = "none";
|
||||
el2.style.display = "none";
|
||||
arrow.style.transform = "rotate(0deg)";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user