responsive-layouts/challenge5/style.css

124 lines
1.5 KiB
CSS
Raw Normal View History

2025-02-04 19:41:15 -05:00
/*
////// For this challenge ///////
- All text is in the text.md file
// Requirements
1. Refer to the design specs for the
overall layout
2. The image should line up with
the sidebar in the section
below
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Roboto", sans-serif;
font-size: 1.3rem;
}
img {
max-width: 100%;
}
h1 {
font-size: 3rem;
margin-top: 0;
}
.container {
width: 80%;
max-width: 1100px;
margin: 0 auto;
}
.row {
/* display: flex => flex container */
display: flex;
justify-content: space-between;
/* can't use yet */
/* gap: 100px; */
}
.col {
/* these are now flex items */
width: 100%;
}
.col + .col {
margin-left: 30px;
}
.hero {
padding: 100px 0;
background-color: #23424a;
color: #fff;
}
.hero__text {
width: 62%;
}
.hero__img {
width: 32%;
align-self: flex-start;
}
.hero p {
margin-bottom: 3em;
}
.btn {
display: inline-block;
text-decoration: none;
text-transform: uppercase;
color: #23424a;
font-weight: 900;
background-color: #38cfd9;
padding: 0.75em 2em;
border-radius: 100px;
}
.btn:hover,
.btn:focus {
opacity: 0.75;
}
.content.container.row {
margin-top: 2em;
}
.content_text {
padding: 1em;
}
.content__subheading {
color: #136c72;
}
.container.cards {
margin-left: 1em;
background: #136c72;
padding: 1em;
text-align: center;
}
.card {
color: white;
}
@media only screen and (max-width: 550px) {
.content.container.row {
flex-wrap: wrap;
}
}