terraform/website/source/stylesheets/_docs.less

219 lines
3.0 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{
2014-07-23 11:03:33 +02:00
color: white;
2014-07-16 23:51:48 +02:00
.transition( color 0.5s ease );
}
> a:hover,
> a:focus {
background-color: transparent !important;
2014-07-23 11:03:33 +02:00
color: white;
2014-07-16 23:51:48 +02:00
.transition( color 0.5s ease );
}
}
> li {
padding: 10px 0;
margin: 0 30px;
>.nav{
li{
a{
2014-07-23 11:03:33 +02:00
color: white;
2014-07-16 23:51:48 +02:00
}
}
}
&.active {
2014-07-23 11:03:33 +02:00
>a{
color: @purple;
font-weight: 500;
}
2014-07-16 23:51:48 +02:00
&:before{
content: '';
position: absolute;
2014-07-23 11:03:33 +02:00
width: 6px;
height: 8px;
background-color: @purple;
font-weight: 500;
.skewY(24deg);
2014-07-16 23:51:48 +02:00
top: 26px;
left: -10px;
}
> a{
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
/*> 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;
2014-07-23 11:03:33 +02:00
li.active a {
color: @purple;
font-weight: 500;
}
2014-07-16 23:51:48 +02:00
}
}
> a {
text-transform: uppercase;
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
}
.nav {
display: none;
margin-bottom: 15px;
> li{
margin-left: 20px;
> a{
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
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;
}
}
}