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