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