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