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