From 9019741a7c6c7829ddbf08d24a61a8432418e971 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 17 Aug 2023 13:32:23 +0000 Subject: [PATCH] resurrect colorblock, fixes #2993 Closes #2993 Merge request studip/studip!2043 --- .../assets/stylesheets/scss/layouts.scss | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/resources/assets/stylesheets/scss/layouts.scss b/resources/assets/stylesheets/scss/layouts.scss index ab15cec7ed7..59046b47ee6 100644 --- a/resources/assets/stylesheets/scss/layouts.scss +++ b/resources/assets/stylesheets/scss/layouts.scss @@ -72,24 +72,29 @@ body { #current-page-structure { background-color: #fff; border-radius: 0 0 2px 2px; + position: relative; width: 100%; &.oversized { overflow: visible; } -} - -#navigation-level-2 { - position: relative; .colorblock { position: absolute; top: 0; - bottom: 0; left: 0; + bottom: 0; width: $page-margin; } + .contextless & { + .colorblock { + width: 0; + } + } +} + +#navigation-level-2 { #context-title { font-size: 1.1em; height: 30px; @@ -118,19 +123,8 @@ body { } .contextless & { - .colorblock { - width: 0; - } - #context-title { - color: rgba(0, 0, 0, 0); - height: 0; - max-height: 35px; - // text-indent: -100%; - // - > .context_icon { - opacity: 0; - } + display: none; } .tabs_wrapper { -- GitLab