Skip to content

Commit

Permalink
Fix z-index of timeline components (draios#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideschiera authored and ApsOps committed Oct 10, 2017
1 parent e87e54d commit 1ca7873
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/ui-toolkit/addon/styles/sd-viz-timeline.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@time-label-height: 14px + 2px;
@time-diff-label-width: 140px;

@z-index-marker: 1;
@z-index-selected-area: 2;
@z-index-handles: 3;
@z-index-labels: 4;

flex: 1;

display: flex;
Expand All @@ -47,8 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}

&__selected-area {
z-index: 1;

flex: 1;

position: relative;
Expand All @@ -57,11 +60,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
&__left-area,
&__right-area {
background-color: @color-outer-area;
z-index: @z-index-selected-area;
}

&__draggable-handle {
position: absolute;
z-index: 2;
z-index: @z-index-handles;
width: @draggable-handle-width;
top: 0;
bottom: 0;
Expand Down Expand Up @@ -157,7 +161,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

&--is-on-top {
top: 0;
z-index: 2;
}

&:before,
Expand All @@ -178,6 +181,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
border-left-color: @color-time-markers;
}
}
&__time,
&__time-diff {
z-index: @z-index-labels;
}

&__time-diff-icon {
width: 16px;
}
Expand Down Expand Up @@ -242,7 +250,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

&__hover-marker {
position: absolute;
z-index: 1;
z-index: @z-index-marker;
top: 0;
left: 256px;

Expand Down

0 comments on commit 1ca7873

Please sign in to comment.