github.com/lamielle/terraform@v0.3.2-0.20141121070651-81f008ba53d5/website/source/assets/stylesheets/_docs.scss (about)

     1  //
     2  // Docs
     3  // --------------------------------------------------
     4  
     5  body.page-sub{
     6  	background-color: $light-black;
     7  }
     8  
     9  body.layout-consul,
    10  body.layout-dnsimple,
    11  body.layout-cloudflare,
    12  body.layout-google,
    13  body.layout-heroku,
    14  body.layout-mailgun,
    15  body.layout-digitalocean,
    16  body.layout-aws,
    17  body.layout-docs,
    18  body.layout-inner,
    19  body.layout-downloads,
    20  body.layout-intro{
    21  	background: $light-black image-url('sidebar-wire.png') left 62px no-repeat;
    22  
    23  	>.container{
    24  		.col-md-8[role=main]{
    25  			min-height: 800px;
    26  			background-color: white;
    27  
    28  			>div{
    29  				position: relative;
    30  				z-index: 10;
    31  			}
    32  		}
    33  	}
    34  }
    35  
    36  .docs-sidebar{
    37    position: relative;
    38    z-index: 20;
    39    margin-bottom: 30px;
    40  	margin-top: 50px;
    41  	margin-right: 4%;
    42  
    43  	a{
    44  			color: $purple;
    45  	}
    46  
    47  	.docs-sidenav{
    48  		padding-top: 15px;
    49  		padding-bottom: 15px;
    50  
    51  		:last-child{
    52  			border-bottom: none;
    53  		}
    54  
    55  		//all li > a
    56  		li{
    57  			position: relative;
    58  
    59  			> a{
    60  				color: white;
    61  				@include transition( color 0.5s ease );
    62  			}
    63  
    64  			> a:hover,
    65  			> a:focus {
    66  				background-color: transparent !important;
    67  				color: white;
    68  				@include transition( color 0.5s ease );
    69  			}
    70  		}
    71  
    72  
    73  		> li {
    74  			padding: 10px 0;
    75  			margin: 0 30px;
    76  
    77  			>.nav{
    78  				li{
    79  					a{
    80  						color: white;
    81  					}
    82  				}
    83  			}
    84  
    85  			&.active {
    86  				>a{
    87            color: lighten($purple, 4%);
    88  					font-weight: 500;
    89  				}
    90  
    91  				&:before{
    92  					content: '';
    93  					position: absolute;
    94            width: 6px;
    95            height: 8px;
    96            background-color: $purple;
    97            font-weight: 500;
    98            @include skewY(24deg);
    99  					top: 26px;
   100  					left: -10px;
   101  				}
   102  				> a{
   103            -webkit-font-smoothing: antialiased;
   104  				}
   105  
   106  				/*> a:hover,
   107  				> a:focus {
   108  					font-weight: $font-weight-lato-xb;
   109  				}*/
   110  
   111  				.nav {
   112  					display: block;
   113  
   114            li.active a {
   115              color: lighten($purple, 4%);
   116  						font-weight: 500;
   117            }
   118  				}
   119  			}
   120  
   121  			> a {
   122  				text-transform: uppercase;
   123          -webkit-font-smoothing: antialiased;
   124  			}
   125  		}
   126  
   127  		.nav {
   128  			display: none;
   129  			margin-bottom: 15px;
   130  
   131  			> li{
   132  				margin-left: 20px;
   133  
   134  				> a{
   135            -webkit-font-smoothing: antialiased;
   136  					padding: 6px 15px;
   137  				}
   138  			}
   139  		}
   140  
   141          .nav-visible {
   142              display: block;
   143          }
   144  	}
   145  }
   146  
   147  
   148  .bs-docs-section{
   149  	padding-top: 10px;
   150  	padding-left: 3%;
   151  	padding-bottom: 80px;
   152  
   153  	.lead{
   154  		margin-bottom: 48px
   155  	}
   156  
   157  	.doc-sectional{
   158  		margin-bottom: 48px;
   159  	}
   160  
   161  	p, li, .alert {
   162  		font-size: 20px;
   163  		font-family: $font-family-open-sans;
   164  		font-weight: $font-weight-open;
   165      line-height: 1.5em;
   166  		margin: 0 0 18px;
   167      -webkit-font-smoothing: antialiased;
   168  	}
   169  
   170      pre{
   171          margin: 0 0 18px;
   172      }
   173  
   174  	a{
   175  		color: $purple;
   176  		&:hover{
   177  			text-decoration: underline;
   178  		}
   179  	}
   180  
   181      img{
   182          max-width: 650px;
   183          margin-top: 25px;
   184          margin-bottom: 25px;
   185      }
   186  
   187  	h1{
   188  		color: $purple;
   189  		text-transform: uppercase;
   190  		padding-bottom: 24px;
   191      margin-top: 40px;
   192  		margin-bottom: 24px;
   193      border-bottom: 1px solid #eeeeee;
   194      @include lato-light();
   195  	}
   196  
   197  	h2, h3, h4{
   198  		margin-bottom: 16px;
   199  	}
   200  
   201      #graph {
   202          margin-top: 30px;
   203      }
   204  }
   205  
   206  
   207  @media (max-width: 992px) {
   208  	body.layout-docs,
   209  	body.layout-inner,
   210  	body.layout-intro{
   211  		>.container{
   212  			.col-md-8[role=main]{
   213  				min-height: 0;
   214  				&::before {
   215  					border-left: 9999px solid white;
   216  				}
   217  			}
   218  		}
   219  	}
   220  
   221    body.page-sub{
   222      >.container{
   223        background-color: white;
   224      }
   225    }
   226  
   227    .docs-sidebar{
   228      margin-top: 0px;
   229      margin-bottom: 0px;
   230  
   231      .docs-sidenav{
   232        padding-bottom: 0;
   233  
   234        //all li > a
   235        li{
   236          > a{
   237            color: black;
   238            @include transition( color 0.5s ease );
   239          }
   240  
   241          > a:hover,
   242          > a:focus {
   243            color: $purple;
   244            @include transition( color 0.5s ease );
   245          }
   246        }
   247  
   248  
   249        > li {
   250          >.nav{
   251            li{
   252              a{
   253                color: black;
   254  
   255                &:hover{
   256                  color: $purple;
   257                }
   258              }
   259            }
   260          }
   261        }
   262      }
   263    }
   264  
   265    .bs-docs-section{
   266      h1{
   267        padding-top: 24px;
   268        border-top: 1px solid #eeeeee;
   269      }
   270    }
   271  }
   272  
   273  @media (max-width: 480px) {
   274  	.bs-docs-section{
   275          img{
   276              max-width: 450px;
   277          }
   278  
   279  		h1{
   280  			font-size: 32px;
   281  		}
   282  	}
   283  }
   284