#story_timeline{ width: 100%; background: #e0e0e0; padding-top: 70px; } #timeline .timeline-item:after,#timeline .timeline-item:before { content: ''; display: block; width: 100%; clear: both; } #timeline { width: 100%; margin: 50px auto; position: relative; background: #e0e0e0; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; -ms-transition: all 0.4s ease; transition: all 0.4s ease; margin: 50px auto 0; padding-bottom: 50px; } #timeline:before { content: ""; width: 3px; height: 100%; background: #FFFFFF; left: 50%; top: 0px; position: absolute; } #timeline:after { content: ""; clear: both; display: table; width: 100%} #timeline .timeline-item { margin-bottom: 50px; position: relative; } #timeline .timeline-item .timeline-icon { background: #e0e0e0; width: 20px; height: 20px; position: absolute; top: 40px; left: 50%; overflow: hidden; border: 3px solid #FFFFFF; margin-left: -8px; -webkit-border-radius: 50%; -moz-border-radius: 50%; -ms-border-radius: 50%; border-radius: 50%; -moz-box-shadow:1px 0px 5px #FFFFFF; -webkit-box-shadow:1px 0px 5px #FFFFFF; box-shadow:1px 0px 5px #FFFFFF; } #timeline .timeline-item .timeline-icon:after { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #f90713; content: " "; position: absolute; top: 3px; left: 3px; } #timeline .timeline-item .timeline-content { width: 45%; background: transparent; /*background: #fff;*/ height: auto; margin-left: 10px; /*height: 100px;*/ /*-webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);*/ /*-moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);*/ /*-ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);*/ /*box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);*/ /*-webkit-border-radius: 5px;*/ /*-moz-border-radius: 5px;*/ /*-ms-border-radius: 5px;*/ /*border-radius: 5px;*/ /*-webkit-transition: all 0.3s ease;*/ /*-moz-transition: all 0.3s ease;*/ /*-ms-transition: all 0.3s ease;*/ transition: all 0.3s ease; } #timeline .timeline-item .timeline-content:hover{ /*background: #d0cdcd;*/ } #timeline .timeline-item .timeline-content h2 { display: inline-block; width: 100%; height: auto; /*width: 106px;*/ /*height: 100px;*/ /*line-height: 100px;*/ padding: 0 15px; /*background: #f90713;*/ /*color: #fff;*/ /*margin: 0px -10px 0 -20px;*/ font-weight: bold; /*-webkit-border-radius: 3px 3px 0 0;*/ /*-moz-border-radius: 3px 3px 0 0;*/ /*-ms-border-radius: 3px 3px 0 0;*/ /*border-radius: 3px 3px 0 0;*/ float: right; } #timeline .timeline-item:nth-child(2n) .timeline-content h2{ float: left; } #timeline .timeline-item .timeline-content.right h2{ margin-left: 0px; } #timeline .timeline-item .timeline-content .timeline_desc{ /*width: calc(100% - 100px);*/ padding: 3px 16px; vertical-align: middle; white-space: normal; word-break: break-all; /*text-overflow: ellipsis;*/ /*display: -webkit-box;*/ /*-webkit-box-orient: vertical;*/ /*-webkit-line-clamp: 4;*/ /*overflow: hidden;*/ align-items: center; font-size: 16px; font-weight: normal; font-stretch: normal; line-height: 22px; letter-spacing: 0px; color: #3a3a3a; } #timeline .timeline-item .timeline-content:before { content: ''; position: absolute; left: calc(45% + 10px); top: 40px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 7px solid transparent; } #timeline .timeline-item .timeline-content.right { float: right; } #timeline .timeline-item .timeline-content.right:before { content: ''; right: 45%; left: inherit; border-left: 0; border-right: 7px solid transparent; } @media screen and (max-width: 992px) { #timeline { margin: 30px auto; padding: 0; } #timeline:before { left: 0; } #timeline .timeline-item .timeline-content { width: 98%; /*width: 90%;*/ float: right; } #timeline .timeline-item .timeline-content:before, #timeline .timeline-item .timeline-content.right:before { left: 10%; margin-left: -6px; border-left: 0; border-right: 7px solid #ee4d4d; display: none; } #timeline .timeline-item .timeline-icon { border: 1px solid #f90713; left: 5px; width: 10px; height: 10px; } #timeline .timeline-item .timeline-icon:after{ width: 4px; height: 4px; top: 2px; left: 2px; } #timeline .timeline-item:nth-child(2n-1) .timeline-content h2{ float: left; margin-left: 0px; } }