Skip to content

Commit

Permalink
messages <> menu z-index conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
moshfeu committed Oct 13, 2019
1 parent 1e8479c commit 2c6ee61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/styles/components/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ a.has-underline {
bottom: 10px;
// to not block the user to click on the last video
pointer-events: none;
z-index: $z-index-messages;

a {
pointer-events: all;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
top: 0;
left: 0;
color: #fff;
z-index: 999;
z-index: $z-index-menu;

.ui.floating.label.has-update-not {
top: -5px;
Expand Down
3 changes: 3 additions & 0 deletions src/styles/constants.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$z-index-menu: 999;
$z-index-messages: $z-index-menu + 1;
// .ui.dimmer (semantic modal overlay) { z-index: 1000 }
1 change: 1 addition & 0 deletions src/styles/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import './constants.scss';
@import './colors.scss';
@import './mixin.scss';
@import './semantic-reset.scss';
Expand Down

0 comments on commit 2c6ee61

Please sign in to comment.