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

278 lines
4.3 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;
2017-02-22 00:23:23 +00:00
h1, h2, h3, h4, h5 {
font-family: $font-family-open-sans;
text-transform: none;
}
}
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 {
2017-02-21 22:37:51 +00:00
font-weight: font-weight-xb;
2015-11-09 21:48:29 +00:00
}*/
.nav {
display: block;
li.active a {
2017-02-21 22:37:51 +00:00
font-weight: font-weight-xb;
2015-11-09 21:48:29 +00:00
}
li.active .subnav {
display: block;
li a {
2017-02-21 22:37:51 +00:00
font-weight: $font-weight-sb;
2015-11-09 21:48:29 +00:00
}
li.active a {
2017-02-21 22:37:51 +00:00
font-weight: font-weight-xb;
2015-11-09 21:48:29 +00:00
}
}
}
}
> a {
font-family: $font-family-open-sans;
2017-02-22 00:23:23 +00:00
font-weight: 600;
2015-11-09 21:48:29 +00:00
-webkit-font-smoothing: antialiased;
}
}
.nav {
display: none;
margin-bottom: 15px;
> li{
margin-left: 20px;
> a{
padding: 6px 15px;
2017-02-22 00:23:23 +00:00
font-weight: 500;
-webkit-font-smoothing: antialiased;
2015-11-09 21:48:29 +00:00
}
.subnav {
display: none;
margin-bottom: 15px;
list-style: none;
> li{
padding: 6px 0;
> a{
-webkit-font-smoothing: antialiased;
}
}
}
}
}
}
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 {
2017-02-22 00:23:23 +00:00
font-size: 18px;
font-weight: 400;
2015-11-09 21:48:29 +00:00
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
}
2016-12-07 22:01:48 +00:00
pre {
2015-11-09 21:48:29 +00:00
margin: 0 0 18px;
2016-12-07 22:01:48 +00:00
// This will force the code to scroll horizontally on small screens
// instead of wrapping.
code {
overflow-wrap: normal;
white-space: pre;
}
2015-11-09 21:48:29 +00:00
}
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{
2017-02-22 00:23:23 +00:00
margin-top: 42px;
2015-11-09 21:48:29 +00:00
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
}