316 lines
7.2 KiB
CSS
316 lines
7.2 KiB
CSS
@import 'styles-variables.css';
|
|
@import 'bootstrap/dist/css/bootstrap.min.css';
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Light Mode (Default) */
|
|
html:not([data-theme='dark']),
|
|
html:not([data-theme='dark']) body {
|
|
background: linear-gradient(160deg, var(--color-primary-light), var(--color-secondary-mint));
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
html:not([data-theme='dark']) body::before {
|
|
display: none;
|
|
}
|
|
|
|
/* Dark Mode */
|
|
html[data-theme='dark'],
|
|
html[data-theme='dark'] body {
|
|
background: #0f1f2e;
|
|
background-image:
|
|
radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
|
|
radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)),
|
|
radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
|
|
radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
|
|
radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
|
|
radial-gradient(1px 1px at 130px 120px, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)),
|
|
radial-gradient(2px 2px at 10px 90px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
|
|
radial-gradient(1px 1px at 40px 120px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
|
|
background-repeat: repeat;
|
|
background-size: 150px 150px;
|
|
background-attachment: fixed;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
html[data-theme='dark'] body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background:
|
|
radial-gradient(circle at 20% 80%, rgba(45, 90, 123, 0.1) 0%, transparent 50%),
|
|
radial-gradient(circle at 80% 20%, rgba(90, 111, 165, 0.1) 0%, transparent 50%),
|
|
radial-gradient(circle at 50% 50%, rgba(29, 53, 82, 0.05) 0%, transparent 50%);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
font-family: "Comic Sans MS", "Comic Sans", cursive;
|
|
position: relative;
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
.welcome-shell .import-game-form {
|
|
grid-column: 1 / -1;
|
|
background: var(--color-bg-card);
|
|
border: var(--border-width) solid var(--color-border);
|
|
border-radius: var(--border-radius-md);
|
|
padding: var(--size-lg-padding);
|
|
margin: var(--size-md) 0;
|
|
display: grid;
|
|
gap: var(--size-md);
|
|
}
|
|
|
|
.welcome-shell .import-game-form p {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.welcome-shell .import-mode-group {
|
|
display: flex;
|
|
gap: var(--size-lg);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.welcome-shell .import-mode-option {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--size-sm);
|
|
font-weight: 600;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.welcome-shell .import-mode-option input {
|
|
accent-color: var(--color-primary);
|
|
}
|
|
|
|
.welcome-shell .import-game-text {
|
|
width: 100%;
|
|
resize: vertical;
|
|
min-height: 110px;
|
|
border: var(--border-width) solid var(--color-border);
|
|
border-radius: var(--border-radius-md);
|
|
background: var(--color-bg-input);
|
|
color: var(--color-text-primary);
|
|
padding: var(--size-md-padding);
|
|
}
|
|
|
|
.welcome-shell .import-game-text:focus {
|
|
outline: none;
|
|
border-color: var(--color-secondary-mint);
|
|
box-shadow: 0 0 0 3px rgba(185, 218, 209, 0.2);
|
|
}
|
|
|
|
.welcome-shell .theme-toggle-container {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.welcome-shell .switch {
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
.welcome-shell .switch__input {
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
width: 1px;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
.welcome-shell .switch__label {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 120px;
|
|
height: 60px;
|
|
background-color: #2B2B2B;
|
|
border: 5px solid #5B5B5B;
|
|
border-radius: 9999px;
|
|
cursor: pointer;
|
|
transition: all 0.4s cubic-bezier(.46,.03,.52,.96);
|
|
}
|
|
|
|
.welcome-shell .switch__indicator {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) translateX(-72%);
|
|
display: block;
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: #7B7B7B;
|
|
border-radius: 9999px;
|
|
box-shadow: 10px 0px 0 0 rgba(0, 0, 0, 0.2) inset;
|
|
transition: all 0.4s cubic-bezier(.46,.03,.52,.96);
|
|
}
|
|
|
|
.welcome-shell .switch__indicator::before,
|
|
.welcome-shell .switch__indicator::after {
|
|
position: absolute;
|
|
content: '';
|
|
display: block;
|
|
background-color: #FFFFFF;
|
|
border-radius: 9999px;
|
|
transition: all 0.4s cubic-bezier(.46,.03,.52,.96);
|
|
}
|
|
|
|
.welcome-shell .switch__indicator::before {
|
|
top: 7px;
|
|
left: 7px;
|
|
width: 9px;
|
|
height: 9px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.welcome-shell .switch__indicator::after {
|
|
bottom: 8px;
|
|
right: 6px;
|
|
width: 14px;
|
|
height: 14px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.welcome-shell .switch__decoration {
|
|
position: absolute;
|
|
top: 65%;
|
|
left: 50%;
|
|
display: block;
|
|
width: 5px;
|
|
height: 5px;
|
|
background-color: #FFFFFF;
|
|
border-radius: 9999px;
|
|
animation: twinkle-stars 0.8s infinite -0.6s;
|
|
transition: all 0.4s cubic-bezier(.46,.03,.52,.96);
|
|
}
|
|
|
|
.welcome-shell .switch__decoration::before,
|
|
.welcome-shell .switch__decoration::after {
|
|
position: absolute;
|
|
display: block;
|
|
content: '';
|
|
width: 5px;
|
|
height: 5px;
|
|
background-color: #FFFFFF;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.welcome-shell .switch__decoration::before {
|
|
top: -20px;
|
|
left: 10px;
|
|
opacity: 1;
|
|
animation: twinkle-stars 0.6s infinite;
|
|
}
|
|
|
|
.welcome-shell .switch__decoration::after {
|
|
top: -7px;
|
|
left: 30px;
|
|
animation: twinkle-stars 0.6s infinite -0.2s;
|
|
}
|
|
|
|
@keyframes twinkle-stars {
|
|
50% {
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label {
|
|
background-color: #8FB5F5;
|
|
border-color: #347CF8;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__indicator {
|
|
background-color: #ECD21F;
|
|
box-shadow: none;
|
|
transform: translate(-50%, -50%) translateX(72%);
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__indicator::before,
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__indicator::after {
|
|
display: none;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration {
|
|
top: 50%;
|
|
transform: translate(0%, -50%);
|
|
animation: cloud 8s linear infinite;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration::before {
|
|
width: 10px;
|
|
height: 10px;
|
|
top: auto;
|
|
bottom: 0;
|
|
left: -8px;
|
|
animation: none;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration::after {
|
|
width: 15px;
|
|
height: 15px;
|
|
top: auto;
|
|
bottom: 0;
|
|
left: 16px;
|
|
animation: none;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration,
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration::before,
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration::after {
|
|
border-radius: 9999px 9999px 0 0;
|
|
}
|
|
|
|
.welcome-shell .switch__input:checked + .switch__label .switch__decoration::after {
|
|
border-bottom-right-radius: 9999px;
|
|
}
|
|
|
|
@keyframes cloud {
|
|
0% {
|
|
transform: translate(0%, -50%);
|
|
}
|
|
50% {
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
100% {
|
|
transform: translate(0%, -50%);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.welcome-shell .theme-toggle-container {
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
|
|
.welcome-shell .switch__label {
|
|
width: 100px;
|
|
height: 50px;
|
|
}
|
|
|
|
.welcome-shell .switch__indicator {
|
|
width: 33px;
|
|
height: 33px;
|
|
}
|
|
}
|