mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
update styling for docs
This commit is contained in:
parent
af92ae559f
commit
244944c798
3 changed files with 34 additions and 3 deletions
|
@ -4,10 +4,10 @@
|
|||
- if locals[:sidebar_layout] == 'docs'
|
||||
form.main-sidebar--search action="/docs/search/" method="get"
|
||||
input type="text" placeholder="Search Documentation" name="q"
|
||||
ul.no-bullet
|
||||
ul.main-sidebar--links
|
||||
- sidebar_data(sidebar_layout).each do |item|
|
||||
li.main-sidebar--heading
|
||||
h4 = item.title
|
||||
li.main-sidebar--link
|
||||
h6 = item.title
|
||||
ul.main-sidebar--list.no-bullet
|
||||
- item.links.each do |item_link|
|
||||
li.main-sidebar--list--item class=link_classes(current_resource.url, item_link)
|
||||
|
|
30
www/source/stylesheets/_sidebar.scss
Normal file
30
www/source/stylesheets/_sidebar.scss
Normal file
|
@ -0,0 +1,30 @@
|
|||
.main-sidebar ul {
|
||||
list-style: none;
|
||||
margin-left: 0.5rem;
|
||||
ul {
|
||||
margin-left: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.main-sidebar--link h6 {
|
||||
font-weight: 500;
|
||||
|
||||
}
|
||||
|
||||
.main-sidebar--list--item {
|
||||
position: relative;
|
||||
padding: 3px 0;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
|
||||
& > a {
|
||||
color: $inspec-grey;
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
color: darken($inspec-grey, 15%);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
@import "settings";
|
||||
@import "buttons";
|
||||
@import "nav";
|
||||
@import "sidebar";
|
||||
@import "footer";
|
||||
@import "layout";
|
||||
@import "typography";
|
||||
|
|
Loading…
Reference in a new issue