1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00
This commit is contained in:
Matthias Kretschmann 2017-06-28 17:13:20 +02:00
parent dc8310e2f7
commit 5409a0f0ec
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 36 additions and 39 deletions

View File

@ -14,30 +14,34 @@ jQuery(function($) {
}) })
//
// Sticky nav
//
const menu = document.getElementsByClassName('menu--sub')[0]
if ( window.innerWidth >= 768 ) {
const offset = menu.offsetTop
window.addEventListener('scroll', function() {
if (offset < window.pageYOffset) {
menu.classList.add('sticky')
} else {
menu.classList.remove('sticky')
}
}, false)
}
// //
// Scrollspy // Scrollspy
// //
gumshoe.init() gumshoe.init()
//
// Sticky nav
//
function stickyNav() {
const menu = document.getElementsByClassName('menu--sub')[0]
if ( window.innerWidth >= 768 ) {
const offset = menu.offsetTop
window.addEventListener('scroll', function() {
if (offset < window.pageYOffset) {
menu.classList.add('sticky')
} else {
menu.classList.remove('sticky')
}
}, false)
}
}
stickyNav()
// //
// BigchainDB transaction tool // BigchainDB transaction tool
// //

View File

@ -10,12 +10,16 @@
.section-title { .section-title {
font-size: $font-size-h3; font-size: $font-size-h3;
text-align: left; text-align: left;
margin-top: $spacer * 3; margin-top: $spacer * 2;
margin-bottom: $spacer * 3; margin-bottom: $spacer * 2;
&:after { &:after {
display: none; display: none;
} }
+ .grid {
margin-bottom: 0;
}
} }
} }
@ -52,6 +56,7 @@
font-style: italic; font-style: italic;
border: 1px solid $gray-dark; border: 1px solid $gray-dark;
background: none; background: none;
overflow-x: hidden;
} }
} }
@ -73,11 +78,6 @@
.code-example { .code-example {
@include transition; @include transition;
opacity: .5;
&:hover {
opacity: 1;
}
.nav-link, .nav-link,
pre { pre {
@ -86,6 +86,7 @@
.nav-tabs { .nav-tabs {
border-bottom-color: $gray-light; border-bottom-color: $gray-light;
opacity: .6;
} }
.nav-link { .nav-link {
@ -105,14 +106,11 @@
pre { pre {
background: none; background: none;
padding: $spacer * 1.5 0; padding: $spacer * 1.5 0 0;
margin-bottom: 0;
} }
} }
.code-example__message {
font-weight: $font-weight-bold;
}
.section-title--numbered { .section-title--numbered {
span { span {
text-align: center; text-align: center;
@ -231,14 +229,9 @@
.starbase--intro { .starbase--intro {
min-height: 10rem; min-height: 10rem;
margin-top: -($spacer * 8); margin-top: -($spacer * 8);
margin-bottom: 2%;
@media ($screen-sm) {
margin-bottom: 4%;
}
.starbase__image { .starbase__image {
margin-top: -($spacer * 8); margin-top: -($spacer * 12);
// surface layer // surface layer
&:before { &:before {

View File

@ -216,7 +216,7 @@ $state-success-text: #fff !default;
$state-success-bg: rgba($brand-primary, .4) !default; $state-success-bg: rgba($brand-primary, .4) !default;
$state-info-text: #fff !default; $state-info-text: #fff !default;
$state-info-bg: rgba($brand-main-violet, .4) !default; $state-info-bg: rgba($brand-main-blue-light, .2) !default;
$state-warning-text: #fff !default; $state-warning-text: #fff !default;
$state-warning-bg: rgba($brand-warning, .4) !default; $state-warning-bg: rgba($brand-warning, .4) !default;

View File

@ -155,13 +155,13 @@ conn.postTransaction(txSigned)
</div> </div>
</nav> </nav>
<section class="section section--architecture"> <!-- <section class="section section--architecture">
<div class="row row--wide"> <div class="row row--wide">
<figure class="architecture"> <figure class="architecture">
<img class="img--responsive" src="/assets/img/architecture.svg" alt="BigchainDB Overview"> <img class="img--responsive" src="/assets/img/architecture.svg" alt="BigchainDB Overview">
</figure> </figure>
</div> </div>
</section> </section> -->
<section class="section section--server background--darker" id="server"> <section class="section section--server background--darker" id="server">
<div class="row row--wide"> <div class="row row--wide">