distribution-calc/public/styles.scss

77 lines
1.2 KiB
SCSS

/* --------------------- Open Props --------------------------- */
/* the props */
@import "https://unpkg.com/open-props";
/* optional imports that use the props */
@import "https://unpkg.com/open-props/normalize.min.css";
@import "https://unpkg.com/open-props/buttons.min.css";
/* ------------------------------------------------------------ */
body {
font-family: sans-serif;
text-align: center;
}
.container {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-align: center;
margin: 0 auto;
padding: 2rem;
}
p {
margin: var(--size-6);
}
form {
display: table;
text-align: left;
}
form > p {
display: table-row;
margin-bottom: 0.5em;
}
form > p > label, form > p > input{
display: table-cell;
}
form input {
margin-left: 1em;
margin-bottom: 0.5em;
width: 4em;
}
form > div.results {
display: grid;
grid-template-columns: 1fr 6em 6em 1fr;
min-width: 20em;
max-width: 30em;
width: 30vw;
font-size: 1.2em;
}
form > div.results > span.left {
grid-column: 2 / 3;
text-align: right;
padding-right: 1em;
}
form > div.results > span.right {
grid-column: 3 / 4;
}