From 0942aed8db353b29d39ed4f895111262af2e755a Mon Sep 17 00:00:00 2001 From: Christian Paier Date: Sun, 30 Jan 2022 16:32:48 +0100 Subject: Show the parent folders in the breadcrumb menu when on a child entry. Previously, clicking on an menu item in the breadcrumb menu removed the parent entries of the path, i.e.: Clicking on the "to" entry in "/path/to/some/folder" changed the breadcrumb menu to show only the "/path/to" entries. With this change the breadcrumb menu changes this behaviour as the full path is still visible (and usable) but with the "to" entry beeing highlighted. Signed-off-by: Christian Paier --- core/css/styles.scss | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'core/css') diff --git a/core/css/styles.scss b/core/css/styles.scss index 36da94a2e2b..3d21967a27e 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -1202,6 +1202,13 @@ div.crumb { order: 3; } } + &.active { + font-weight: bold; + // Allow multiple span next to the main 'a' + a ~ span { + padding-left: 0; + } + } > a, > span { position: relative; @@ -1226,14 +1233,6 @@ div.crumb { } &:not(:first-child) a { } - &:last-child { - font-weight: bold; - margin-right: 10px; - // Allow multiple span next to the main 'a' - a ~ span { - padding-left: 0; - } - } &:hover, &:focus, a:focus, &:active { opacity: 1; -- cgit v1.2.3