rainyday.dev/freecodcamp/build-a-product-landing-page/styles.css

147 lines
2.3 KiB
CSS
Raw Normal View History

:root {
--page-color: #393e46;
--accent-color: #f96d00;
--text-color: #f2f2f2;
}
*, ::before, ::after {
margin: 0;
padding: 0;
}
body {
height: 100vh;
width: auto;
background-color: var(--page-color);
color: var(--text-color);
font-family: "Quicksand", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
}
html {
font-size: 16px;
}
h3 {
font-size: 1.25rem;
}
#header {
position: sticky;
top: 0;
background-color: var(--page-color);
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
height: 5rem;
max-height: 5rem;
}
#header p {
font-family: "Rubik", sans-serif;
font-optical-sizing: auto;
font-weight: 700;
font-style: normal;
}
#header-img {
height: 100%;
width: auto;
border-radius: 100%;
}
#nav-bar ul {
display: flex;
list-style-type: none;
}
#nav-bar li {
padding: 0.25rem;
}
#nav-bar a {
text-decoration: none;
color: var(--white);
}
#nav-bar a:hover {
text-decoration: underline;
}
#product-info {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.25rem;
}
.product-info h1 {
margin-bottom: 0.5rem;
}
.selling-points-list {
list-style-type: none;
font-size: 1.15rem;
}
.selling-points-list li {
margin-bottom: 0.5rem;
}
.selling-points-list li:last-of-type {
margin-bottom: 0;
}
#advert {
margin-top: 1rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
#form {
margin-top: 1rem;
height: 20%;
width: auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
label[for="email"] {
font-size: 1.2rem;
}
input[id="email"] {
width: 18rem;
}
input[id="submit"] {
background-color: var(--accent-color);
border: 0;
border-radius: 10px;
padding: 8px;
width: 8rem;
max-width: 8rem;
font-weight: bold;
font-size: 1rem;
}
@media only screen and (max-width: 1000px) {
#nav-bar ul {
flex-direction: column;
}
}
@media only screen and (max-width: 400px) {
#header {
margin-bottom: 1rem
}
}