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

291 lines
4.2 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
}
2014-12-08 03:42:27 +01:00
body.layout-atlas,
2014-07-27 02:42:25 +02:00
body.layout-consul,
2014-07-25 01:35:40 +02:00
body.layout-dnsimple,
body.layout-dme,
2015-03-29 04:05:17 +02:00
body.layout-docker,
2014-07-25 18:31:23 +02:00
body.layout-cloudflare,
body.layout-cloudstack,
2014-08-26 23:50:29 +02:00
body.layout-google,
2014-07-24 17:05:33 +02:00
body.layout-heroku,
2014-08-25 00:51:39 +02:00
body.layout-mailgun,
body.layout-openstack,
body.layout-template,
2014-07-24 16:29:42 +02:00
body.layout-digitalocean,
2014-07-23 20:50:41 +02:00
body.layout-aws,
2014-07-16 23:51:48 +02:00
body.layout-docs,
2014-07-23 18:41:18 +02:00
body.layout-inner,
2014-07-27 22:11:21 +02:00
body.layout-downloads,
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;
2014-07-16 23:51:48 +02:00
text-transform: uppercase;
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{
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: 32px;
}
}
}