terraform/website/source/assets/stylesheets/_docs.scss

92 lines
1.5 KiB
SCSS
Raw Normal View History

2017-04-05 17:28:34 +02:00
#docs-sidebar {
2014-07-23 09:55:41 +02:00
margin-bottom: 30px;
2017-04-05 17:28:34 +02:00
margin-top: 50px;
overflow: hidden;
h1,
h2,
h3,
h4,
h5,
h6 {
2017-02-16 06:25:25 +01:00
margin-top: 30px;
2014-07-24 01:48:44 +02:00
}
2017-04-05 17:28:34 +02:00
ul.nav.docs-sidenav {
display: block;
padding-bottom: 15px;
li {
a {
color: $sidebar-link-color;
font-size: $sidebar-font-size;
padding: 10px 0 10px 15px;
&:before {
color: $sidebar-link-color-active;
content: '\203A';
font-size: $font-size;
left: 0;
line-height: 100%;
opacity: 0.4;
position: absolute;
height: 100%;
width: 8px
}
2014-07-24 01:48:44 +02:00
2017-04-05 17:28:34 +02:00
&:focus,
&:hover {
background-color: transparent;
color: $sidebar-link-color-hover;
2014-07-24 01:48:44 +02:00
2017-04-05 17:28:34 +02:00
&:before {
opacity: 1;
}
2014-07-24 01:48:44 +02:00
}
2017-04-05 17:28:34 +02:00
&.back {
&:before {
content: '\2039';
}
2014-07-24 01:48:44 +02:00
}
}
2017-04-05 17:28:34 +02:00
// For forcing sub-navs to appear - in the long term, this should not
// be a thing anymore...
> ul.nav-visible {
display: block;
}
}
2014-07-24 01:48:44 +02:00
2017-04-05 17:28:34 +02:00
li.active {
> a {
color: $sidebar-link-color-active;
2014-07-24 01:48:44 +02:00
2017-04-05 17:28:34 +02:00
&:before {
opacity: 1;
2014-07-24 01:48:44 +02:00
}
}
2017-04-05 17:28:34 +02:00
// Open nested navigations
> ul.nav {
display: block;
}
2014-07-24 01:48:44 +02:00
}
2017-02-16 06:25:25 +01:00
2017-04-05 17:28:34 +02:00
// subnav
ul.nav {
display: none;
margin: 10px;
2017-02-16 06:25:25 +01:00
2017-04-05 17:28:34 +02:00
li {
margin-left: 10px;
2017-02-16 06:25:25 +01:00
2017-04-05 17:28:34 +02:00
a {
padding: 6px 15px;
2014-07-16 23:51:48 +02:00
}
2017-04-05 17:28:34 +02:00
}
}
}
2014-07-16 23:51:48 +02:00
}