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