2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Timeline
|
|
|
|
//
|
2015-10-31 21:00:16 +00:00
|
|
|
|
|
|
|
.timeline {
|
2019-08-16 14:23:57 +00:00
|
|
|
margin: 0 0 45px;
|
2015-10-31 21:00:16 +00:00
|
|
|
padding: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
position: relative;
|
2015-10-31 21:00:16 +00:00
|
|
|
// The line
|
2019-06-28 08:02:07 +00:00
|
|
|
&::before {
|
|
|
|
@include border-radius($border-radius);
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $gray-300;
|
2019-06-28 08:02:07 +00:00
|
|
|
bottom: 0;
|
2020-05-30 13:06:11 +00:00
|
|
|
content: "";
|
2019-06-28 08:02:07 +00:00
|
|
|
left: 31px;
|
|
|
|
margin: 0;
|
2015-10-31 21:00:16 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 4px;
|
|
|
|
}
|
2019-08-16 14:23:57 +00:00
|
|
|
// Element
|
|
|
|
> div {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
|
|
|
margin-bottom: 15px;
|
2019-06-28 08:02:07 +00:00
|
|
|
margin-right: 10px;
|
|
|
|
position: relative;
|
2015-10-31 21:00:16 +00:00
|
|
|
// The content
|
|
|
|
> .timeline-item {
|
2018-03-17 17:07:55 +00:00
|
|
|
@include box-shadow($card-shadow);
|
|
|
|
@include border-radius($border-radius);
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $white;
|
2019-07-18 14:22:11 +00:00
|
|
|
color: $gray-700;
|
2015-10-31 21:00:16 +00:00
|
|
|
margin-left: 60px;
|
|
|
|
margin-right: 15px;
|
2019-06-28 08:02:07 +00:00
|
|
|
margin-top: 0;
|
2015-10-31 21:00:16 +00:00
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
|
|
|
// The time and header
|
|
|
|
> .time {
|
|
|
|
color: #999;
|
|
|
|
float: right;
|
|
|
|
font-size: 12px;
|
2019-06-28 08:02:07 +00:00
|
|
|
padding: 10px;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
2019-08-16 14:23:57 +00:00
|
|
|
// Header
|
2015-10-31 21:00:16 +00:00
|
|
|
> .timeline-header {
|
2018-03-17 17:07:55 +00:00
|
|
|
border-bottom: 1px solid $card-border-color;
|
2019-07-18 14:22:11 +00:00
|
|
|
color: $gray-700;
|
2015-10-31 21:00:16 +00:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 1.1;
|
2019-06-28 08:02:07 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 10px;
|
2019-08-16 14:23:57 +00:00
|
|
|
// Link in header
|
2015-10-31 21:00:16 +00:00
|
|
|
> a {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Item body and footer
|
2019-07-18 14:22:11 +00:00
|
|
|
> .timeline-body,
|
|
|
|
> .timeline-footer {
|
2015-10-31 21:00:16 +00:00
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2019-08-16 14:23:57 +00:00
|
|
|
> .timeline-body {
|
|
|
|
> img {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
2020-05-30 13:06:11 +00:00
|
|
|
> dl,
|
|
|
|
ol,
|
|
|
|
ul {
|
2019-10-21 09:00:50 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
2019-08-16 14:23:57 +00:00
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-08-16 14:23:57 +00:00
|
|
|
> .timeline-footer {
|
|
|
|
> a {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// The icons at line
|
2015-10-31 21:00:16 +00:00
|
|
|
> .fa,
|
2019-06-28 08:02:07 +00:00
|
|
|
> .fas,
|
|
|
|
> .far,
|
|
|
|
> .fab,
|
2020-07-22 14:50:44 +00:00
|
|
|
> .fal,
|
|
|
|
> .fad,
|
2020-07-24 15:59:40 +00:00
|
|
|
> .svg-inline--fa,
|
2015-10-31 21:00:16 +00:00
|
|
|
> .ion {
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $gray-500;
|
2019-06-28 08:02:07 +00:00
|
|
|
border-radius: 50%;
|
2020-07-24 15:59:40 +00:00
|
|
|
font-size: 16px;
|
2019-06-28 08:02:07 +00:00
|
|
|
height: 30px;
|
|
|
|
left: 18px;
|
2015-10-31 21:00:16 +00:00
|
|
|
line-height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
top: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
width: 30px;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
2020-07-24 15:59:40 +00:00
|
|
|
> .svg-inline--fa {
|
|
|
|
padding: 7px;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
// Time label
|
|
|
|
> .time-label {
|
|
|
|
> span {
|
2019-06-28 08:02:07 +00:00
|
|
|
@include border-radius(4px);
|
|
|
|
background-color: $white;
|
|
|
|
display: inline-block;
|
2015-10-31 21:00:16 +00:00
|
|
|
font-weight: 600;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-17 09:20:47 +00:00
|
|
|
|
|
|
|
.timeline-inverse {
|
|
|
|
> div {
|
|
|
|
> .timeline-item {
|
|
|
|
@include box-shadow(none);
|
2020-06-13 10:22:58 +00:00
|
|
|
background-color: $gray-100;
|
2019-08-17 09:20:47 +00:00
|
|
|
border: 1px solid $gray-300;
|
|
|
|
|
|
|
|
> .timeline-header {
|
|
|
|
border-bottom-color: $gray-300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
|
2021-04-13 12:24:31 +00:00
|
|
|
@include dark-mode () {
|
2020-09-24 07:08:20 +00:00
|
|
|
.timeline {
|
|
|
|
&::before {
|
|
|
|
background-color: $gray-600;
|
|
|
|
}
|
|
|
|
> div > .timeline-item {
|
|
|
|
background-color: $dark;
|
|
|
|
color: $white;
|
|
|
|
border-color: $gray-600;
|
2020-09-23 14:08:15 +00:00
|
|
|
|
2020-09-24 07:08:20 +00:00
|
|
|
> .timeline-header {
|
|
|
|
color: $gray-400;
|
|
|
|
border-color: $gray-600;
|
|
|
|
}
|
|
|
|
> .time {
|
|
|
|
color: $gray-400;
|
|
|
|
}
|
2020-09-23 14:08:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|