122 lines
1.9 KiB
CSS
122 lines
1.9 KiB
CSS
body, html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
body {
|
|
font-family: monospace;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.panel {
|
|
display: flex;
|
|
align-items: center;
|
|
height: fit-content;
|
|
}
|
|
|
|
.panel > div {
|
|
text-align: center;
|
|
}
|
|
|
|
.calculator {
|
|
flex-shrink: 0;
|
|
flex-grow: 1;
|
|
width: auto;
|
|
height: auto;
|
|
justify-content: center;
|
|
}
|
|
|
|
.calculator > div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 10px;
|
|
}
|
|
|
|
.buttons {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
justify-content: right;
|
|
align-items: stretch;
|
|
max-width: calc((70px * 4) + ( 5 * (4px * 2) ) );
|
|
}
|
|
|
|
button {
|
|
border: 0;
|
|
margin: 5px;
|
|
height: 70px;
|
|
width: 70px;
|
|
background-color:rgb(253, 247, 203);
|
|
transition: 0.05s background-color ease-in;
|
|
}
|
|
|
|
button:active {
|
|
background-color:rgb(194, 186, 124);
|
|
}
|
|
|
|
#equal {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.viewing {
|
|
border-top: 0;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color:rgb(253, 247, 203);
|
|
width: calc((70px * 4) + ( 2 * (15px) ));
|
|
height: 3em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.viewing > #output {
|
|
padding: 0.5em;
|
|
font-size: 40px;
|
|
text-align: right;
|
|
text-overflow: clip;
|
|
overflow-y: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.calctitle {
|
|
color: rgb(43, 43, 43);
|
|
font-size: 40px;
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.middle {
|
|
gap: 1em;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.info {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
text-align: justify;
|
|
width: 100%;
|
|
flex-basis: 30%;
|
|
flex-shrink: 0;
|
|
flex-grow: 200;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
margin:1rem;
|
|
} |