JSFiddle - React, Tailwind, and code Playground
by ced1
CSS
.home-block-ab {
margin-bottom: 20px;
&__rectangle {
height: 103px;
width: 100%;
max-width: 1280px;
border: 1px solid #EBEBEB;
border-radius: 10px;
background-color: #FFFFFF;
padding: 30px 40px;
@media only screen and (min-width : 768px)
and (max-width : 1224px) {
height: 155px;
}
@media only screen and (max-width : 768px){
height: 300px;
}
}
&__ol{
height: auto;
width: auto;
display: flex;
flex-wrap: wrap;
counter-reset: section;
list-style-type: none;
}
&__li{
position: relative;
margin: 10px;
flex: 1 0 auto;
padding-left: 40px;
margin-top: -2px;
@media only screen and (min-width : 768px)
and (max-width : 1224px) {
width: calc(50% - 20px);
margin-top: 0px;
}
@media only screen and (max-width : 768px){
width: calc(100% - 20px);
margin-top: 0px;
}
}
&__oval {
height: 21px;
width: 21px;
background-color: #E94E1F;
border-radius: 50%;
display: inline-block;
position: relative;
position: absolute;
top: 27%;
left:3%;
margin-top: -10px;
@media only screen and (min-width : 650px)
and (max-width : 768px) {
left:-2%;
}
@media only screen and (max-width : 650px){
left:-5%;
}
&--counter{
position: absolute;
height: 18px;
width: 8px; color: #FFFFFF;
font-family: "Open Sans";
font-size: 13px;
font-weight: bold;
line-height: 18px;
text-align: center;
padding-left: 7px;
}
&--counter:before{
counter-increment: section;
content: counters(section,".") " ";
}
}
&__title{
color: #2C4973;
font-family: "Open Sans";
font-size: 15px;
font-weight: bold;
line-height: 20px;
text-align: left;
&--description{
color: #333333;
font-family: "Open Sans";
font-size: 13px;
line-height: 18px;
margin-top: -10px;
text-align: left;
}
}
}