mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
[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".
This commit is contained in:
parent
a4da52622c
commit
769ab9e224
2 changed files with 21 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
baseurl = "http://gohugo.io"
|
baseurl = "http://gohugo.io/"
|
||||||
MetaDataFormat = "yaml"
|
MetaDataFormat = "yaml"
|
||||||
|
|
||||||
[indexes]
|
[indexes]
|
||||||
|
@ -21,38 +21,43 @@ MetaDataFormat = "yaml"
|
||||||
url = "http://discuss.gohugo.io"
|
url = "http://discuss.gohugo.io"
|
||||||
weight = -150
|
weight = -150
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "about hugo"
|
name = "About Hugo"
|
||||||
|
identifier = "about"
|
||||||
pre = "<i class='fa fa-heart'></i>"
|
pre = "<i class='fa fa-heart'></i>"
|
||||||
weight = -110
|
weight = -110
|
||||||
identifier = "about"
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "getting started"
|
name = "Getting Started"
|
||||||
|
identifier = "getting started"
|
||||||
pre = "<i class='fa fa-road'></i>"
|
pre = "<i class='fa fa-road'></i>"
|
||||||
weight = -100
|
weight = -100
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "content"
|
name = "Content"
|
||||||
|
identifier = "content"
|
||||||
pre = "<i class='fa fa-file-text'></i>"
|
pre = "<i class='fa fa-file-text'></i>"
|
||||||
weight = -90
|
weight = -90
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "themes"
|
name = "Themes"
|
||||||
|
identifier = "themes"
|
||||||
pre = "<i class='fa fa-desktop'></i>"
|
pre = "<i class='fa fa-desktop'></i>"
|
||||||
weight = -85
|
weight = -85
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "templates"
|
name = "Templates"
|
||||||
identifier = "layout"
|
identifier = "layout"
|
||||||
pre = "<i class='fa fa-columns'></i>"
|
pre = "<i class='fa fa-columns'></i>"
|
||||||
weight = -80
|
weight = -80
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "taxonomies"
|
name = "Taxonomies"
|
||||||
identifier = "taxonomy"
|
identifier = "taxonomy"
|
||||||
pre = "<i class='fa fa-tags'></i>"
|
pre = "<i class='fa fa-tags'></i>"
|
||||||
weight = -70
|
weight = -70
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "extras"
|
name = "Extras"
|
||||||
|
identifier = "extras"
|
||||||
pre = "<i class='fa fa-gift'></i>"
|
pre = "<i class='fa fa-gift'></i>"
|
||||||
weight = -60
|
weight = -60
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "community"
|
name = "Community"
|
||||||
|
identifier = "community"
|
||||||
pre = "<i class='fa fa-group'></i>"
|
pre = "<i class='fa fa-group'></i>"
|
||||||
weight = -50
|
weight = -50
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
@ -61,10 +66,12 @@ MetaDataFormat = "yaml"
|
||||||
url = "http://discuss.gohugo.io"
|
url = "http://discuss.gohugo.io"
|
||||||
weight = 150
|
weight = 150
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "tutorials"
|
name = "Tutorials"
|
||||||
|
identifier = "tutorials"
|
||||||
pre = "<i class='fa fa-book'></i>"
|
pre = "<i class='fa fa-book'></i>"
|
||||||
weight = -40
|
weight = -40
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "troubleshooting"
|
name = "Troubleshooting"
|
||||||
|
identifier = "troubleshooting"
|
||||||
pre = "<i class='fa fa-wrench'></i>"
|
pre = "<i class='fa fa-wrench'></i>"
|
||||||
weight = -30
|
weight = -30
|
||||||
|
|
5
docs/static/css/style.css
vendored
5
docs/static/css/style.css
vendored
|
@ -164,7 +164,7 @@ input:focus, textarea:focus { outline: none; }
|
||||||
/*sidebar navigation*/
|
/*sidebar navigation*/
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
width: 200px;
|
width: 214px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: #ffffff;
|
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{
|
ul.sidebar-menu li{
|
||||||
line-height: 20px !important;
|
line-height: 20px !important;
|
||||||
text-transform: capitalize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.sidebar-menu li.sub-menu{
|
ul.sidebar-menu li.sub-menu{
|
||||||
|
@ -254,7 +253,7 @@ ul.sidebar-menu li a{
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
border-right: 1px solid #D7D7D7;
|
border-right: 1px solid #D7D7D7;
|
||||||
border-bottom: 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 {
|
ul.sidebar-menu li.active a, ul.sidebar-menu li a:hover, ul.sidebar-menu li a:focus {
|
||||||
|
|
Loading…
Reference in a new issue