From 48b62a0eee8b670d92a2eaeefe0cbcd82a072013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= <danxuliu@gmail.com> Date: Tue, 19 Dec 2017 06:58:58 +0100 Subject: [PATCH] Fix opening the menu in a Share page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ".popovermenu" elements are visible or not depending on whether they also have the "open" CSS class or not. "#header .menu" elements were always hidden, so when both rules applied to the same element, like in the menu of a Share page, the element was always hidden due to "#header .menu" being more specific than ".popovermenu" and thus overriding its rules. Now, "#header .menu" elements are hidden only if they are not a ".popovermenu" too. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> --- core/css/header.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/css/header.scss b/core/css/header.scss index 21305de0d02..b5bb8ca9c5b 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -78,11 +78,14 @@ background-color: $color-main-background; filter: drop-shadow(0 1px 3px $color-box-shadow); border-radius: 0 0 3px 3px; - display: none; box-sizing: border-box; z-index: 2000; position: absolute; + &:not(.popovermenu) { + display: none; + } + /* Dropdown arrow */ &:after { border: 10px solid transparent; -- GitLab