Add: Slider customization & fix black spots showing up on map

This commit is contained in:
2025-03-17 17:48:25 -04:00
parent 38ee14524f
commit a17146fee9
3 changed files with 420 additions and 165 deletions

View File

@@ -23,6 +23,8 @@ body {
canvas {
width: 100%;
height: 100%;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
}
#settingsHolder {
@@ -47,6 +49,25 @@ canvas {
background-color: rgba(25, 25, 25, 0.7);
border-radius: 5px;
transition: opacity 0.3s ease;
font-size: 14px;
max-height: 90vh;
overflow-y: auto;
}
@media (max-width: 768px) {
#settingsHolder .settings {
font-size: 16px;
padding: 12px;
}
#settingsHolder .settings input[type="checkbox"] {
transform: scale(1.2);
margin-right: 8px;
}
#settingsHolder .settings>div {
padding: 6px 0;
}
}
#settingsHolder:hover .settings {
@@ -92,31 +113,67 @@ canvas {
background-color: #8a0000;
}
.size-control {
margin-bottom: 10px;
}
.size-control label {
display: inline-block;
margin-bottom: 3px;
}
input[type="range"] {
width: 100%;
margin: 5px 0;
-webkit-appearance: none;
height: 6px;
background: #555;
border-radius: 3px;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: #68a3e5;
cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #68a3e5;
cursor: pointer;
border: none;
}
@media (max-width: 600px),
(max-height: 600px) {
#settingsHolder {
display: none;
}
#showMenuBtn {
display: block !important;
font-size: 16px !important;
padding: 8px 12px !important;
}
}
@media (max-width: 400px),
(max-height: 400px) {
#canvasContainer::before {
content: 'settings';
position: fixed;
top: 10px;
left: 10px;
background-color: rgba(25, 25, 25, 0.7);
color: white;
width: 30px;
height: 30px;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
cursor: pointer;
z-index: 101;
content: '';
display: none;
}
#showMenuBtn {
padding: 6px 10px !important;
font-size: 14px !important;
}
}
@@ -129,6 +186,7 @@ canvas {
margin-left: 5px;
cursor: pointer;
min-width: 150px;
font-size: inherit;
}
#playerSelect:hover {
@@ -147,19 +205,23 @@ canvas {
.player-focus {
margin-top: 10px;
display: flex;
align-items: center;
flex-wrap: wrap;
}
#hideMenuBtn {
background-color: #333;
color: white;
border: none;
padding: 5px 10px;
padding: 8px 10px;
margin-top: 10px;
border-radius: 3px;
cursor: pointer;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: background-color 0.3s;
width: 100%;
font-size: inherit;
}
#hideMenuBtn:hover {
@@ -170,19 +232,64 @@ canvas {
position: fixed;
top: 10px;
left: 10px;
background-color: rgba(25, 25, 25, 0.7);
background-color: rgba(25, 25, 25, 0.9);
color: white;
border: none;
padding: 5px 10px;
padding: 8px 12px;
border-radius: 15px;
font-size: 14px;
font-size: 16px;
cursor: pointer;
z-index: 101;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: opacity 0.3s;
opacity: 0.6;
opacity: 0.8;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
#showMenuBtn:hover {
opacity: 1;
}
input[type="checkbox"] {
margin-right: 8px;
}
label {
cursor: pointer;
user-select: none;
margin-bottom: 2px;
}
.settings>div {
margin-bottom: 5px;
padding: 3px 0;
}
.touch-device input[type="checkbox"] {
transform: scale(1.3);
margin: 2px 10px 2px 2px;
}
.touch-device input[type="range"]::-webkit-slider-thumb {
width: 20px;
height: 20px;
}
.touch-device input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
}
.touch-device .settings>div {
padding: 6px 0;
}
@media (prefers-color-scheme: dark) {
#settingsHolder .settings {
background-color: rgba(15, 15, 15, 0.85);
}
#showMenuBtn {
background-color: rgba(15, 15, 15, 0.9);
}
}