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

256 lines
3.6 KiB
SCSS
Raw Normal View History

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