From 2e1bbee2558a21429db670f47a8ec13007429dc2 Mon Sep 17 00:00:00 2001 From: Frans Bouma Date: Mon, 28 Aug 2017 10:45:57 +0200 Subject: [PATCH] Root relative elements don't have their own css class anymore This was confusing and unnecessary and created a useless space in root-referenced pages with 2+ levels of headings. So currentrelativeroot has been removed, all elements which had that css class now have currentrelative as css class. --- Themes/Default/Destination/css/theme_colors.css | 2 +- Themes/LLBLGenPro/Destination/css/theme_colors.css | 2 +- Themes/Light/Destination/css/theme_colors.css | 2 +- src/DocNet/SimpleNavigationElement.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Themes/Default/Destination/css/theme_colors.css b/Themes/Default/Destination/css/theme_colors.css index b462a69..dd4bcd5 100644 --- a/Themes/Default/Destination/css/theme_colors.css +++ b/Themes/Default/Destination/css/theme_colors.css @@ -181,7 +181,7 @@ mark { color: #2980B9; } -.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot { +.menu-vertical ul.currentrelative { background-color: #e3e3e3; } diff --git a/Themes/LLBLGenPro/Destination/css/theme_colors.css b/Themes/LLBLGenPro/Destination/css/theme_colors.css index d5ef690..5e83ddf 100644 --- a/Themes/LLBLGenPro/Destination/css/theme_colors.css +++ b/Themes/LLBLGenPro/Destination/css/theme_colors.css @@ -186,7 +186,7 @@ mark { color: #2980B9; } -.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot { +.menu-vertical ul.currentrelative { background-color: #f5f5f5; } diff --git a/Themes/Light/Destination/css/theme_colors.css b/Themes/Light/Destination/css/theme_colors.css index adbe734..783bcd5 100644 --- a/Themes/Light/Destination/css/theme_colors.css +++ b/Themes/Light/Destination/css/theme_colors.css @@ -181,7 +181,7 @@ mark { color: #2980B9; } -.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot { +.menu-vertical ul.currentrelative { background-color: #fcfcfc; } diff --git a/src/DocNet/SimpleNavigationElement.cs b/src/DocNet/SimpleNavigationElement.cs index d80f2ed..01af7d0 100644 --- a/src/DocNet/SimpleNavigationElement.cs +++ b/src/DocNet/SimpleNavigationElement.cs @@ -197,7 +197,7 @@ namespace Docnet if (isCurrent && _relativeLinksOnPage.SelectMany(x => x.Children).Any(x => x.Level > 1)) { // generate relative links - fragments.Add(string.Format("