From df1adbaf8c7077ed44c0dae446f1d8de8dd43e1c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 24 Nov 2017 13:09:26 +0100 Subject: [PATCH] spacing, typography & layout tweaks --- .../images/nosprite/starbase-guides.svg | 2 +- _src/_assets/styles/_page-guides.scss | 34 +++++++++++++------ .../styles/bigchain/_content-page.scss | 2 +- _src/_assets/styles/bigchain/_variables.scss | 2 +- _src/_includes/header.html | 2 +- _src/_layouts/guide.html | 4 +-- _src/guides.html | 24 ++++++------- 7 files changed, 39 insertions(+), 31 deletions(-) diff --git a/_src/_assets/images/nosprite/starbase-guides.svg b/_src/_assets/images/nosprite/starbase-guides.svg index d064ff1..5a1a358 100644 --- a/_src/_assets/images/nosprite/starbase-guides.svg +++ b/_src/_assets/images/nosprite/starbase-guides.svg @@ -1,5 +1,5 @@ - + diff --git a/_src/_assets/styles/_page-guides.scss b/_src/_assets/styles/_page-guides.scss index 3e46e22..db8887d 100644 --- a/_src/_assets/styles/_page-guides.scss +++ b/_src/_assets/styles/_page-guides.scss @@ -11,6 +11,11 @@ @extend .row--wide; } + .header__content { + padding-top: ($spacer * 5); + padding-bottom: ($spacer * 5); + } + .header__tagline { @media ($screen-sm) { max-width: 40rem; @@ -20,6 +25,13 @@ } } +.header--guide { + .header__content { + padding-top: ($spacer * 5); + padding-bottom: ($spacer * 5); + } +} + .content--guide { .content--page--markdown { padding-top: $spacer * 4; @@ -45,13 +57,12 @@ h2 { font-size: $font-size-h4; - margin-bottom: ($spacer * 2); - margin-top: ($spacer * 2); + margin-top: ($spacer * 2.5); } h3 { font-size: $font-size-base; - font-weight: $font-weight-bold; + font-weight: $font-weight-normal; color: #fff; margin-bottom: $spacer; margin-top: ($spacer * 2); @@ -79,6 +90,13 @@ .section--guides-more { padding-top: 0; + background: url('../img/nosprite/starbase-guides.svg') no-repeat center bottom; + background-size: contain; + padding-bottom: 25%; + + .grid { + margin-top: -($spacer * 3); + } } .guide { @@ -120,7 +138,8 @@ margin-bottom: 0; } - .section--guides & { + .section--guides &, + .section--guideslist & { margin-bottom: $spacer * 2; a { @@ -200,13 +219,6 @@ li.toc-h3 { display: none; } -.header--guide { - .header__content { - padding-top: ($spacer * 5); - padding-bottom: ($spacer * 5); - } -} - .section--getstarted { padding-bottom: 0; diff --git a/_src/_assets/styles/bigchain/_content-page.scss b/_src/_assets/styles/bigchain/_content-page.scss index a0fffed..b490799 100644 --- a/_src/_assets/styles/bigchain/_content-page.scss +++ b/_src/_assets/styles/bigchain/_content-page.scss @@ -12,7 +12,7 @@ .faq__question { border-bottom: 2px solid $brand-main-blue-light; padding-bottom: $spacer; - margin-bottom: ($spacer * 2); + margin-bottom: ($spacer * 1.5); margin-top: ($spacer * 3); position: relative; diff --git a/_src/_assets/styles/bigchain/_variables.scss b/_src/_assets/styles/bigchain/_variables.scss index b4e1e35..818909d 100644 --- a/_src/_assets/styles/bigchain/_variables.scss +++ b/_src/_assets/styles/bigchain/_variables.scss @@ -60,7 +60,7 @@ $line-height: 1.5 !default; $headings-font-family: inherit !default; $headings-font-weight: $font-weight-light !default; -$headings-line-height: 1.3 !default; +$headings-line-height: 1.2 !default; $headings-color: $brand-main-blue-light !default; diff --git a/_src/_includes/header.html b/_src/_includes/header.html index d4b528f..7de8b33 100644 --- a/_src/_includes/header.html +++ b/_src/_includes/header.html @@ -1,4 +1,4 @@ -

{{ guide.title }}

@@ -43,7 +43,7 @@ layout: base
- All guides + All guides
diff --git a/_src/guides.html b/_src/guides.html index 864a9cb..0ddc335 100644 --- a/_src/guides.html +++ b/_src/guides.html @@ -7,20 +7,16 @@ image: share-image-guides.png ---
-
-
- {% assign guides = site.guides | sort: 'order' %} - {% for guide in guides %} - - {% endfor %} -
+
+ {% assign guides = site.guides | sort: 'order' %} + {% for guide in guides %} + + {% endfor %}