.main-timeline{ font-family: 'Poppins', sans-serif; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: 50%; padding: 0 40px 0 0; margin: 0 5px 15px 0; float: left; } .main-timeline .timeline-content{ min-height: 120px; padding: 0 20px; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-icon{ color: #fff; background: linear-gradient(#8FCB00 50%,#76A414 50%); font-size: 40px; text-align: center; line-height: 110px; width: 110px; height: 110px; padding-left: 14px; text-shadow: 0 0 10px rgba(0,0,0,0.2); transform: translateY(-50%); position: absolute; right: -110px; top: 50%; clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%); } .main-timeline .title{ color: #76A414; font-size: 19px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 7px; } .main-timeline .description{ color: #666; font-size: 13px; font-weight: 400; line-height: 21px; letter-spacing: 1px; margin: 0; } .main-timeline .timeline:nth-child(even){ padding: 0 0 0 40px; margin: 0 0 15px 5px; float: right; } .main-timeline .timeline:nth-child(even) .timeline-icon{ padding: 0 14px 0 0; right: auto; left: -110px; clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%); } .main-timeline .timeline:nth-child(4n+2) .timeline-icon{ background: linear-gradient(#EE3E1A 50%,#B93018 50%); } .main-timeline .timeline:nth-child(4n+2) .title{ color: #B93018; } .main-timeline .timeline:nth-child(4n+3) .timeline-icon{ background: linear-gradient(#3DA4E6 50%,#3977BD 50%); } .main-timeline .timeline:nth-child(4n+3) .title{ color: #3977BD; } .main-timeline .timeline:nth-child(4n+4) .timeline-icon{ background: linear-gradient(#8A6BD4 50%,#5A429C 50%); } .main-timeline .timeline:nth-child(4n+4) .title{ color: #5A429C; } @media screen and (max-width:767px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ width: 100%; padding: 0 0 0 110px; margin: 0 0 30px; } .main-timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ left: -110px; right: auto; } } @media screen and (max-width:479px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ padding: 130px 0 0; } .main-timeline .timeline-content{ text-align: center; } .main-timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateY(0) translateX(-50%); top: -130px; left: 50%; } }