kalkulator/static/assets/css/style.css

110 lines
2.0 KiB
CSS

:root {
font-size: 18px;
--theme-bg: rgb(24, 24, 24);
--text-color: white;
--button-primary: rgb(81, 81, 81);
--button-secondary: rgb(243, 134, 51);
--button-settings: rgb(72, 72, 72);
}
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;
}
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;
}
.history-container span {
color: rgba(255, 255, 255, 0.6);
}
.history-container span strong {
color: white;
}
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;
z-index: 150;
transition: all 0.4s;
}
body.settings-open .settings-container {
bottom: 0;
}
body.settings-open .calculator {
transform: translateY(-80%);
}