File: /var/www/nowruzgan.com/oil-timeline/styles/timeline.css
#timeline {
position: fixed;
right: 50%;
bottom: 40px;
width: 980px;
height: 80px;
margin-right: -490px;
direction: ltr;
/*background-color: red;*/
}
#timeline .time-prev {
float: left;
width: 35px;
height: 85px;
background-image: url(../images/prev.png);
opacity: 0.5;
cursor: pointer;
-webkit-transition: opacity 0.1s ease-in-out;
-moz-transition: opacity 0.1s ease-in-out;
-ms-transition: opacity 0.1s ease-in-out;
-o-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
}
#timeline .time-prev:hover {
opacity: 1;
}
#timeline .time-prev.disabled {
cursor: auto;
}
#timeline .time-prev.disabled:hover {
opacity: 0.5;
}
#timeline .time-track {
float: left;
width: 910px;
}
#timeline .time-next {
float: left;
width: 35px;
height: 85px;
background-image: url(../images/next.png);
opacity: 0.5;
cursor: pointer;
-webkit-transition: opacity 0.1s ease-in-out;
-moz-transition: opacity 0.1s ease-in-out;
-ms-transition: opacity 0.1s ease-in-out;
-o-transition: opacity 0.1s ease-in-out;
transition: opacity 0.1s ease-in-out;
}
#timeline .time-next:hover {
opacity: 1;
}
#timeline .time-next.disabled {
cursor: auto;
}
#timeline .time-next.disabled:hover {
opacity: 0.5;
}
#date-panel{
background-color: rgba(0,0,0,0.8);
height: 30px;
}
#date-panel ul {
margin-left: 5px;
}
#date-panel ul li {
display: inline-block;
width: 90px;
text-align: center;
}
#date-panel ul li.first {
width: 45px;
text-align: left;
}
#date-panel ul li.last {
width: 45px;
text-align: right;
}
#event-panel{
height: 50px;
background-image: url(../images/timeline-bg.png);
background-color: rgba(0,0,0,0.45);
border: 5px solid rgba(0,0,0,0.55);
border-bottom: none;
position: relative;
}
#timeline .event {
position: absolute;
width: 5px;
height: 50px;
bottom: 0;
margin: 0 2px;
-webkit-transition: height 0.1s ease-in-out 0.3s;
-moz-transition: height 0.1s ease-in-out 0.3s;
-ms-transition: height 0.1s ease-in-out 0.3s;
-o-transition: height 0.1s ease-in-out 0.3s;
transition: height 0.1s ease-in-out 0.3s;
z-index: 10;
}
#timeline .event.selected,
#timeline .event:hover {
height: 80px;
cursor: pointer;
-webkit-transition: height 0.1s ease-in-out;
-moz-transition: height 0.1s ease-in-out;
-ms-transition: height 0.1s ease-in-out;
-o-transition: height 0.1s ease-in-out;
transition: height 0.1s ease-in-out;
z-index: 10;
}
#timeline .event:hover {
z-index: 20;
}
#timeline .event.event-concession {
background-color: #ff3000;
}
#timeline .event.event-platform {
background-color: #ff8a00;
}
#timeline .event.event-social {
background-color: #bde600;
}
#timeline .event-description {
position: relative;
width: 0px;
height: 25px;
left: 4px;
background: #D0D0D0;
color: black;
direction: rtl;
overflow: hidden;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
#timeline .event.selected .event-description,
#timeline .event:hover .event-description {
width: 150px;
-webkit-transition: all 0.3s ease-in-out 0.1s;
-moz-transition: all 0.3s ease-in-out 0.1s;
-ms-transition: all 0.3s ease-in-out 0.1s;
-o-transition: all 0.3s ease-in-out 0.1s;
transition: all 0.3s ease-in-out 0.1s;
}
#timeline .event:hover .event-description {
background: #FFFFFF;
}
#timeline .event-description p {
padding: 5px 5px 0 5px;
}