2025-12-12 04:49:34 +00:00
|
|
|
/*
|
|
|
|
|
Copyright (C) 2025 filifa
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2025-12-16 01:45:47 +00:00
|
|
|
html {
|
|
|
|
|
font-family: monospace;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#calculator {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
2025-12-12 04:49:34 +00:00
|
|
|
gap: 0.3rem;
|
2025-12-12 04:49:34 +00:00
|
|
|
font-size: xx-large;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input {
|
2025-12-12 04:49:34 +00:00
|
|
|
font-size: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
font-family: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#input-row {
|
2025-12-12 04:49:34 +00:00
|
|
|
grid-column: 1 / 5;
|
2025-12-12 04:49:34 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-flow: wrap;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#expr-box {
|
2025-12-12 04:49:34 +00:00
|
|
|
flex: 4 auto;
|
2025-12-12 04:49:34 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-flow: column;
|
2025-12-12 04:49:34 +00:00
|
|
|
min-width: 0;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#expr-label {
|
|
|
|
|
flex: initial;
|
|
|
|
|
font-size: medium;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#expr {
|
|
|
|
|
flex: auto;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#modulus-box {
|
|
|
|
|
flex: auto;
|
|
|
|
|
display: flex;
|
2025-12-12 04:49:34 +00:00
|
|
|
align-items: end;
|
2025-12-12 04:49:34 +00:00
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#modulus-label {
|
|
|
|
|
flex: initial;
|
2025-12-12 06:19:26 +00:00
|
|
|
margin-left: 1%;
|
|
|
|
|
margin-right: 1%;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#modulus {
|
|
|
|
|
flex: auto;
|
|
|
|
|
min-width: 0;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#result {
|
2025-12-12 04:49:34 +00:00
|
|
|
grid-column: 1 / 5;
|
|
|
|
|
border: 1px solid gray;
|
|
|
|
|
text-align: right;
|
2025-12-12 04:49:34 +00:00
|
|
|
min-height: 1lh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
2025-12-16 01:45:47 +00:00
|
|
|
height: 10vh;
|
2025-12-12 04:49:34 +00:00
|
|
|
font-family: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
font-size: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#extra-buttons {
|
|
|
|
|
grid-column: 1 / 5;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: subgrid;
|
2025-12-12 04:49:34 +00:00
|
|
|
gap: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#main-buttons {
|
|
|
|
|
grid-column: 1 / 5;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: subgrid;
|
2025-12-12 04:49:34 +00:00
|
|
|
gap: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#numerals {
|
|
|
|
|
grid-column: 1 / 4;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: subgrid;
|
2025-12-12 04:49:34 +00:00
|
|
|
gap: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#backspace {
|
|
|
|
|
grid-column: 3;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-12 04:49:34 +00:00
|
|
|
#operators {
|
2025-12-12 04:49:34 +00:00
|
|
|
grid-column: 4;
|
2025-12-12 04:49:34 +00:00
|
|
|
grid-row: 1 / 3;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: subgrid;
|
2025-12-12 04:49:34 +00:00
|
|
|
gap: inherit;
|
2025-12-12 04:49:34 +00:00
|
|
|
}
|
2025-12-12 04:49:35 +00:00
|
|
|
|
|
|
|
|
footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: small;
|
|
|
|
|
margin: 5%;
|
|
|
|
|
}
|
2025-12-16 02:05:32 +00:00
|
|
|
|
|
|
|
|
footer a {
|
|
|
|
|
margin-right: 1ch;
|
|
|
|
|
}
|