id/styles/layout.css

131 lines
1.7 KiB
CSS
Raw Normal View History

2023-06-07 19:40:38 +00:00
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
header {
display: flex;
align-items: center;
padding: 1rem 1rem;
}
header .start {
margin-right: auto;
display: flex;
gap: 1rem;
}
header .middle {
margin: 0 16px;
display: flex;
}
header .end {
margin-left: auto;
display: flex;
}
main {
2023-11-06 16:38:18 +00:00
height: 100%;
2023-06-07 19:40:38 +00:00
flex: 1;
padding: 1rem 1rem;
}
footer {
display: flex;
align-items: start;
justify-content: center;
padding: 1rem 1rem;
gap: 1rem;
}
2023-11-06 16:38:18 +00:00
fieldset {
border: #c0c0c0c0 1px solid;
border-radius: calc(1em + 10px);
padding: 10px 10px 5px 10px;
}
legend {
font-size: 1.25rem;
font-weight: 600;
}
form:has(fieldset) {
/* fit two fieldsets side by side */
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
form:has(fieldset) > button[type="submit"] {
/* align the button to the right */
grid-column: span 2;
}
form .container {
/* contains a label and an input */
display: flex;
flex-direction: column;
gap: 0.25rem;
padding-bottom: 5px;
}
form .container:has(input[type="checkbox"]) {
flex-direction: row;
}
form .container label {
font-size: 0.9rem;
opacity: 0.5;
}
form .container:has(input[type="checkbox"]) label {
margin-left: 0.5em;
opacity: 1;
font-size: 1rem;
}
2023-06-07 19:40:38 +00:00
footer h2 {
margin: 0;
}
2023-11-06 16:38:18 +00:00
form {
display: flex;
flex-direction: column;
gap: 1rem;
}
2023-06-07 19:40:38 +00:00
.hero {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: center;
padding: 1rem 1rem;
gap: 1rem;
}
.accountnav {
display: flex;
gap: 1rem;
2023-11-06 16:38:18 +00:00
}