295 lines
5.4 KiB
CSS
295 lines
5.4 KiB
CSS
body {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: #000000;
|
|
background-image: url('assets/image/background.png');
|
|
background-repeat: repeat;
|
|
background-size: 128px 128px;
|
|
}
|
|
|
|
#canvasContainer {
|
|
width: 100vmin;
|
|
height: 100vmin;
|
|
position: relative;
|
|
overflow: hidden;
|
|
float: left;
|
|
object-fit: contain;
|
|
}
|
|
|
|
canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: crisp-edges;
|
|
}
|
|
|
|
#settingsHolder {
|
|
visibility: visible;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 0;
|
|
transform: translateY(-50%);
|
|
width: auto;
|
|
height: auto;
|
|
z-index: 100;
|
|
}
|
|
|
|
#settingsHolder .settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
color: white;
|
|
visibility: visible;
|
|
opacity: 0.8;
|
|
padding: 10px;
|
|
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 {
|
|
opacity: 1;
|
|
}
|
|
|
|
.settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
color: white;
|
|
visibility: visible;
|
|
opacity: 0;
|
|
padding: 10px;
|
|
background-color: rgba(25, 25, 25, 0.7);
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.dangerous-options {
|
|
display: none;
|
|
border-top: 1px solid rgba(255, 0, 0, 0.5);
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.dangerous-options.revealed {
|
|
display: block;
|
|
}
|
|
|
|
#showDangerousBtn {
|
|
background-color: #6b0000;
|
|
color: white;
|
|
border: none;
|
|
padding: 5px 10px;
|
|
margin-top: 10px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
#showDangerousBtn:hover {
|
|
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: '';
|
|
display: none;
|
|
}
|
|
|
|
#showMenuBtn {
|
|
padding: 6px 10px !important;
|
|
font-size: 14px !important;
|
|
}
|
|
}
|
|
|
|
#playerSelect {
|
|
background-color: #333;
|
|
color: #fff;
|
|
border: 1px solid #555;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
margin-left: 5px;
|
|
cursor: pointer;
|
|
min-width: 150px;
|
|
font-size: inherit;
|
|
}
|
|
|
|
#playerSelect:hover {
|
|
background-color: #444;
|
|
}
|
|
|
|
#playerSelect option {
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 5px;
|
|
}
|
|
|
|
#playerSelect option:hover {
|
|
background-color: #444;
|
|
}
|
|
|
|
.player-focus {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#hideMenuBtn {
|
|
background-color: #333;
|
|
color: white;
|
|
border: none;
|
|
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 {
|
|
background-color: #444;
|
|
}
|
|
|
|
#showMenuBtn {
|
|
position: fixed;
|
|
top: 10px;
|
|
left: 10px;
|
|
background-color: rgba(25, 25, 25, 0.9);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 12px;
|
|
border-radius: 15px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
z-index: 101;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
transition: opacity 0.3s;
|
|
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);
|
|
}
|
|
} |