SupraSensum 061fe0abaa Replace margin with gap
- This is to keep with the flex spirit
- Another solution might instead be to nest .input and .buttons into
   their own container, then apply the gap property to that container.
   This solves the visually uneven spacing between <img> and .input
2023-08-11 14:20:16 -03:00

70 lines
898 B
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
body {
height: 100vh;
margin: 0;
overflow: hidden;
font-family: Roboto, sans-serif;
}
img {
width: 600px;
}
button {
font-family: Roboto, sans-serif;
border: none;
border-radius: 8px;
background: #eee;
}
input {
border: 1px solid #ddd;
border-radius: 16px;
padding: 8px 24px;
width: 400px;
}
/* SOLUTION */
body {
display: flex;
flex-direction: column;
}
button {
padding: 8px 16px;
}
.content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 16px;
}
a {
color: #666;
text-decoration: none;
}
.header,
.footer {
display: flex;
justify-content: space-between;
padding: 16px;
}
.footer {
background: #eee;
}
ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 16px
}