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