From 7cbe1017d83e67a5f6ea022dd7259ac83c5172de Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sat, 29 Sep 2018 00:52:43 +0200 Subject: [PATCH] sidebar looks ok now --- themes/first/layouts/_default/baseof.html | 2 +- themes/first/layouts/_default/list.html | 2 ++ themes/first/src/css/color.less | 2 ++ themes/first/src/css/font.less | 2 ++ themes/first/src/css/main.less | 16 +++++++++++++++- 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/themes/first/layouts/_default/baseof.html b/themes/first/layouts/_default/baseof.html index 1e893d7..714ff66 100644 --- a/themes/first/layouts/_default/baseof.html +++ b/themes/first/layouts/_default/baseof.html @@ -3,7 +3,7 @@ {{ .Title }} - + diff --git a/themes/first/layouts/_default/list.html b/themes/first/layouts/_default/list.html index a897ead..9e1f6b8 100644 --- a/themes/first/layouts/_default/list.html +++ b/themes/first/layouts/_default/list.html @@ -1,10 +1,12 @@ {{ define "main" }}
+ {{ .Content }} +
{{ end }} diff --git a/themes/first/src/css/color.less b/themes/first/src/css/color.less index 1133a93..e79afca 100644 --- a/themes/first/src/css/color.less +++ b/themes/first/src/css/color.less @@ -15,3 +15,5 @@ @color-nav-background: rgb(0, 0, 5); @color-nav-text: rgb(255, 255, 255); @color-nav-item-border: rgb(59, 206, 59); + +@color-sidebar-font: rgb(0, 0, 0); \ No newline at end of file diff --git a/themes/first/src/css/font.less b/themes/first/src/css/font.less index 443c8d6..c91a571 100644 --- a/themes/first/src/css/font.less +++ b/themes/first/src/css/font.less @@ -3,4 +3,6 @@ @font-header: ~"'Zilla Slab', serif"; @font-height: 1.7em; +@font-sidebar: ~"'Abel', sans-serif"; + @font-nav: ~"'Lato', sans-serif"; diff --git a/themes/first/src/css/main.less b/themes/first/src/css/main.less index 3a6b58a..97f2961 100644 --- a/themes/first/src/css/main.less +++ b/themes/first/src/css/main.less @@ -31,7 +31,6 @@ body { grid-area: headerright; background-color: @color-nav-background; } - nav#main { grid-area: header; background-color: @color-nav-background; @@ -68,6 +67,21 @@ body { body nav#TableOfContents { grid-area: sidebar; + + ul { + list-style-type: none; + margin-left: .0em; + padding-left: .6em; + } + + font-family: @font-sidebar; + + color: @color-sidebar-font; + + a:link,a:visited,a:hover,a:active { + text-decoration: none; + color: @color-sidebar-font; + } } .block-grid(){