From 2a8f211d92abdee5bac71e76c0e5e17ec6c921e2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 23 Mar 2021 12:16:43 +0000 Subject: [PATCH] Bug 27846: (follow-up) Use SCSS-style nesting for style additions This patch takes the changes introduced to the SCSS file in the previous patches and converts it to use SCSS-style nesting to generate the same output. There should be no visible changes as a result. Signed-off-by: Martin Renvoize --- .../prog/css/src/staff-global.scss | 69 ++++++++++--------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 92a97fdf5f..478b513ca1 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1023,39 +1023,6 @@ details[open] { } } -nav.breadcrumb { - background-color: #E6F0F2; - clear: both; - margin: 0; - padding: .8em .5em .8em 10px; - position: relative; -} - -nav.breadcrumb ol { - margin: 0; - padding-left: 0; - list-style: none; -} - -nav.breadcrumb li { - display: inline; -} - -nav.breadcrumb li + li::before { - display: inline-block; - margin: 0 0.25em; - transform: rotate(15deg); - border-right: 0.1em solid currentColor; - height: 0.8em; - content: ''; -} - -nav.breadcrumb [aria-current="page"] { - color: #000; - font-weight: 700; - text-decoration: none; -} - #header { + #breadcrumbs { margin-top: 1em; @@ -3155,6 +3122,42 @@ video { nav { background: #E6F0F2 none; border: 0; + + &.breadcrumb { + background-color: #E6F0F2; + clear: both; + margin: 0; + padding: .8em .5em .8em 10px; + position: relative; + + ol { + margin: 0; + padding-left: 0; + list-style: none; + } + + li { + display: inline; + + &+li::before { + display: inline-block; + margin: 0 0.25em; + transform: rotate(15deg); + border-right: 0.1em solid currentColor; + height: 0.8em; + content: ''; + } + + } + + [aria-current="page"] { + color: #000; + font-weight: 700; + text-decoration: none; + } + } + + } .navbar-collapse { -- 2.20.1