more responsive and themes should work?
This commit is contained in:
+4
-3
@@ -5,7 +5,7 @@
|
|||||||
--bg: #202020;
|
--bg: #202020;
|
||||||
--block-color: #2b2b2b;
|
--block-color: #2b2b2b;
|
||||||
--button-color: #373737;
|
--button-color: #373737;
|
||||||
--games-color: #373737a6;
|
--games-color: #373737;
|
||||||
--hover-color: #3c3c3c;
|
--hover-color: #3c3c3c;
|
||||||
--scrollbar-color: #434343;
|
--scrollbar-color: #434343;
|
||||||
--scroll-track-color: #111;
|
--scroll-track-color: #111;
|
||||||
@@ -281,7 +281,8 @@ img[alt='Proxy Icon'] {
|
|||||||
margin: -1rem 0;
|
margin: -1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-height: 700px) {
|
@media screen and (max-height: 700px),
|
||||||
|
(max-width: 1000px) {
|
||||||
.card .img-container {
|
.card .img-container {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
max-width: 128px;
|
max-width: 128px;
|
||||||
@@ -352,7 +353,7 @@ svg {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: var(--button-color);
|
background-color: var(--button-color);
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
font-size: 1.2rem;
|
font-size: 2.2vmin;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--font-color);
|
color: var(--font-color);
|
||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
|
|||||||
+10
-2
@@ -707,14 +707,22 @@ function saveColorChanges() {
|
|||||||
|
|
||||||
// Save to local storage
|
// Save to local storage
|
||||||
localStorage.setItem('colorSettings', JSON.stringify(newColorSettings));
|
localStorage.setItem('colorSettings', JSON.stringify(newColorSettings));
|
||||||
alert('Colors saved! Changes will take place upon reload');
|
|
||||||
|
// Set CSS variables
|
||||||
|
Object.entries(newColorSettings).forEach(([key, value]) => {
|
||||||
|
document.documentElement.style.setProperty(`--${key}`, value);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore defaults button event listener
|
// Restore defaults button event listener
|
||||||
function restoreColorChanges() {
|
function restoreColorChanges() {
|
||||||
// Reset to default values
|
// Reset to default values
|
||||||
localStorage.removeItem('colorSettings');
|
localStorage.removeItem('colorSettings');
|
||||||
alert('Defaults Restored! Changes will take place upon reload');
|
|
||||||
|
// Set CSS variables
|
||||||
|
Object.entries(colorSettings).forEach(([key, value]) => {
|
||||||
|
document.documentElement.style.setProperty(`--${key}`, value);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomGame() {
|
function randomGame() {
|
||||||
|
|||||||
Reference in New Issue
Block a user