mcalc/styles.css

96 lines
1.2 KiB
CSS
Raw Normal View History

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
}
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
font-size: inherit;
2025-12-12 04:49:34 +00:00
}
#modulus-box {
flex: auto;
display: flex;
flex-flow: wrap;
justify-content: end;
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 04:49:34 +00:00
font-size: inherit;
2025-12-12 04:49:34 +00:00
margin-left: 0.3rem;
margin-right: 0.3rem;
2025-12-12 04:49:34 +00:00
}
#modulus {
flex: auto;
min-width: 0;
2025-12-12 04:49:34 +00:00
font-size: inherit;
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-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
}