forked from Simnation/Main
124 lines
2.3 KiB
CSS
124 lines
2.3 KiB
CSS
:root {
|
|
/* Typography */
|
|
--font-primary: "Exo 2", sans-serif;
|
|
--font-weight-regular: 400;
|
|
--font-weight-medium: 500;
|
|
--font-weight-bold: 700;
|
|
--font-weight-light: 300;
|
|
/* Colors */
|
|
--md-primary: #1c75d2;
|
|
--md-primary-container: #6facec;
|
|
--md-error: #c10114;
|
|
--md-error-container: #fe4255;
|
|
--md-success: #20bb44;
|
|
--md-success-container: #6ae587;
|
|
--md-warning: #ff9800;
|
|
--md-warning-container: #ffc107;
|
|
--md-info: #2197f2;
|
|
--md-info-container: #7ac1f7;
|
|
--md-surface: #fffbff;
|
|
--md-on-surface: #1c1b1f;
|
|
|
|
/* Custom Variables */
|
|
--primary-bg: rgba(23, 23, 23, 90%);
|
|
--active-bg: var(--md-error);
|
|
--font-color: white;
|
|
|
|
/* Elevation */
|
|
--md-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
|
|
|
|
/* Border Radius */
|
|
--md-radius-small: 5px;
|
|
--md-radius-medium: 10px;
|
|
--md-radius-extra-small: 0.15rem;
|
|
}
|
|
|
|
#drawtext-container {
|
|
display: none;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: var(--font-primary) !important;
|
|
font-weight: var(--font-weight-light);
|
|
}
|
|
|
|
.text {
|
|
position: absolute;
|
|
background: var(--primary-bg);
|
|
color: var(--font-color);
|
|
margin-top: 0.5rem;
|
|
padding: 0.45rem;
|
|
border-radius: var(--md-radius-extra-small);
|
|
box-shadow: var(--md-elevation-1);
|
|
}
|
|
|
|
@media (width: 3840px) and (height: 2160px) {
|
|
#drawtext-container {
|
|
display: none;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: var(--font-primary) !important;
|
|
font-weight: var(--font-weight-light);
|
|
font-size: 1.5vh;
|
|
}
|
|
}
|
|
|
|
.text.pressed {
|
|
background: var(--active-bg);
|
|
}
|
|
|
|
.top {
|
|
left: 45vw;
|
|
top: -100px;
|
|
}
|
|
|
|
.top.show {
|
|
transition: 0.5s;
|
|
top: 10px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.top.hide {
|
|
transition: 0.5s;
|
|
top: -100px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.right {
|
|
top: 50%;
|
|
right: -100px;
|
|
}
|
|
|
|
.right.show {
|
|
transition: 0.5s;
|
|
right: 10px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.right.hide {
|
|
transition: 0.5s;
|
|
right: -100px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.left {
|
|
top: 50%;
|
|
left: -100px;
|
|
}
|
|
|
|
.left.show {
|
|
transition: 0.5s;
|
|
left: 10px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.left.hide {
|
|
transition: 0.5s;
|
|
left: -100px;
|
|
opacity: 0;
|
|
}
|