terraform/website/source/stylesheets/_docs.less

216 lines
3.1 KiB
Plaintext
Raw Normal View History

2014-07-16 23:51:48 +02:00
//
// Docs
// --------------------------------------------------
2014-07-23 10:12:09 +02:00
body.page-sub{
background-color: @light-black;
}
2014-07-16 23:51:48 +02:00
body.layout-docs,
body.layout-intro{
2014-07-23 09:55:41 +02:00
background: @light-black url('../images/sidebar-wire.png') left 62px no-repeat;
2014-07-16 23:51:48 +02:00
>.container{
.col-md-8[role=main]{
min-height: 800px;
background-color: white;
>div{
position: relative;
z-index: 10;
}
}
}
}
.docs-sidebar{
2014-07-23 09:55:41 +02:00
position: relative;
z-index: 20;
margin-bottom: 30px;
2014-07-16 23:51:48 +02:00
margin-top: 50px;
margin-right: 4%;
a{
color: @purple;
}
.docs-sidenav{
padding-top: 15px;
padding-bottom: 15px;
:last-child{
border-bottom: none;
}
//all li > a
li{
position: relative;
> a{
color: @purple;
.transition( color 0.5s ease );
}
> a:hover,
> a:focus {
background-color: transparent !important;
color: @black;
.transition( color 0.5s ease );
}
}
> li {
padding: 10px 0;
margin: 0 30px;
2014-07-23 09:55:41 +02:00
//border-bottom: 2px solid #fff;
2014-07-16 23:51:48 +02:00
>.nav{
li{
a{
color: @black;
}
}
}
&.active {
&:before{
content: '';
position: absolute;
width: 8px;
height: 8px;
background-color: @purple;
border-radius: 4px;
top: 26px;
left: -10px;
}
> a{
-webkit-font-smoothing: antialiased;
}
/*> a:hover,
> a:focus {
2014-07-22 23:24:44 +02:00
font-weight: @font-weight-lato-xb;
2014-07-16 23:51:48 +02:00
}*/
.nav {
display: block;
li.active a {
2014-07-22 23:24:44 +02:00
font-weight: @font-weight-lato-xb;
2014-07-16 23:51:48 +02:00
}
}
}
> a {
text-transform: uppercase;
2014-07-22 23:24:44 +02:00
font-family: @font-family-lato;
font-weight: @font-weight-lato-sb;
2014-07-16 23:51:48 +02:00
-webkit-font-smoothing: antialiased;
}
}
.nav {
display: none;
margin-bottom: 15px;
> li{
margin-left: 20px;
> a{
-webkit-font-smoothing: antialiased;
font-family: @font-family-open-sans;
padding: 6px 15px;
}
}
}
}
}
.bs-docs-section{
padding-top: 10px;
padding-left: 3%;
padding-bottom: 80px;
.lead{
margin-bottom: 48px
}
.doc-sectional{
margin-bottom: 48px;
}
p, li, .alert {
font-size: 20px;
font-family: @font-family-open-sans;
font-weight: @font-weight-open;
2014-07-23 09:55:41 +02:00
line-height: 1.5em;
2014-07-16 23:51:48 +02:00
margin: 0 0 18px;
2014-07-23 09:55:41 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
pre{
margin: 0 0 18px;
}
a{
color: @purple;
&:hover{
text-decoration: underline;
}
}
img{
max-width: 650px;
margin-top: 25px;
margin-bottom: 25px;
}
h1{
color: @purple;
text-transform: uppercase;
padding-bottom: 24px;
2014-07-23 09:55:41 +02:00
margin-top: 40px;
2014-07-16 23:51:48 +02:00
margin-bottom: 24px;
2014-07-23 09:55:41 +02:00
border-bottom: 1px solid #eeeeee;
.lato-light();
2014-07-16 23:51:48 +02:00
}
h2, h3, h4{
margin-bottom: 16px;
}
#graph {
margin-top: 30px;
}
}
@media (max-width: 992px) {
body.layout-docs,
body.layout-intro{
>.container{
.col-md-8[role=main]{
min-height: 0;
&::before {
border-left: 9999px solid white;
}
}
}
}
}
@media (max-width: 480px) {
.bs-docs-section{
img{
max-width: 450px;
}
h1{
font-size: 32px;
}
}
}