Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit f195537

Browse files
lukeautryijsnow
authored andcommitted
fix: sync z-index for github tree and hover overlay (#278)
Closes https://github.com/sourcegraph/sourcegraph/issues/242.
1 parent 58b64ce commit f195537

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/libs/code_intelligence/HoverOverlay.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import '../gitlab/style.scss';
2+
@import '../../global-styles/variables.scss';
23

34
.hover-overlay-mount__phabricator {
45
.hover-overlay {
@@ -18,3 +19,7 @@
1819
}
1920
}
2021
}
22+
23+
.hover-overlay {
24+
z-index: $default-z-index;
25+
}

src/libs/gitlab/style.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.hover-overlay-mount__gitlab {
22
.hover-overlay {
3-
z-index: 999;
4-
53
code {
64
background: none;
75
color: unset;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$default-z-index: 2000;

src/shared/tree/tree.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
@import '../global-styles/variables.scss';
2+
13
.tree-mount {
24
position: fixed;
35
top: 0;
46
left: 0;
5-
z-index: 2000;
7+
z-index: $default-z-index - 1;
68
width: 100%;
79
pointer-events: none;
810
height: 100%;

0 commit comments

Comments
 (0)