diff --git a/css/games.css b/css/games.css index 15aba73..76d59dd 100755 --- a/css/games.css +++ b/css/games.css @@ -27,7 +27,7 @@ game img { #holder h1 { font-size: 14px; margin: 15px; - width: 100%; + width: 80%; text-align: right; height: 70%; } @@ -39,8 +39,8 @@ game img { align-items: flex-end; } #star { + margin-top: 0px; width: 10%; - justify-self: right; margin-left: auto; margin-right: 15px; /* transition-duration: 0.25s; */ diff --git a/css/settings.css b/css/settings.css index 3268df8..0aa2ee1 100644 --- a/css/settings.css +++ b/css/settings.css @@ -1,6 +1,6 @@ section { width: 30%; - height: 400px; + /* height: 400px; */ height: auto; padding: 8px; margin: 16px; @@ -22,6 +22,11 @@ sections { justify-content: center; align-items: center; } + +#colorPicker { + margin: 6px; +} + @-moz-document url-prefix() { section { backdrop-filter: blur(0); diff --git a/css/sidebar.css b/css/sidebar.css index 02a20bd..4952f20 100755 --- a/css/sidebar.css +++ b/css/sidebar.css @@ -64,7 +64,7 @@ iframe { height: 50px; left: 0; right: 0; - width: 30%; + width: 40%; margin-left: auto; margin-right: auto; display: flex; @@ -76,6 +76,11 @@ iframe { cursor: pointer; color: black; } +#bottom-menu { + width: fit-content; + padding-left: 16px; + padding-right: 16px; +} #open-bottom-menu { bottom: 10px; height: 15px; diff --git a/index.html b/index.html index b1228d2..a0b28b2 100755 --- a/index.html +++ b/index.html @@ -57,7 +57,62 @@ + let script = document.createElement("script"); + script.setAttribute("defer", ""); + script.setAttribute("src", "https://cloud.umami.is/script.js"); + script.setAttribute("data-website-id", "cdb79ddd-06a6-478f-b726-be39b502d6a5"); + document.head.appendChild(script); +}; + +document.addEventListener("DOMContentLoaded", () => { + loadAnalytics.unami(); +}) \ No newline at end of file diff --git a/js/main.js b/js/main.js index fba3f0c..dc2cdf6 100755 --- a/js/main.js +++ b/js/main.js @@ -35,8 +35,22 @@ function cursor() { } function themes() { document.body.setAttribute("theme", localStorage.getItem("selenite.theme") || "") + if(document.body.getAttribute("theme") == "custom") { + setTheme(JSON.parse(localStorage.getItem("selenite.customTheme"))) + } +} +function setTheme(arg) { + let theme = arg; + document.body.setAttribute("style", ` + --text-color: ${theme["text-color"]}; + --bg-1: ${theme["bg-1"]}; + --bg-2: ${theme["bg-2"]}; + --color-1: ${theme["color-1"]}; + --color-2: ${theme["color-2"]}; + --color-3: ${theme["color-3"]}; + --color-4: ${theme["color-4"]}; + `) } - document.addEventListener("DOMContentLoaded", ()=>{ if(!(localStorage.getItem("selenite.fast-mode") == 'true')) { setBackground(); @@ -55,7 +69,6 @@ document.addEventListener("scroll", ()=>{ - // var interval; // document.addEventListener("DOMContentLoaded", function () { // if (localStorage.getItem("theme")) { diff --git a/loader.html b/loader.html index ee5ddaa..653695f 100755 --- a/loader.html +++ b/loader.html @@ -63,7 +63,7 @@
- +website icon
+ +