183 lines
3.3 KiB
CSS
183 lines
3.3 KiB
CSS
:root {
|
|
font-size: 18px;
|
|
|
|
--theme-bg: #181818;
|
|
|
|
--text-color: white;
|
|
--button-primary: #515151;
|
|
--button-secondary: #f38633;
|
|
}
|
|
|
|
body {
|
|
color: var(--text-color);
|
|
background-color: var(--theme-bg);
|
|
|
|
font-family: "IBM Plex", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
user-select: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.loader {
|
|
background-color: var(--theme-bg);
|
|
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.material-symbols-outlined {
|
|
font-variation-settings:
|
|
'FILL' 1,
|
|
'wght' 400,
|
|
'GRAD' 0,
|
|
'opsz' 24
|
|
}
|
|
|
|
.calculator button {
|
|
font-family: "Montserrat", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
font-variation-settings: "slnt" 0;
|
|
}
|
|
|
|
.history-container::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.history-container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
overflow-y: scroll;
|
|
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: end;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
text-align: center;
|
|
|
|
font-family: "IBM Plex", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
|
|
transform: scale(1.2);
|
|
filter: blur(10px);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
z-index: 200;
|
|
|
|
transition: all 0.4s, opacity 0.3s 0.1s;
|
|
}
|
|
|
|
.history-container span strong {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
body.history-open .history-container {
|
|
transform: scale(1);
|
|
filter: blur(0);
|
|
opacity: 1;
|
|
pointer-events: initial;
|
|
}
|
|
|
|
body.history-open .calculator {
|
|
transform: scale(0.8);
|
|
filter: blur(10px);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.settings-container {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 80%;
|
|
bottom: -80%;
|
|
left: 0;
|
|
|
|
font-family: "IBM Plex", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
padding: 0 1rem;
|
|
|
|
z-index: 150;
|
|
|
|
transition: all 0.4s;
|
|
}
|
|
|
|
body.settings-open .settings-container {
|
|
bottom: 0;
|
|
}
|
|
|
|
body.settings-open .calculator {
|
|
transform: translateY(-80%);
|
|
}
|
|
|
|
.settings-container span {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
input[type=color] {
|
|
border-radius: 50%;
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
border: solid 1px rgb(128, 128, 128);
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type=color]::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
}
|
|
|
|
input[type=color]::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.settings-container button {
|
|
font-family: "IBM Plex", sans-serif;
|
|
font-optical-sizing: auto;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-size: 0.85rem;
|
|
|
|
color: var(--text-color);
|
|
padding: 0.4rem 0.8rem;
|
|
border: none;
|
|
background-color: var(--button-primary);
|
|
/* border: solid 1px rgb(128, 128, 128); */
|
|
border-radius: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.3s, transform 0.1s;
|
|
}
|
|
|
|
.settings-container button:hover {
|
|
background-color: var(--button-secondary);
|
|
}
|
|
|
|
.settings-container button:active {
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
.settings-container .container {
|
|
display: flex;
|
|
justify-content: center;
|
|
} |