odin-calculator/style.css

75 lines
1.1 KiB
CSS
Raw Normal View History

2023-12-26 18:50:51 -07:00
body {
display: flex;
2023-12-26 18:50:51 -07:00
text-align: center;
flex-direction: column;
height: 100vh;
2023-12-26 18:50:51 -07:00
margin: 0;
background-color: rgb(9, 73, 9);
2023-12-26 18:50:51 -07:00
color: #eee;
}
header {
flex: 0 0 auto;
}
main {
flex: 1;
2023-12-26 18:50:51 -07:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.calculator {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: auto;
grid-gap: 5px;
2023-12-27 03:32:24 -07:00
background: #594859;
2023-12-26 18:50:51 -07:00
padding: 10px;
2023-12-27 03:32:24 -07:00
box-shadow: 1px 2px 10px 1px #222;
2023-12-26 18:50:51 -07:00
}
.screen {
grid-column: 1 / span 4;
height: 100px;
background: #eee;
color: #111;
2023-12-26 20:15:17 -07:00
text-align: right;
font-size: 80px;
2023-12-26 18:50:51 -07:00
}
button {
height: 100px;
width: 100px;
2023-12-27 03:32:24 -07:00
font-size: 50px;
2023-12-27 03:46:19 -07:00
border-color: #eee;
2023-12-27 03:32:24 -07:00
box-shadow: 1px 2px 10px 1px #222;
2023-12-26 18:50:51 -07:00
}
2023-12-27 03:32:24 -07:00
button:hover {
filter: brightness(.9);
}
.num {
background: #d9e1f2;
}
.clear {
grid-column: span 2;
width: 205px;
2023-12-27 03:32:24 -07:00
background: #f98383;
}
.operator {
background: #ffff69;
}
.equal {
background: #79ff54;
}
2023-12-26 18:50:51 -07:00
footer {
flex: 0 0 auto;
}