open-consul/website/source/assets/stylesheets/_docs.scss

268 lines
4.2 KiB
SCSS
Raw Normal View History

2014-02-08 00:41:03 +00:00
//
// Docs
// --------------------------------------------------
body.layout-docs,
body.layout-intro{
2015-11-09 21:48:29 +00:00
background: $light-purple image-url('sidebar-dots.jpg') left 62px no-repeat;
#main-content{
min-height: 600px;
}
2015-11-09 21:48:29 +00:00
>.container{
.col-md-8[role=main]{
min-height: 800px;
background-color: white;
&::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: -9999px;
right: 0;
border-left: none;
box-shadow: 9999px 0 0 white;
}
>div{
position: relative;
z-index: 10;
}
}
}
}
2014-02-08 00:41:03 +00:00
.docs-sidebar{
2015-11-09 21:48:29 +00:00
position: relative;
z-index: 20;
margin-bottom: 30px;
margin-top: 50px;
margin-right: 4%;
background-color: $light-purple;
border-radius: $el-border-radius;
a{
color: $purple;
}
.docs-sidenav{
padding-top: 15px;
padding-bottom: 15px;
:last-child{
border-bottom: none;
}
//all li > a
li{
position: relative;
> a{
color: $purple;
@include transition( color 0.5s ease );
}
> a:hover,
> a:focus {
background-color: transparent !important;
color: $black;
@include transition( color 0.5s ease );
}
}
> li {
padding: 10px 0;
margin: 0 30px;
border-bottom: 2px solid #fff;
>.nav{
li{
a{
color: $black;
}
}
}
&.active {
&:before{
content: '';
position: absolute;
width: 8px;
height: 8px;
background-color: $purple;
border-radius: 4px;
top: 26px;
left: -10px;
}
> a{
-webkit-font-smoothing: antialiased;
}
/*> a:hover,
> a:focus {
font-weight: $font-weight-museo-xb;
}*/
.nav {
display: block;
li.active a {
font-weight: $font-weight-museo-xb;
}
li.active .subnav {
display: block;
li a {
font-weight: $font-weight-museo-sb;
}
li.active a {
font-weight: $font-weight-museo-xb;
}
}
}
}
> a {
text-transform: uppercase;
font-family: $font-family-museo;
font-weight: $font-weight-museo-sb;
-webkit-font-smoothing: antialiased;
}
}
.nav {
display: none;
margin-bottom: 15px;
> li{
margin-left: 20px;
> a{
-webkit-font-smoothing: antialiased;
font-family: $font-family-source-sans;
padding: 6px 15px;
}
.subnav {
display: none;
margin-bottom: 15px;
list-style: none;
> li{
padding: 6px 0;
> a{
-webkit-font-smoothing: antialiased;
font-family: $font-family-source-sans;
}
}
}
}
}
}
2014-02-08 00:41:03 +00:00
}
.bs-docs-section{
2015-11-09 21:48:29 +00:00
padding-top: 10px;
padding-left: 3%;
padding-bottom: 80px;
2016-09-26 15:13:20 +00:00
.alert {
a {
color: inherit;
font-size: inherit;
font-weight: inherit;
}
}
2015-11-09 21:48:29 +00:00
.lead{
margin-bottom: 48px
}
.doc-sectional{
margin-bottom: 48px;
}
p, li, .alert {
font-size: 20px;
font-family: $font-family-source-sans;
font-weight: $font-weight-open;
line-height: 1.5em;
margin: 0 0 18px;
-webkit-font-smoothing: antialiased;
}
2014-02-08 00:41:03 +00:00
2014-10-18 22:52:41 +00:00
li p a, li a {
2015-11-09 21:48:29 +00:00
text-decoration: none;
2014-10-18 22:52:41 +00:00
}
2015-11-09 21:48:29 +00:00
pre{
margin: 0 0 18px;
}
a{
color: $purple;
&:hover{
text-decoration: underline;
}
}
img{
max-width: 650px;
margin-top: 25px;
margin-bottom: 25px;
}
h1{
color: $purple;
text-transform: uppercase;
padding-bottom: 24px;
margin-top: 40px;
margin-bottom: 24px;
border-bottom: 1px solid #eeeeee;
}
h2, h3, h4{
margin-bottom: 16px;
}
#graph {
margin-top: 30px;
}
.alert p {
2015-11-09 21:48:29 +00:00
margin-bottom: 0;
}
2014-02-08 00:41:03 +00:00
}
2014-04-08 23:51:59 +00:00
@media (max-width: 992px) {
2015-11-09 21:48:29 +00:00
body.layout-docs,
body.layout-intro{
>.container{
.col-md-8[role=main]{
min-height: 0;
&::before {
border-left: 9999px solid white;
}
}
}
}
2014-04-08 23:51:59 +00:00
}
2014-04-09 02:44:14 +00:00
@media (max-width: 480px) {
2015-11-09 21:48:29 +00:00
.bs-docs-section{
img{
max-width: 450px;
}
h1{
font-size: 32px;
}
}
2014-04-09 02:44:14 +00:00
}