1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-02-05 17:05:40 +01:00
site/_src/_assets/styles/_page-guides.scss

184 lines
3.1 KiB
SCSS
Raw Normal View History

2017-11-16 12:30:35 +01:00
.content--guide {
2017-11-16 12:49:58 +01:00
.content--page--markdown {
2017-11-20 11:04:08 +01:00
padding-top: $spacer * 4;
2017-11-16 12:49:58 +01:00
h1,
h2,
h3,
h4 {
font-weight: $font-weight-normal;
}
2017-11-16 12:30:35 +01:00
2017-11-16 12:49:58 +01:00
h2,
h3,
h4 {
text-align: left;
border: 0;
padding: 0;
}
2017-11-16 12:30:35 +01:00
2017-11-16 12:49:58 +01:00
h1 {
font-size: $font-size-h3;
2017-11-16 12:49:58 +01:00
}
h2 {
font-size: $font-size-h4;
margin-bottom: ($spacer * 2);
margin-top: ($spacer * 2);
2017-11-16 12:49:58 +01:00
}
2017-11-16 12:30:35 +01:00
2017-11-16 12:49:58 +01:00
h3 {
font-size: $font-size-base;
font-weight: $font-weight-bold;
color: #fff;
margin-bottom: $spacer;
margin-top: ($spacer * 2);
2017-11-16 12:49:58 +01:00
}
2017-11-16 12:30:35 +01:00
}
}
2017-11-20 11:04:08 +01:00
.section-header--guide {
margin-bottom: $spacer * 3;
.section-description {
text-align: left;
h2 {
@extend .h5;
margin-top: 0;
font-size: $font-size-lg;
}
ul {
margin: 0;
}
}
}
2017-11-20 11:25:56 +01:00
.section--guides-more {
padding-top: 0;
}
2017-11-16 12:30:35 +01:00
.guide {
height: 100%;
a {
@include color-overlay;
background-size: cover;
background-position: center;
2017-11-16 12:30:35 +01:00
display: block;
box-shadow: none;
background-color: $brand-main-blue-dark;
2017-11-16 16:22:45 +01:00
padding: $spacer * 2;
2017-11-16 12:30:35 +01:00
height: 100%;
border-radius: $border-radius;
&:before {
2017-11-17 16:45:20 +01:00
opacity: .85;
}
2017-11-16 12:30:35 +01:00
&:hover,
&:focus {
background-size: cover;
background-position: center;
box-shadow: 0 2px 5px rgba($brand-main-blue-dark, .2);
transform: translateY(-1px);
2017-11-16 12:30:35 +01:00
}
}
2017-11-16 16:22:45 +01:00
p:last-child,
.guide__title:only-child {
margin-bottom: 0;
}
2017-11-16 12:30:35 +01:00
}
.guide__title,
.guide__tagline {
position: relative;
z-index: 1;
}
2017-11-16 12:30:35 +01:00
.guide__title,
h1.guide__title {
font-size: $font-size-h4;
font-weight: $font-weight-normal;
2017-11-20 18:57:08 +01:00
margin-bottom: $spacer / $line-height;
2017-11-16 12:30:35 +01:00
margin-top: 0;
2017-11-20 18:57:08 +01:00
color: #fff;
}
.guide__tagline {
color: $brand-main-blue-light;
2017-11-16 12:30:35 +01:00
}
//
// TOC
//
.section-nav {
background: darken($brand-main-gray, 2%);
2017-11-20 11:04:08 +01:00
margin-top: 0;
margin-bottom: $spacer * 2;
2017-11-20 18:57:08 +01:00
padding: $spacer * 1.5;
padding-bottom: $spacer * 2;
border-radius: $border-radius;
2017-11-20 18:57:08 +01:00
a {
&:hover,
&:focus {
color: #fff;
}
}
}
li.toc-h1 {
// custom numbers
&:before {
font-size: $font-size-base;
opacity: .6;
2017-11-20 18:57:08 +01:00
color: $brand-main-blue-light;
}
a {
font-size: $font-size-base;
margin: 0;
box-shadow: none;
2017-11-20 18:57:08 +01:00
color: $brand-main-blue-light;
}
ul {
padding-left: $spacer * 2.6;
}
}
li.toc-h2 {
a {
font-size: $font-size-sm;
color: $text-color;
}
}
li.toc-h3 {
display: none;
}
.header--guide {
.header__content {
padding-top: ($spacer * 5);
padding-bottom: ($spacer * 5);
}
}
2017-11-20 11:25:56 +01:00
.section--getstarted {
padding-bottom: 0;
.section-header {
margin-bottom: -($spacer * 3.5);
position: relative;
z-index: 10;
.btn {
margin-top: $spacer * 2;
}
}
}