Skip to content

Commit

Permalink
fix(timeline): fixing styles for border and toggle aligment - FRONT-4…
Browse files Browse the repository at this point in the history
…264 (#3238)

* fix(timeline): fixing styles for border and toggle aligment - FRONT-4264

* fix(timeline): Increasing the height of the first item - FRONT-4264

* fix(timeline): Fixing height of the dashed border - FRONT-4264
  • Loading branch information
planctus committed Feb 15, 2024
1 parent 1f79985 commit 06d1bff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -76,6 +76,7 @@ $timeline: null !default;

&::before {
border-inline-start-style: dashed;
height: calc(100% + var(--s-2xs));
top: calc(-1 * var(--s-2xs));
}

Expand All @@ -85,7 +86,7 @@ $timeline: null !default;
box-sizing: border-box;
height: map.get($timeline, 'bullet-size') +
(map.get($timeline, 'bullet-border-width') * 2);
top: var(--s-2xs) + var(--s-xs);
top: calc(var(--s-2xs) + var(--s-xs));
width: map.get($timeline, 'bullet-size') +
(map.get($timeline, 'bullet-border-width') * 2);
}
Expand Down
4 changes: 2 additions & 2 deletions src/themes/ec/variables/_timeline.scss
Expand Up @@ -11,8 +11,8 @@ $timeline: (
content-big-font: var(--f-m),
content-font: var(--f-m),
content-color: var(--c-d),
first-item-offset: var(--s-2xs),
first-item-height: 100%,
first-item-offset: calc(-1 * var(--s-2xs)),
first-item-height: calc(100% + var(--s-2xs)),
item-padding-top: var(--s-2xs),
label-alignment: right,
label-color: var(--c-d),
Expand Down

1 comment on commit 06d1bff

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.