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

93 lines
1.6 KiB
SCSS
Raw Normal View History

#docs-sidebar {
2015-11-09 21:48:29 +00:00
margin-bottom: 30px;
margin-top: 50px;
ul.nav.docs-sidenav {
display: block;
2015-11-09 21:48:29 +00:00
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;
2015-11-09 21:48:29 +00:00
position: absolute;
height: 100%;
width: 8px
2015-11-09 21:48:29 +00:00
}
&:focus,
&:hover {
background-color: transparent;
color: $sidebar-link-color-hover;
2015-11-09 21:48:29 +00:00
&:before {
opacity: 1;
2015-11-09 21:48:29 +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-09 21:48:29 +00:00
}
li.active {
> a {
color: $sidebar-link-color-active;
2015-11-09 21:48:29 +00:00
&:before {
opacity: 1;
2015-11-09 21:48:29 +00:00
}
}
// Open nested navigations
> ul.nav {
display: block;
}
2015-11-09 21:48:29 +00:00
}
// subnav
ul.nav {
display: none;
margin: 10px;
2015-11-09 21:48:29 +00:00
li {
margin-left: 10px;
a {
padding: 6px 15px;
2015-11-09 21:48:29 +00:00
}
}
}
}
2014-04-08 23:51:59 +00:00
}
#docs-tiles {
display: grid;
grid-template-columns: auto auto auto;
grid-column-gap: 2em;
.docs-tiles-tile {
border: 1px solid lightgray;
border-radius: 3px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, .05);
padding: 0 40px;
h3 {
margin-top: 25px;
}
}
}