From 769ab9e22476f3ddfbffae62f9ece3a8f2213d38 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Sat, 17 Jan 2015 00:11:17 -0700 Subject: [PATCH] [Docs] Adjust sidebar menu width and capitalization Make the sidebar menu slightly wider so the arrow does not get pushed to the next line. Also remove `text-transform: capitalize;` so we can have, e.g., "Table of Contents" rather than "Table Of Contents". --- docs/config.toml | 31 +++++++++++++++++++------------ docs/static/css/style.css | 5 ++--- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/docs/config.toml b/docs/config.toml index b6af1635e..295636ac2 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -1,4 +1,4 @@ -baseurl = "http://gohugo.io" +baseurl = "http://gohugo.io/" MetaDataFormat = "yaml" [indexes] @@ -21,38 +21,43 @@ MetaDataFormat = "yaml" url = "http://discuss.gohugo.io" weight = -150 [[menu.main]] - name = "about hugo" + name = "About Hugo" + identifier = "about" pre = "" weight = -110 - identifier = "about" [[menu.main]] - name = "getting started" + name = "Getting Started" + identifier = "getting started" pre = "" weight = -100 [[menu.main]] - name = "content" + name = "Content" + identifier = "content" pre = "" weight = -90 [[menu.main]] - name = "themes" + name = "Themes" + identifier = "themes" pre = "" weight = -85 [[menu.main]] - name = "templates" + name = "Templates" identifier = "layout" pre = "" weight = -80 [[menu.main]] - name = "taxonomies" + name = "Taxonomies" identifier = "taxonomy" pre = "" weight = -70 [[menu.main]] - name = "extras" + name = "Extras" + identifier = "extras" pre = "" weight = -60 [[menu.main]] - name = "community" + name = "Community" + identifier = "community" pre = "" weight = -50 [[menu.main]] @@ -61,10 +66,12 @@ MetaDataFormat = "yaml" url = "http://discuss.gohugo.io" weight = 150 [[menu.main]] - name = "tutorials" + name = "Tutorials" + identifier = "tutorials" pre = "" weight = -40 [[menu.main]] - name = "troubleshooting" + name = "Troubleshooting" + identifier = "troubleshooting" pre = "" weight = -30 diff --git a/docs/static/css/style.css b/docs/static/css/style.css index e7f23e25c..ba8feb31c 100755 --- a/docs/static/css/style.css +++ b/docs/static/css/style.css @@ -164,7 +164,7 @@ input:focus, textarea:focus { outline: none; } /*sidebar navigation*/ #sidebar { - width: 200px; + width: 214px; height: 100%; position: fixed; background: #ffffff; @@ -227,7 +227,6 @@ ul.sidebar-menu li ul.sub li a:hover, ul.sidebar-menu li ul.sub li.active a { ul.sidebar-menu li{ line-height: 20px !important; - text-transform: capitalize; } ul.sidebar-menu li.sub-menu{ @@ -254,7 +253,7 @@ ul.sidebar-menu li a{ transition: all 0.3s ease; border-right: 1px solid #D7D7D7; border-bottom: 1px solid #D7D7D7; - overflow:hidden; + white-space: nowrap; } ul.sidebar-menu li.active a, ul.sidebar-menu li a:hover, ul.sidebar-menu li a:focus {