terraform/website/source/assets/stylesheets/_docs.scss

327 lines
5.0 KiB
SCSS
Raw Normal View History

2014-07-16 23:51:48 +02:00
//
// Docs
// --------------------------------------------------
2014-07-23 10:12:09 +02:00
body.page-sub{
2014-10-13 18:44:38 +02:00
background-color: $light-black;
2014-07-23 10:12:09 +02:00
}
body.layout-commands-state,
body.layout-archive,
2014-12-08 03:42:27 +01:00
body.layout-atlas,
2015-05-18 15:40:45 +02:00
body.layout-aws,
body.layout-azure,
body.layout-bitbucket,
2015-08-29 18:16:50 +02:00
body.layout-chef,
body.layout-azurerm,
body.layout-clc,
2015-05-18 15:40:45 +02:00
body.layout-cloudflare,
body.layout-cloudstack,
body.layout-cobbler,
2014-07-27 02:42:25 +02:00
body.layout-consul,
2016-02-08 10:00:00 +01:00
body.layout-datadog,
2015-05-18 15:40:45 +02:00
body.layout-digitalocean,
body.layout-dme,
2015-05-18 15:40:45 +02:00
body.layout-dnsimple,
2015-03-29 04:05:17 +02:00
body.layout-docker,
body.layout-dyn,
body.layout-github,
body.layout-grafana,
body.layout-fastly,
2014-08-26 23:50:29 +02:00
body.layout-google,
2014-07-24 17:05:33 +02:00
body.layout-heroku,
body.layout-influxdb,
2015-10-01 00:08:51 +02:00
body.layout-librato,
body.layout-logentries,
2014-08-25 00:51:39 +02:00
body.layout-mailgun,
body.layout-mysql,
body.layout-openstack,
2015-10-09 23:41:55 +02:00
body.layout-packet,
2016-09-26 22:14:08 +02:00
body.layout-pagerduty,
body.layout-postgresql,
body.layout-powerdns,
body.layout-rabbitmq,
body.layout-random,
body.layout-rundeck,
body.layout-scaleway,
body.layout-statuscake,
body.layout-softlayer,
body.layout-template,
body.layout-tls,
2015-07-04 10:26:13 +02:00
body.layout-ultradns,
body.layout-triton,
body.layout-vault,
body.layout-vcd,
body.layout-vsphere,
2014-07-16 23:51:48 +02:00
body.layout-docs,
2014-07-27 22:11:21 +02:00
body.layout-downloads,
2015-05-18 15:40:45 +02:00
body.layout-inner,
body.layout-remotestate,
body.layout-terraform,
2014-07-16 23:51:48 +02:00
body.layout-intro{
2014-10-13 18:44:38 +02:00
background: $light-black image-url('sidebar-wire.png') left 62px no-repeat;
2014-08-25 00:51:39 +02:00
2014-07-16 23:51:48 +02:00
>.container{
.col-md-8[role=main]{
min-height: 800px;
background-color: white;
>div{
position: relative;
z-index: 10;
}
}
}
}
.docs-sidebar{
2014-07-23 09:55:41 +02:00
position: relative;
z-index: 20;
margin-bottom: 30px;
2014-07-16 23:51:48 +02:00
margin-top: 50px;
margin-right: 4%;
a{
2014-10-13 18:44:38 +02:00
color: $purple;
2014-07-16 23:51:48 +02:00
}
.docs-sidenav{
padding-top: 15px;
padding-bottom: 15px;
:last-child{
border-bottom: none;
}
//all li > a
li{
position: relative;
> a{
2014-07-23 11:03:33 +02:00
color: white;
2014-10-13 18:44:38 +02:00
@include transition( color 0.5s ease );
2014-07-16 23:51:48 +02:00
}
> a:hover,
> a:focus {
background-color: transparent !important;
2014-07-23 11:03:33 +02:00
color: white;
2014-10-13 18:44:38 +02:00
@include transition( color 0.5s ease );
2014-07-16 23:51:48 +02:00
}
}
> li {
padding: 10px 0;
margin: 0 30px;
>.nav{
li{
a{
2014-07-23 11:03:33 +02:00
color: white;
2014-07-16 23:51:48 +02:00
}
}
}
&.active {
2014-07-23 11:03:33 +02:00
>a{
2014-10-13 18:44:38 +02:00
color: lighten($purple, 4%);
2014-07-23 11:03:33 +02:00
font-weight: 500;
}
2014-07-16 23:51:48 +02:00
&:before{
content: '';
position: absolute;
2014-07-23 11:03:33 +02:00
width: 6px;
height: 8px;
2014-10-13 18:44:38 +02:00
background-color: $purple;
2014-07-23 11:03:33 +02:00
font-weight: 500;
2014-10-13 18:44:38 +02:00
@include skewY(24deg);
2014-07-16 23:51:48 +02:00
top: 26px;
left: -10px;
}
> a{
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
/*> a:hover,
> a:focus {
2014-10-13 18:44:38 +02:00
font-weight: $font-weight-lato-xb;
2014-07-16 23:51:48 +02:00
}*/
.nav {
display: block;
2014-07-23 11:03:33 +02:00
li.active a {
2014-10-13 18:44:38 +02:00
color: lighten($purple, 4%);
2014-07-23 11:03:33 +02:00
font-weight: 500;
}
2014-07-16 23:51:48 +02:00
}
}
> a {
text-transform: uppercase;
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
}
.nav {
display: none;
margin-bottom: 15px;
> li{
margin-left: 20px;
> a{
2014-07-23 11:03:33 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
padding: 6px 15px;
}
}
}
2014-07-23 21:47:21 +02:00
.nav-visible {
display: block;
}
2014-07-16 23:51:48 +02:00
}
}
.bs-docs-section{
padding-top: 10px;
padding-left: 3%;
padding-bottom: 80px;
.lead{
margin-bottom: 48px
}
.doc-sectional{
margin-bottom: 48px;
}
p, li, .alert {
font-size: 20px;
2014-10-13 18:44:38 +02:00
font-family: $font-family-open-sans;
font-weight: $font-weight-open;
2014-07-23 09:55:41 +02:00
line-height: 1.5em;
2014-07-16 23:51:48 +02:00
margin: 0 0 18px;
2014-07-23 09:55:41 +02:00
-webkit-font-smoothing: antialiased;
2014-07-16 23:51:48 +02:00
}
pre{
margin: 0 0 18px;
}
a{
2014-10-13 18:44:38 +02:00
color: $purple;
2014-07-16 23:51:48 +02:00
&:hover{
text-decoration: underline;
}
}
img{
max-width: 650px;
margin-top: 25px;
margin-bottom: 25px;
}
h1{
2014-10-13 18:44:38 +02:00
color: $purple;
font-size: 36px;
2014-07-16 23:51:48 +02:00
text-transform: uppercase;
word-wrap: break-word;
2014-07-16 23:51:48 +02:00
padding-bottom: 24px;
2014-07-23 09:55:41 +02:00
margin-top: 40px;
2014-07-16 23:51:48 +02:00
margin-bottom: 24px;
2014-07-23 09:55:41 +02:00
border-bottom: 1px solid #eeeeee;
2014-10-13 18:44:38 +02:00
@include lato-light();
2014-07-16 23:51:48 +02:00
}
h2, h3, h4{
margin-bottom: 16px;
}
#graph {
margin-top: 30px;
}
}
@media (max-width: 992px) {
body.layout-docs,
2014-07-23 18:41:18 +02:00
body.layout-inner,
2014-07-16 23:51:48 +02:00
body.layout-intro{
>.container{
.col-md-8[role=main]{
min-height: 0;
&::before {
border-left: 9999px solid white;
}
}
}
}
2014-07-24 01:48:44 +02:00
body.page-sub{
>.container{
background-color: white;
}
}
.docs-sidebar{
margin-top: 0px;
margin-bottom: 0px;
.docs-sidenav{
padding-bottom: 0;
//all li > a
li{
> a{
color: black;
2014-10-13 18:44:38 +02:00
@include transition( color 0.5s ease );
2014-07-24 01:48:44 +02:00
}
> a:hover,
> a:focus {
2014-10-13 18:44:38 +02:00
color: $purple;
@include transition( color 0.5s ease );
2014-07-24 01:48:44 +02:00
}
}
> li {
>.nav{
li{
a{
color: black;
&:hover{
2014-10-13 18:44:38 +02:00
color: $purple;
2014-07-24 01:48:44 +02:00
}
}
}
}
}
}
2014-07-24 16:29:42 +02:00
}
2014-07-24 01:48:44 +02:00
.bs-docs-section{
h1{
font-size: 32px;
2014-07-24 01:48:44 +02:00
padding-top: 24px;
border-top: 1px solid #eeeeee;
}
}
2014-07-16 23:51:48 +02:00
}
@media (max-width: 480px) {
.bs-docs-section{
img{
max-width: 450px;
}
h1{
font-size: 28px;
2014-07-16 23:51:48 +02:00
}
}
}