.main-timeline{ font-family: 'Poppins', sans-serif; position: relative; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: 50.2%; margin: 0 0 30px; float: right; position: relative; } .main-timeline .timeline-content{ color: #777; min-height: 130px; padding: 0 0 0 85px; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-icon{ color: #fff; background: #D7DBF7; font-size: 45px; text-align: center; line-height: 120px; width: 120px; height: 120px; border-radius: 50%; transform: translateY(-50%) ; position: absolute; top: 50%; left: -60px; z-index: 1; } .main-timeline .timeline-icon:before, .main-timeline .timeline-icon:after{ content: ''; background: linear-gradient(to right bottom, #D4E0E7,#fff); border-radius: 5px; border: 2px solid #fff; transform: rotate(45deg); position: absolute; left: 12px; right: 12px; top: 12px; bottom: 12px; z-index: -1; } .main-timeline .timeline-icon:after{ background: linear-gradient(to right bottom, #7B02E5,#8D2DE1); border-radius: 50%; border: none; left: 18px; right: 18px; top: 18px; bottom: 18px; } .main-timeline .timeline-year{ color: #7B02E5; font-size: 33px; font-weight: 700; margin: 0 0 5px; } .main-timeline .title{ color: #555; font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 5px; } .main-timeline .description{ font-size: 13px; letter-spacing: 1px; margin: 0; } .main-timeline .timeline:nth-child(even){ float: left; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 0 85px 0 0; } .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateY(-50%); left: auto; right: -60px; } .main-timeline .timeline:nth-child(4n+2) .timeline-icon:after{ background: linear-gradient(to right bottom,#FEB140,#FADC27); } .main-timeline .timeline:nth-child(4n+2) .timeline-year{ color: #FEB140; } .main-timeline .timeline:nth-child(4n+3) .timeline-icon:after{ background: linear-gradient(to right bottom,#B21E7D,#EE40B4); } .main-timeline .timeline:nth-child(4n+3) .timeline-year{ color: #B21E7D; } .main-timeline .timeline:nth-child(4n+4) .timeline-icon:after{ background: linear-gradient(to right bottom,#6352B0,#548ECC); } .main-timeline .timeline:nth-child(4n+4) .timeline-year{ color: #6352B0; } @media screen and (max-width:767px){ .main-timeline .timeline{ width: 100%; } .main-timeline .timeline-content{ padding: 0 0 0 150px; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 0 150px 0 0; } .main-timeline .timeline-icon{ left: 0; } .main-timeline .timeline:nth-child(even) .timeline-icon{ right: 0; } } @media screen and (max-width:576px){ .main-timeline .timeline-content, .main-timeline .timeline:nth-child(even) .timeline-content{ text-align: center; padding: 140px 0 0; } .main-timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateX(-50%) translateY(0); left: 50%; top: 4px; } .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateX(-50%) translateY(0); } }