Skip to content

Commit

Permalink
feat(step): added right vertical steps variant having the arrow to th…
Browse files Browse the repository at this point in the history
…e left side
  • Loading branch information
lubber-de authored May 14, 2020
1 parent a08f089 commit 1986ea2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/definitions/elements/step.less
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@
border-width: @verticalArrowBorderWidth;
display: @verticalArrowDisplay;
}
.ui.right.vertical.steps .step:after {
border-width: @verticalLeftArrowBorderWidth;
left: @verticalLeftArrowLeftOffset;
right: @verticalLeftArrowRightOffset;
transform: translateY(-50%) translateX(-50%) rotate(-45deg);
}

.ui.vertical.steps .active.step:after {
display: @verticalActiveArrowDisplay;
Expand Down
3 changes: 3 additions & 0 deletions src/themes/default/elements/step.variables
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
@verticalDivider: @divider;
@verticalArrowTopOffset: 50%;
@verticalArrowRightOffset: 0;
@verticalLeftArrowLeftOffset: 0;
@verticalLeftArrowRightOffset: 100%;
@verticalLeftArrowBorderWidth: @borderWidth 0 0 @borderWidth;
@verticalArrowBorderWidth: 0 @borderWidth @borderWidth 0;

@verticalArrowDisplay: none;
Expand Down

0 comments on commit 1986ea2

Please sign in to comment.