AdminLTE/build/scss/_timeline.scss

128 lines
2.3 KiB
SCSS
Raw Normal View History

//
// Component: Timeline
//
2015-10-31 21:00:16 +00:00
.timeline {
margin: 0 0 45px;
2015-10-31 21:00:16 +00:00
padding: 0;
position: relative;
2015-10-31 21:00:16 +00:00
// The line
&::before {
@include border-radius($border-radius);
background: $gray-300;
bottom: 0;
2015-10-31 21:00:16 +00:00
content: '';
left: 31px;
margin: 0;
2015-10-31 21:00:16 +00:00
position: absolute;
top: 0;
width: 4px;
}
// Element
> div {
&::before,
&::after {
content: "";
display: table;
}
2015-10-31 21:00:16 +00:00
margin-bottom: 15px;
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);
background: $white;
color: $gray-700;
2015-10-31 21:00:16 +00:00
margin-left: 60px;
margin-right: 15px;
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;
padding: 10px;
2015-10-31 21:00:16 +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;
color: $gray-700;
2015-10-31 21:00:16 +00:00
font-size: 16px;
line-height: 1.1;
margin: 0;
padding: 10px;
// Link in header
2015-10-31 21:00:16 +00:00
> a {
font-weight: 600;
}
}
// Item body and footer
> .timeline-body,
> .timeline-footer {
2015-10-31 21:00:16 +00:00
padding: 10px;
}
> .timeline-body {
> img {
margin: 10px;
}
> dl, ol, ul {
margin: 0;
}
}
2015-10-31 21:00:16 +00:00
> .timeline-footer {
> a {
color: $white;
}
}
}
// The icons at line
2015-10-31 21:00:16 +00:00
> .fa,
> .fas,
> .far,
> .fab,
2015-10-31 21:00:16 +00:00
> .glyphicon,
> .ion {
background: $gray-500;
border-radius: 50%;
2015-10-31 21:00:16 +00:00
font-size: 15px;
height: 30px;
left: 18px;
2015-10-31 21:00:16 +00:00
line-height: 30px;
position: absolute;
text-align: center;
top: 0;
width: 30px;
2015-10-31 21:00:16 +00:00
}
}
// Time label
> .time-label {
> span {
@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);
background: $gray-100;
border: 1px solid $gray-300;
> .timeline-header {
border-bottom-color: $gray-300;
}
}
}
}