distribution-calc/public/styles.scss

83 lines
1.2 KiB
SCSS
Raw Normal View History

2025-03-14 17:48:32 -03:00
/* --------------------- 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;
}
2025-03-14 22:46:50 -03:00
h1.title {
width: 80vw;
max-inline-size: 80vw;
}
2025-03-14 21:21:58 -03:00
p {
2025-03-14 17:48:32 -03:00
margin: var(--size-6);
}
2025-03-14 21:21:58 -03:00
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;
2025-03-14 22:46:50 -03:00
grid-template-columns: 1fr 8em 5em 1fr;
2025-03-14 21:21:58 -03:00
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;
2025-03-14 17:48:32 -03:00
}