Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion styles/web/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion styles/web/css/main.css.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion styles/web/sass/core/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,17 @@ $callout-success-bg: $color-success-lighter !default;
$callout-warning-bg: $color-warning-lighter !default;
$callout-danger-bg: $color-danger-lighter !default;

//== Timeline
//## Extended variables for Timeline Widget
// Colors
$timeline-icon-color: $brand-primary;
$timeline-border-color: $border-color-default;

$timeline-color-header: $font-color-header;
$timeline-color-detail: $font-color-detail;


// Sizes
$timeline-icon-size: 18px;

//== Spacing
//## Advanced layout options (used in base/mixins/default-spacing)
Expand Down
4 changes: 1 addition & 3 deletions styles/web/sass/core/widgets/_popupmenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
display: none;
flex-direction: column;
width: max-content;
border: 1px solid $border-color-default;
border-radius: 8px;
background-color: $bg-color;
box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.02), 0 8px 10px 1px rgba(0, 0, 0, 0.04),
0 5px 5px -3px rgba(0, 0, 0, 0.08);
box-shadow: 0 2px 20px 1px rgba(5, 15, 129, 0.05), 0 2px 16px 0 rgba(33, 43, 54, 0.08);

&.popupmenu-position-left {
top: 0;
Expand Down
100 changes: 93 additions & 7 deletions styles/web/sass/core/widgets/_timeline.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,102 @@
.widget-timeline-icon-circle {
background-color: $brand-primary
.widget-timeline-date-header {
display: inline-block;
width: 110px;
overflow-wrap: break-word;
padding: 8px;
text-align: center;
border: 1px solid $timeline-border-color;
border-radius: 30px;
}

.widget-timeline-events-wrapper {
display: flex;
flex: 1;
margin-left: 55px;
padding-top: 35px;

ul {
padding: 0;
list-style: none;
margin-bottom: 0;
}
}

.widget-timeline-title {
color: $timeline-color-header;
font-weight: 600;
margin: 0 0 10px 0;
}

.widget-timeline-info-wrapper {
&:hover {
.title {
color: rgba($brand-primary, 0.7)
.widget-timeline-description {
color: $timeline-color-detail;
}

.widget-timeline-event {
position: relative;
margin-left: $timeline-icon-size / 2;
padding-left: $spacing-large;
padding-bottom: 20px;

&:not(:last-of-type) {
border-left: 1px solid $timeline-border-color;
}

&.clickable {
cursor: pointer;
transition: background 0.8s;

&:hover {
.widget-timeline-title {
color: #dadcde;
}
}
}
}
}

.widget-timeline-icon-wrapper {
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
width: $timeline-icon-size;
height: $timeline-icon-size;
transform: translateX(-50%);

.glyphicon {
font-size: $timeline-icon-size;
}

img {
max-width: $timeline-icon-size;
max-height: $timeline-icon-size;
}
}

.widget-timeline-content-wrapper {
.widget-timeline-date-time-wrapper {
margin-right: 15px;
}

.widget-timeline-info-wrapper {
flex-direction: column;
}
}

.widget-timeline-icon-circle {
width: 18px;
height: 18px;
border-radius: 50%;
background-color: $timeline-icon-color;
}

.widget-timeline-no-divider {
padding-bottom: 0;
padding-top: 0;
margin-left: 0;
}

.widget-timeline-flex-container {
display: flex;
}