1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00
Files
tabler/core/scss/ui/_timeline.scss
2025-11-23 22:05:45 +01:00

62 lines
1.3 KiB
SCSS

//
// Timeline
//
.timeline {
--#{$prefix}timeline-icon-size: #{$avatar-size};
position: relative;
list-style: none;
padding: 0;
}
//
// Timeline event
//
.timeline-event {
position: relative;
&:not(:last-child) {
margin-bottom: var(--#{$prefix}page-padding);
&:before {
content: '';
position: absolute;
top: var(--#{$prefix}timeline-icon-size);
inset-inline-start: calc(var(--#{$prefix}timeline-icon-size) / 2);
bottom: calc(-1 * var(--#{$prefix}page-padding));
width: var(--#{$prefix}border-width);
background-color: var(--#{$prefix}border-color);
border-radius: var(--#{$prefix}border-radius);
}
}
}
.timeline-event-icon {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: var(--#{$prefix}timeline-icon-size, $avatar-size);
height: var(--#{$prefix}timeline-icon-size, $avatar-size);
background: var(--#{$prefix}bg-surface-secondary);
color: var(--#{$prefix}secondary);
border-radius: var(--#{$prefix}border-radius);
z-index: 5;
}
.timeline-event-card {
margin-inline-start: calc(var(--#{$prefix}timeline-icon-size, $avatar-size) + var(--#{$prefix}page-padding));
}
//
// Simple timeline
//
.timeline-simple {
.timeline-event-icon {
display: none;
}
.timeline-event-card {
margin-inline-start: 0;
}
}