From b97ce52c6f4bce2312fd87421e511b44834cd48d Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Thu, 12 Jan 2017 14:20:41 +0000 Subject: [PATCH] Handle z-index issues with mini review panel. --- .../stylesheets/app/editor/review-panel.less | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/services/web/public/stylesheets/app/editor/review-panel.less b/services/web/public/stylesheets/app/editor/review-panel.less index 206446a7f7..5aff5ed322 100644 --- a/services/web/public/stylesheets/app/editor/review-panel.less +++ b/services/web/public/stylesheets/app/editor/review-panel.less @@ -85,6 +85,7 @@ .rp-size-mini & { display: block; width: @review-off-width; + z-index: 6; } position: absolute; @@ -157,7 +158,6 @@ display: none; .rp-size-mini & { display: block; - z-index: 12; } position: absolute; left: 2px; @@ -193,21 +193,22 @@ display: none; left: @review-off-width + @rp-entry-arrow-width; box-shadow: 0 0 10px 5px rgba(0, 0, 0, .2); - z-index: 11; + z-index: 1; &::before { - .triangle(left, @rp-entry-arrow-width, @rp-entry-arrow-width * 1.5, inherit); - top: (@review-off-width / 2) - @rp-entry-arrow-width; - left: -(@rp-entry-ribbon-width + @rp-entry-arrow-width); - content: ''; - } - &::after { content: ''; position: absolute; top: -(@review-off-width + @rp-entry-arrow-width); right: -(@review-off-width + @rp-entry-arrow-width); bottom: -(@review-off-width + @rp-entry-arrow-width); left: -(@review-off-width + @rp-entry-arrow-width); + z-index: -1; + } + &::after { + .triangle(left, @rp-entry-arrow-width, @rp-entry-arrow-width * 1.5, inherit); + top: (@review-off-width / 2) - @rp-entry-arrow-width; + left: -(@rp-entry-ribbon-width + @rp-entry-arrow-width); + content: ''; } } .rp-state-current-file-expanded & {