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