123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- //
- // Component: Timeline
- //
- .timeline {
- margin: 0 0 45px;
- padding: 0;
- position: relative;
- // The line
- &::before {
- @include border-radius($border-radius);
- background-color: $gray-300;
- bottom: 0;
- content: "";
- left: 31px;
- margin: 0;
- position: absolute;
- top: 0;
- width: 4px;
- }
- // Element
- > div {
- &::before,
- &::after {
- content: "";
- display: table;
- }
- margin-bottom: 15px;
- margin-right: 10px;
- position: relative;
- // The content
- > .timeline-item {
- @include box-shadow($card-shadow);
- @include border-radius($border-radius);
- background-color: $white;
- color: $gray-700;
- margin-left: 60px;
- margin-right: 15px;
- margin-top: 0;
- padding: 0;
- position: relative;
- // The time and header
- > .time {
- color: #999;
- float: right;
- font-size: 12px;
- padding: 10px;
- }
- // Header
- > .timeline-header {
- border-bottom: 1px solid $card-border-color;
- color: $gray-700;
- font-size: 16px;
- line-height: 1.1;
- margin: 0;
- padding: 10px;
- // Link in header
- > a {
- font-weight: 600;
- }
- }
- // Item body and footer
- > .timeline-body,
- > .timeline-footer {
- padding: 10px;
- }
- > .timeline-body {
- > img {
- margin: 10px;
- }
- > dl,
- ol,
- ul {
- margin: 0;
- }
- }
- > .timeline-footer {
- > a {
- color: $white;
- }
- }
- }
- /* stylelint-disable selector-class-pattern */
- // The icons at line
- > .fa,
- > .fas,
- > .far,
- > .fab,
- > .fal,
- > .fad,
- > .svg-inline--fa,
- > .ion {
- background-color: $gray-500;
- border-radius: 50%;
- font-size: 16px;
- height: 30px;
- left: 18px;
- line-height: 30px;
- position: absolute;
- text-align: center;
- top: 0;
- width: 30px;
- }
- > .svg-inline--fa {
- padding: 7px;
- }
- /* stylelint-enable selector-class-pattern */
- }
- // Time label
- > .time-label {
- > span {
- @include border-radius(4px);
- background-color: $white;
- display: inline-block;
- font-weight: 600;
- padding: 5px;
- }
- }
- }
- .timeline-inverse {
- > div {
- > .timeline-item {
- @include box-shadow(none);
- background-color: $gray-100;
- border: 1px solid $gray-300;
- > .timeline-header {
- border-bottom-color: $gray-300;
- }
- }
- }
- }
- @include dark-mode () {
- .timeline {
- &::before {
- background-color: $gray-600;
- }
- > div > .timeline-item {
- background-color: $dark;
- color: $white;
- border-color: $gray-600;
- > .timeline-header {
- color: $gray-400;
- border-color: $gray-600;
- }
- > .time {
- color: $gray-400;
- }
- }
- }
- }
|