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