odin-calculator/style.css

61 lines
1.1 KiB
CSS

html, body {
margin: 0;
padding: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
}
#flex-center {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
box-sizing: border-box;
padding: 40px 20px;
}
#container {
font-size: xx-large;
width: fit-content;
}
#view {
width: 100%;
box-sizing: border-box;
height: 60px;
padding: 0 6px;
background-color: #ccc;
border: 2px solid #383838aa;
border-bottom: 0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
#table {
width: 100%;
}
#table, #table tr, #table td {
border-collapse: collapse;
text-align: center;
}
#table td {
border: 2px solid #383838aa;
}
#table td {
background-color: #fafafa;
width: 50px;
height: 50px;
cursor: pointer;
}
#table td:hover,
#table td:focus {
background-color: #ddd;
}
#table td:active {
background-color: #898989;
}