open-vault/website/source/assets/stylesheets/_docs.scss

76 lines
1.3 KiB
SCSS
Raw Normal View History

2017-03-26 20:04:14 +00:00
#docs-sidebar {
2017-03-06 19:53:00 +00:00
margin-bottom: 30px;
margin-top: 50px;
ul.nav.docs-sidenav {
display: block;
padding-bottom: 15px;
li {
a {
color: $sidebar-link-color;
font-size: $sidebar-font-size;
2017-03-06 19:53:00 +00:00
padding: 10px 0 10px 15px;
&:before {
color: $sidebar-link-color-active;
2017-03-06 19:53:00 +00:00
content: '\203A';
font-size: $font-size;
2017-03-06 19:53:00 +00:00
left: 0;
line-height: 100%;
opacity: 0.4;
position: absolute;
height: 100%;
width: 8px
}
2015-03-13 17:34:29 +00:00
2017-03-06 19:53:00 +00:00
&:focus,
&:hover {
background-color: transparent;
color: $sidebar-link-color-hover;
2015-03-13 17:34:29 +00:00
2017-03-06 19:53:00 +00:00
&:before {
opacity: 1;
}
}
}
2017-03-06 21:10:35 +00:00
// For forcing sub-navs to appear - in the long term, this should not
// be a thing anymore...
> ul.nav-visible {
display: block;
}
2017-03-06 19:53:00 +00:00
}
2015-03-15 01:16:58 +00:00
2017-03-06 19:53:00 +00:00
li.active {
> a {
color: $sidebar-link-color-active;
2015-03-15 01:16:58 +00:00
2017-03-06 19:53:00 +00:00
&:before {
opacity: 1;
}
}
2015-03-13 17:34:29 +00:00
2017-03-06 19:53:00 +00:00
// Open nested navigations
2017-03-06 21:10:35 +00:00
> ul.nav {
2017-03-06 19:53:00 +00:00
display: block;
}
}
2015-03-15 01:16:58 +00:00
2017-03-06 19:53:00 +00:00
// subnav
ul.nav {
display: none;
margin: 10px;
2015-03-15 01:16:58 +00:00
2017-03-06 19:53:00 +00:00
li {
margin-left: 10px;
2015-03-13 17:34:29 +00:00
2017-03-06 19:53:00 +00:00
a {
padding: 6px 15px;
2015-03-13 17:34:29 +00:00
}
2017-03-06 19:53:00 +00:00
}
}
}
2015-03-13 17:34:29 +00:00
}