Files
chopin-frontend/src/assets/Global.scss
2025-08-29 00:22:08 +02:00

184 lines
3.2 KiB
SCSS

@font-face {
font-family: 'Gunship';
src: url("/gunship.ttf");
}
[data-theme='dark'] {
--primary: #111210;
--primary-inverse: #FFFFFF;
--primary-hover: #ececec;
--secondary: #2A2B28;
--tertiary: #404040;
--quaternary: #636363;
--text: #FFFFFF;
--text-inverse: #111210;
--text-secondary: #C5c3c3;
--text-tertiary: #A5A5A5;
--text-error: #ff2b2b;
--text-success: #00ff00;
--text-warning: #FFA500;
}
[data-theme='light'] {
--primary: #FFFFFF;
--primary-inverse: #111210;
--primary-hover: #292b26;
--secondary: #EAEAEA;
--tertiary: #d3d3d3;
--quaternary: #b8b8b8;
--text: #111210;
--text-inverse: #FFFFFF;
--text-secondary: #404040;
--text-tertiary: #C5c3c3;
--text-error: #CD034F;
--text-success: #00a900;
--text-warning: #FFA500;
}
:root {
--main: #CD034F;
--main-hover: color-mix(in srgb, var(--main) 90%, black);
--main-active: color-mix(in srgb, var(--main) 70%, black);
--admin-color: #209AFE;
--owner-color: #FFAA32;
--mod-color: #0BFF89;
}
html, body {
margin: 0 !important;
font-family: 'Inter', sans-serif;
min-height: 100vh;
min-width: 100vw;
margin: 0;
padding: 0;
height: 100%;
overflow-x: hidden;
background-color: var(--primary);
transition: all 0.2s ease-in-out;
color: var(--text);
}
#app {
height: 100%;
display: flex;
}
.no-decoration {
text-decoration: none !important;
}
.underline {
text-decoration: underline !important;
}
h1 {
font-family: 'Gunship';
font-size: 30px;
color: var(--text-color);
}
a {
color: var(--text-secondary)
}
/*Scrollbar */
::-webkit-scrollbar {
width: 5px;
margin-right: 20px;
margin-left: 20px;
}
::-webkit-scrollbar-track {
border-radius: 12px;
}
::-webkit-scrollbar-thumb {
background: #ffffff56;
border-radius: 5px;
transition: 0.2s;
}
::-webkit-scrollbar-thumb:hover {
background: #ffffffa8;
}
.full {
width: 100%;
}
textarea {
resize: vertical;
background-color: var(--tertiary);
border: none;
border-radius: 5px;
padding: 5px;
color: var(--text);
font-family: 'Inter', sans-serif;
outline: none;
min-height: 4vh;
max-height: 15vh;
}
textarea:focus {
box-shadow: 0 0 5px var(--main);
}
@keyframes appear {
from {
transform: scale(0.9);
}
to {
transform: scale(1);
}
}
@keyframes unfold {
from {
max-height: 0px;
opacity: 0;
}
to {
max-height: 100vh;
opacity: 1;
}
}
input[type="checkbox"] {
background-color: #FFFFFF !important;
}
input[type="checkbox"]:checked {
background-color: var(--main-hover) !important;
}
input[type="checkbox"]:hover {
background-color: var(--main-active) !important;
}
input[type="text"] {
background-color: var(--tertiary);
border: none;
border-radius: 5px;
padding: 7px;
color: var(--text);
font-family: 'Inter', sans-serif;
outline: none;
}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(var(--scroll-distance));
}
}