.timeline-signinreport { position: relative; } .timeline-signinreport::before { content: ''; background: #0a9dc7; width: 3px; height: 95%; position: absolute; left: 50%; } .timeline-item { width: 100%; padding: 6px; } .timeline-item:nth-child(even) .timeline-content { float: right; padding: 20px 15px 0 15px; } .timeline-item:nth-child(even) .timeline-content .date { right: auto; left: 0; } .timeline-item:nth-child(even) .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; left: -13px; border-width: 10px 15px 10px 0; border-color: transparent #f5f5f5 transparent transparent; } .timeline-item::after { content: ''; display: block; clear: both; } .timeline-content { position: relative; width: 40%; padding: 10px 10px; border-radius: 4px; background: #f5f5f5; box-shadow: 0 20px 25px -15px rgba(0, 0, 0, 0.3); } .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; right: -15px; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #f5f5f5; } .timeline-img { width: 20px; height: 20px; background: #11c1f3; border-radius: 50%; position: absolute; left: 50%; margin-top: 25px; margin-left: -9px; } .timeline-signinreport a { background: #3F51B5; color: #FFFFFF; padding: 8px 20px; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; margin-top: 10px; display: inline-block; border-radius: 2px; box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.6); } .timeline-signinreport a:hover, .timeline-signinreport a:active, .timeline-signinreport a:focus { background: #32408f; color: #FFFFFF; text-decoration: none; } .timeline-img-header { height: 100px; position: relative; } .timeline-img-header h4 { color: #FFFFFF; position: absolute; padding-top: 2px; left: 20px; } .date { background: #FF4081; display: inline-block; color: #FFFFFF; padding: 5px; position: absolute; top: 0; right: 0; } @media screen and (max-width: 160px) { .timeline-signinreport::before { left: 50px; } .timeline-signinreport .timeline-img { left: 50px; } .timeline-signinreport .timeline-content { max-width: 100%; width: auto; margin-left: 50px; } .timeline-signinreport .timeline-item:nth-child(even) .timeline-content { float: none; } .timeline-signinreport .timeline-item:nth-child(odd) .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; left: -15px; border-width: 10px 15px 10px 0; border-color: transparent #f5f5f5 transparent transparent; } }