P2B-WEB-2026_2025/block-01/week-02-html_and_the_dom/demo/style.css
2026-07-02 22:26:18 +02:00

76 lines
1.1 KiB
CSS

body {
background-color: #111;
color: #eee;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
form {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
width: 400px;
background-color: #222;
padding: 1rem 2rem;
border-radius: 1rem;
box-shadow: 0 0 1rem #000;
}
label {
display: flex;
flex-direction: column;
gap: 0.25rem;
width: 100%;
font-weight: 600;
&:has(input[type="checkbox"]) {
flex-direction: row;
font-weight: unset;
font-size: 0.8rem;
align-items: center;
cursor: pointer;
accent-color: #444;
}
}
input {
padding: 0.5rem;
border-radius: 0.5rem;
border: none;
outline: none;
font-size: 1rem;
}
button {
width: 100%;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
border: none;
outline: none;
font-size: 1rem;
background-color: #444;
color: #eee;
cursor: pointer;
&:hover {
background-color: #555;
}
}
p {
font-size: 0.8rem;
color: #aaa;
}
a {
color: #eee;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}