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