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