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

73 lines
1.2 KiB
SCSS
Raw Normal View History

2017-03-28 03:37:59 +00:00
#docs-sidebar {
2015-11-10 21:58:56 +00:00
margin-bottom: 30px;
margin-top: 50px;
2017-03-15 01:56:38 +00:00
ul.nav.docs-sidenav {
display: block;
2015-11-10 21:58:56 +00:00
padding-bottom: 15px;
li {
2017-03-15 01:56:38 +00:00
a {
color: $sidebar-link-color;
padding: 10px 0 10px 15px;
&:before {
color: $sidebar-link-color-active;
2019-10-03 20:07:53 +00:00
content: "\203A";
2017-03-15 01:56:38 +00:00
left: 0;
opacity: 0.4;
position: absolute;
2015-11-10 21:58:56 +00:00
2017-03-15 01:56:38 +00:00
height: 100%;
2019-10-03 20:07:53 +00:00
width: 8px;
2017-03-15 01:56:38 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-15 01:56:38 +00:00
&:focus,
&:hover {
background-color: transparent;
color: $sidebar-link-color-hover;
2016-10-09 06:33:16 +00:00
2017-03-15 01:56:38 +00:00
&:before {
2016-10-09 06:33:16 +00:00
opacity: 1;
2015-11-10 21:58:56 +00:00
}
}
2017-03-15 01:56:38 +00:00
}
2015-11-10 21:58:56 +00:00
2017-03-15 01:56:38 +00:00
// For forcing sub-navs to appear - in the long term, this should not
// be a thing anymore...
> ul.nav-visible {
display: block;
2015-11-10 21:58:56 +00:00
}
2017-03-15 01:56:38 +00:00
}
2016-10-09 06:33:16 +00:00
2017-03-15 01:56:38 +00:00
li.active {
> a {
color: $sidebar-link-color-active;
2016-10-09 06:33:16 +00:00
2017-03-15 01:56:38 +00:00
&:before {
opacity: 1;
2016-10-09 06:33:16 +00:00
}
2017-03-15 01:56:38 +00:00
}
2016-10-09 06:33:16 +00:00
2017-03-15 01:56:38 +00:00
// Open nested navigations
> ul.nav {
display: block;
2016-10-09 06:33:16 +00:00
}
2015-09-12 00:01:02 +00:00
}
2017-03-15 01:56:38 +00:00
// subnav
ul.nav {
2015-11-10 21:58:56 +00:00
display: none;
2017-03-15 01:56:38 +00:00
margin: 10px;
2015-11-10 21:58:56 +00:00
2017-03-15 01:56:38 +00:00
li {
2015-11-10 21:58:56 +00:00
margin-left: 10px;
2017-03-15 01:56:38 +00:00
a {
2015-11-10 21:58:56 +00:00
padding: 6px 15px;
}
}
}
}
}