2015-02-01 22:25:09 +01:00
|
|
|
/*
|
|
|
|
* Component: Timeline
|
|
|
|
* -------------------
|
|
|
|
*/
|
|
|
|
|
2015-09-19 20:05:54 +02:00
|
|
|
.timeline {
|
2015-02-01 22:25:09 +01:00
|
|
|
position: relative;
|
|
|
|
margin: 0 0 30px 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
2015-02-16 03:30:35 +01:00
|
|
|
// The line
|
2015-02-01 22:25:09 +01:00
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2015-07-25 21:52:28 +02:00
|
|
|
top: 0;
|
2015-02-01 22:25:09 +01:00
|
|
|
bottom: 0;
|
2015-02-16 03:30:35 +01:00
|
|
|
width: 4px;
|
2015-02-01 22:25:09 +01:00
|
|
|
background: #ddd;
|
2015-02-16 03:30:35 +01:00
|
|
|
left: 31px;
|
2015-02-01 22:25:09 +01:00
|
|
|
margin: 0;
|
2015-02-16 03:30:35 +01:00
|
|
|
.border-radius(2px);
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> li {
|
|
|
|
position: relative;
|
|
|
|
margin-right: 10px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
.clearfix();
|
|
|
|
|
2015-02-16 03:30:35 +01:00
|
|
|
// The content
|
2015-02-01 22:25:09 +01:00
|
|
|
> .timeline-item {
|
2015-02-16 03:30:35 +01:00
|
|
|
.box-shadow(@box-boxshadow);
|
|
|
|
.border-radius(@box-border-radius);
|
2015-07-25 21:52:28 +02:00
|
|
|
margin-top: 0;
|
2015-02-01 22:25:09 +01:00
|
|
|
background: #fff;
|
2015-02-16 03:30:35 +01:00
|
|
|
color: #444;
|
2015-02-01 22:25:09 +01:00
|
|
|
margin-left: 60px;
|
|
|
|
margin-right: 15px;
|
2015-02-16 03:30:35 +01:00
|
|
|
padding: 0;
|
2015-02-01 22:25:09 +01:00
|
|
|
position: relative;
|
|
|
|
|
2015-02-16 03:30:35 +01:00
|
|
|
// The time and header
|
2015-02-01 22:25:09 +01:00
|
|
|
> .time {
|
|
|
|
color: #999;
|
|
|
|
float: right;
|
2015-02-16 03:30:35 +01:00
|
|
|
padding: 10px;
|
|
|
|
font-size: 12px;
|
2015-02-01 22:25:09 +01:00
|
|
|
}
|
|
|
|
> .timeline-header {
|
|
|
|
margin: 0;
|
|
|
|
color: #555;
|
2015-02-16 03:30:35 +01:00
|
|
|
border-bottom: 1px solid @box-border-color;
|
|
|
|
padding: 10px;
|
2015-02-01 22:25:09 +01:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 1.1;
|
|
|
|
> a {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Item body and footer
|
|
|
|
> .timeline-body, > .timeline-footer {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-02-16 03:30:35 +01:00
|
|
|
// The icons
|
2015-02-01 22:25:09 +01:00
|
|
|
> .fa,
|
|
|
|
> .glyphicon,
|
|
|
|
> .ion {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
font-size: 15px;
|
|
|
|
line-height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
color: #666;
|
2015-02-16 03:30:35 +01:00
|
|
|
background: @gray;
|
2015-02-01 22:25:09 +01:00
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
left: 18px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
2015-07-25 21:52:28 +02:00
|
|
|
|
|
|
|
// Time label
|
|
|
|
> .time-label {
|
|
|
|
> span {
|
|
|
|
font-weight: 600;
|
|
|
|
padding: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
.border-radius(4px);
|
|
|
|
}
|
|
|
|
}
|
2015-07-12 15:42:26 +02:00
|
|
|
}
|
2015-08-16 03:47:49 +02:00
|
|
|
|
|
|
|
.timeline-inverse {
|
|
|
|
> li {
|
|
|
|
> .timeline-item {
|
|
|
|
background: #f0f0f0;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
.box-shadow(none);
|
|
|
|
> .timeline-header {
|
|
|
|
border-bottom-color: #ddd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-17 07:39:25 +02:00
|
|
|
}
|