Nice!
COPY
* {
margin: 0;
padding: 0;
list-style: none;
box-sizing: border-box;
}
.list {
background: #fefae7;
}
.list .inner {
max-width: 1200px;
margin: 0 auto;
padding: 100px 30px;
}
@media only screen and (max-width: 900px) {
.list .inner {
max-width: 700px;
}
}
.list .inner .item {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
gap: 40px;
padding: 40px 0;
}
@media only screen and (max-width: 900px) {
.list .inner .item {
gap: 0px;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
}
@media only screen and (min-width: 900px) {
.list .inner .item:nth-child(2n) {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.list .inner .item:nth-child(2n) .img_box .number {
left: auto;
right: -0.8em;
}
}
.list .inner .item .img_box {
width: 450px;
position: relative;
}
@media only screen and (max-width: 900px) {
.list .inner .item .img_box {
width: 100%;
}
}
.list .inner .item .img_box .number {
position: absolute;
top: -0.8em;
left: -0.8em;
font-size: 24px;
width: 2.6em;
height: 2.6em;
line-height: 1;
font-weight: 900;
border-radius: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
background: #1f9c9b;
color: #fff;
border: solid 0.2em #fefae7;
}
.list .inner .item .img_box img {
width: 100%;
position: relative;
border-radius: 10px;
-webkit-box-shadow: 10px 10px 20px -10px rgba(0, 0, 0, 0.2);
box-shadow: 10px 10px 20px -10px rgba(0, 0, 0, 0.2);
}
.list .inner .item .txt_box {
-webkit-box-flex: 2;
-ms-flex: 2;
flex: 2;
padding-top: 20px;
}
.list .inner .item .txt_box .copy {
font-size: 15px;
font-weight: 600;
color: #1f9c9b;
}
.list .inner .item .txt_box h3 {
font-size: 28px;
color: #263942;
font-weight: 600;
border-bottom: solid 3px #1f9c9b;
line-height: 1.2;
padding: 0.3em 0 0.5em;
margin-bottom: 0.5em;
}
@media only screen and (max-width: 900px) {
.list .inner .item .txt_box h3 {
font-size: 22px;
}
}
.list .inner .item .txt_box p {
font-weight: 500;
color: #263942;
margin-bottom: 0.5em;
}
/*# sourceMappingURL=style.css.map */