﻿

/*!
	Timeline - v0.0.1
	ilker Yılmaz
	https://github.com/ilkeryilmaz/timeline
 */

.timeline-container {
    position: relative;
}

.timeline-container::after {
    content: '';
    display: table;
    clear: both;
}

.timeline {
    width: 100%;
}

.timeline-list {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.timeline-list-wrap {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    transform: translate3d(0, 0, 0);
    transition: transform 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.timeline-item {
    float: left;
    width: 800px;
    height: 400px;
    box-sizing: border-box;
}

.timeline-dots-wrap {
    position: absolute;
    overflow: hidden;
}

.timeline-horizontal .timeline-dots-wrap {
    width: 100%;
    height: 60px;
    line-height: 58px;
}

.timeline-vertical .timeline-dots-wrap {
    width: 65px;
    height: 100%;
    top: 0;
}

.timeline-dots-wrap.bottom {
    bottom: -50px;
}

.timeline-dots-wrap.top {
    top: -50px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.timeline-dots-wrap.left {
    left: -65px;
}

.timeline-dots-wrap.right {
    right: -70px;
}

.timeline-dots {
    margin: 0;
    padding: 0;
    position: relative;
    width: 10000px;
    height: 100%;
    transition: transform 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.timeline-horizontal .timeline-dots {
    background: url("https://www.edifier.com/cn/img/timeline-bg.png") bottom repeat-x;
}

.timeline-vertical .timeline-dots {
    background: url("https://www.edifier.com/cn/img/timeline-vertical-bg.png") left repeat-y;
}

.timeline-dots li {
    transition: all 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    list-style: none;
    overflow: hidden;
}

.timeline-horizontal .timeline-dots li {
    float: left;
    padding: 0 22px;
    text-align: center;
}

.timeline-vertical .timeline-dots li {
    width: 100%;
}

.timeline-dots li.slide-active {
    position: relative;
}

.timeline-dots li.slide-active button {
    color: #232428;
    font-size: 24px;
}

.timeline-dots li.slide-active ::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    content: "";
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid #232428;
}

.timeline-dots button {
    cursor: pointer;
    border: none;
    outline: none;
    color: #666;
    font-size: 20px;
    transition: all 1s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.timeline-horizontal .timeline-dots button {
    background: url("https://www.edifier.com/cn/img/date-icon.png") bottom no-repeat;
    padding-bottom: 15px;
}

.timeline-vertical .timeline-dots button {
    background: url("https://www.edifier.com/cn/img/date-icon-vertical.png") left no-repeat;
    padding-left: 15px;
}

.timeline-container {
    width: 800px;
    margin: 0 auto;
}

.timeline-list {
    width: 800px;
}

.timeline-item {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.timeline-item div {
    max-width: 200px;
    padding: 0 20px;
    font-size: 12px;
    text-align: center;
}

.timeline-item img {
    max-height: 100px;
    margin-bottom: 5px;
    max-width: 100%;
}