Browse Source

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.
pull/80/head
Frans Bouma 7 years ago
parent
commit
2e1bbee255
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      Themes/Default/Destination/css/theme_colors.css
  2. +1
    -1
      Themes/LLBLGenPro/Destination/css/theme_colors.css
  3. +1
    -1
      Themes/Light/Destination/css/theme_colors.css
  4. +2
    -2
      src/DocNet/SimpleNavigationElement.cs

+ 1
- 1
Themes/Default/Destination/css/theme_colors.css View File

@@ -181,7 +181,7 @@ mark {
color: #2980B9;
}

.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot {
.menu-vertical ul.currentrelative {
background-color: #e3e3e3;
}



+ 1
- 1
Themes/LLBLGenPro/Destination/css/theme_colors.css View File

@@ -186,7 +186,7 @@ mark {
color: #2980B9;
}

.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot {
.menu-vertical ul.currentrelative {
background-color: #f5f5f5;
}



+ 1
- 1
Themes/Light/Destination/css/theme_colors.css View File

@@ -181,7 +181,7 @@ mark {
color: #2980B9;
}

.menu-vertical ul.currentrelative, .menu-vertical ul.currentrelativeroot {
.menu-vertical ul.currentrelative {
background-color: #fcfcfc;
}



+ 2
- 2
src/DocNet/SimpleNavigationElement.cs View File

@@ -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("<ul class=\"{0}\">", this.ParentContainer.IsRoot ? "currentrelativeroot" : "currentrelative"));
fragments.Add("<ul class=\"currentrelative\">");

foreach (var heading in _relativeLinksOnPage)
{
@@ -259,7 +259,7 @@ namespace Docnet
if (!isHeading1)
{
stringBuilder.AppendLine("<li class=\"tocentry\">");
stringBuilder.AppendLine(string.Format("<ul class=\"{0}\">", this.ParentContainer.IsRoot ? "currentrelativeroot" : "currentrelative"));
stringBuilder.AppendLine("<ul class=\"currentrelative\">");
}

stringBuilder.AppendLine(childContentBuilder.ToString());


Loading…
Cancel
Save