This commit is contained in:
Malthbern
2025-08-27 06:31:43 -05:00
parent 685234046e
commit d6662b4050
2 changed files with 399 additions and 17 deletions

View File

@@ -1,15 +1,20 @@
@menu-bg-colour: 55,48,33;
@menu-opacity: 0.9;
@keyboard-key-colour: 55, 48, 33;
@import "../Common/vars.css";
@menu-bg-colour: 55,48,33;
@menu-opacity: 1;
@keyboard-key-colour: 55,48,33;
:root {
--menu-bg-colour: @menu-bg-colour;
--keyboard-key-colour: @keyboard-key-colour;
--menu-opacity: @menu-opacity;
--collapsed: flex;
}
body{
margin: 0;
background-color: transparent !important;
opacity: var(--menu-opacity);
}
.wrapper {
@@ -19,7 +24,7 @@ body{
coh-partitioned: on;
text-shadow: 2px 2px 8px #000;
color: white;
font-family: "Noto Sans", "Noto Sans Symbols", sans-serif;
font-family: var(--standard-font-family);
.keyboard {
width: 100%;
@@ -27,15 +32,179 @@ body{
border-radius: 0.5em;
box-sizing: border-box;
//border: 3px solid #404040;
//border: 3px solid #59885d;
padding: 5px;
background-color: rgb(var(--menu-bg-colour));
filter: drop-shadow(0 0 2rem black);
text-align: center;
display: flex;
flex-direction: column;
align-self: flex-end;
position: relative;
.hide {
visibility: hidden;
animation-name: fadeOut;
animation-duration: 0.1s;
@keyframes fadeOut {
from {
opacity: 1;
visibility: visible;
}
to {
opacity: 0;
}
}
}
.show {
visibility: visible;
animation-name: fadeIn;
animation-duration: 0.1s;
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
}
.settings {
width: 60%;
height: 325px;
z-index: 10;
position: absolute;
bottom: 50px;
left: 20%;
background-color: rgb(var(--menu-bg-colour));
border-radius: 0.5em;
filter: drop-shadow(0 0 2rem black);
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 0.5em;
//Restyle the rangeslider a bit cause it's dark
.guic-horizontal-rangeslider-wrapper {
margin: 2.1em 0 0 !important;
.guic-horizontal-rangeslider {
background-color: rgba(255,255,255,0.3) !important;
}
.guic-rangeslider-horizontal-grid-pol {
background-color: white;
}
.guic-rangeslider-horizontal-grid-text {
visibility: hidden;
}
}
.setting-container {
display: flex;
margin-bottom: 5px;
h3 {
flex: 1;
text-align: left;
margin-bottom: 0.2em;
margin-top: 0.2em;
align-self: center;
}
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
input {
opacity: 0;
width: 0;
height: 0;
}
.checked {
background-color: #2196F3 !important;
box-shadow: 0 0 1px #2196F3;
&:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
&:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
}
}
/* Rounded sliders */
.round {
border-radius: 34px;
&:before {
border-radius: 50%;
}
}
}
.separator {
border-top: 5px solid #bbb;
border-radius: 5px;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.header {
text-align: left;
width: 100%;
display: flex;
.close-btn {
width: 2em;
&:hover {
filter: brightness(0.8) !important;
}
img {
position: relative;
width: 2em;
height: 2em;
filter: invert(1);
}
}
h2 {
margin-top: 0;
margin-bottom: 0;
flex: 1;
}
}
}
.in {
left: 5%;
@@ -47,13 +216,17 @@ body{
transition: left 0.2s linear;
}
.collapsible {
display: var(--collapsed) !important;
}
.keyboard-row {
width: 100%;
display: flex;
//border-top: 3px solid #404040;
//border-top: 3px solid #59885d;
.spacer {
flex: 1.55;
flex: 1.4;
}
.special-keys {
@@ -83,6 +256,21 @@ body{
span {
width: 1em;
display: block;
pointer-events: none;
}
img {
position: relative;
width: 1.5em;
height: 1.5em;
margin-left: -0.5em;
margin-right: -0.5em;
filter: invert(1);
pointer-events: none;
}
.flip-icon {
transform: rotate(180deg);
}
&:hover,
@@ -91,6 +279,10 @@ body{
}
}
.active {
background-color: #1b5037;
}
.wide {
flex: 1.5;
}
@@ -147,6 +339,17 @@ body{
padding: 5px;
}
.textarea-title {
position: absolute;
display: none;
background-color: rgb(var(--menu-bg-colour));
border-top-left-radius: 0.5em;
border-top-right-radius: 0.5em;
left: 10px;
top: -20px;
padding: 5px;
}
.textarea-background {
position: absolute;
bottom: 0;
@@ -214,7 +417,7 @@ body{
width: initial;
overflow-x: auto;
caret-color: transparent;
font-family: "Noto Sans", "Noto Sans Symbols", sans-serif;
font-family: "Noto Sans", "Noto Sans Symbols", "Noto Sans JP", "Noto Sans TC", "Noto Sans KR", "Noto Sans Arabic", "Noto Sans SC", sans-serif;
}
}
@@ -251,7 +454,7 @@ body{
padding-bottom: 6px;
//animation: blink-animation 1s steps(5, start) infinite;
//-webkit-animation: blink-animation 1s steps(5, start) infinite;
//-webkit-animation: blink-animation 1s steps(5, start) infinite
@keyframes blink-animation {
to {
@@ -274,10 +477,10 @@ body{
z-index: 2;
position: absolute;
text-shadow: 0 0 0 rgba(0, 0, 0, 0);
height: 100%;
padding-top: 8%;
padding-bottom: 8%;
align-self: flex-start;
padding-left: 12px;
bottom: 0;
}
}
}