Skip to content

Commit

Permalink
Provide z-index centralisation for lower components
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelk committed Feb 21, 2020
1 parent 97eae83 commit 555fdc8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/app/app.component.scss
Expand Up @@ -21,7 +21,7 @@
display: flex;

.top-left-block {
z-index: z(headerLeft);
z-index: 1;
height: $header-height;
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/header/search-typeahead.component.scss
Expand Up @@ -30,7 +30,7 @@
.jump-to-suggestions {
top: 100%;
left: 0;
z-index: 35;
z-index: z(typeahead);
width: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/app/shared/video/video-thumbnail.component.scss
Expand Up @@ -25,7 +25,7 @@
border-radius: 3px;
font-size: 12px;
font-weight: $font-bold;
z-index: 1;
z-index: z(miniature);
}

.video-thumbnail-duration-overlay {
Expand Down
Expand Up @@ -462,6 +462,7 @@ my-video-comments {
.privacy-concerns {
position: fixed;
bottom: 0;
z-index: z(privacymsg);

padding: 5px 15px;

Expand Down
5 changes: 3 additions & 2 deletions client/src/sass/include/_variables.scss
Expand Up @@ -102,9 +102,10 @@ $variables: (
/*** z-index groups ***/

$zindex: (
miniature : 10,
privacymsg : 20,
typeahead : 30,
header : 1000,
/* header context */
headerLeft : 10,
menu : 11000,
dropdown : 12000,
popover : 13000,
Expand Down

0 comments on commit 555fdc8

Please sign in to comment.