mcalc/styles.css

69 lines
867 B
CSS
Raw Normal View History

2025-12-12 04:49:34 +00:00
#calculator {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
label[for="expr"] {
display: none;
}
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 {
flex: 4 auto;
min-width: 0;
}
#modulus-box {
flex: auto;
display: flex;
flex-flow: wrap;
justify-content: end;
min-width: 0;
}
#modulus-label {
flex: initial;
}
#modulus {
flex: auto;
min-width: 0;
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;
min-height: 1.5em;
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;
}
#main-buttons {
grid-column: 1 / 5;
display: grid;
grid-template-columns: subgrid;
}
#numerals {
grid-column: 1 / 4;
display: grid;
grid-template-columns: subgrid;
}
#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
}