From 8edeb5366c4809a711e34360c9d948fd77a2f59f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 27 Sep 2017 18:49:52 +0200 Subject: [PATCH] add Ocean banner --- _src/_assets/images/logo-oceanprotocol.svg | 5 +++ _src/_assets/styles/_9984.scss | 22 +++++------ _src/_assets/styles/_oceanprotocol.scss | 44 ++++++++++++++++++++++ _src/_assets/styles/bigchain.scss | 1 + _src/_includes/9984.html | 9 ----- _src/_includes/banner.html | 26 +++++++++++++ _src/_layouts/base.html | 2 +- 7 files changed, 88 insertions(+), 21 deletions(-) create mode 100644 _src/_assets/images/logo-oceanprotocol.svg create mode 100644 _src/_assets/styles/_oceanprotocol.scss delete mode 100644 _src/_includes/9984.html create mode 100644 _src/_includes/banner.html diff --git a/_src/_assets/images/logo-oceanprotocol.svg b/_src/_assets/images/logo-oceanprotocol.svg new file mode 100644 index 0000000..05558e1 --- /dev/null +++ b/_src/_assets/images/logo-oceanprotocol.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/_src/_assets/styles/_9984.scss b/_src/_assets/styles/_9984.scss index 207d32f..f851d2e 100644 --- a/_src/_assets/styles/_9984.scss +++ b/_src/_assets/styles/_9984.scss @@ -17,17 +17,18 @@ $font-family-silkscreen: silkscreennormal, monospace !default; .banner--ninenine { - text-align: center; + display: block; background: $brand-9984-03; font-family: $font-family-silkscreen; font-weight: $font-weight-normal; font-style: normal; - padding-top: $spacer; - padding-bottom: $spacer; + padding-top: $spacer / 2; + padding-bottom: $spacer / 2; + box-shadow: none; @media ($screen-sm) { - padding-top: $spacer / 2; - padding-bottom: $spacer / 2; + padding-top: $spacer / 3; + padding-bottom: $spacer / 3; } &, @@ -56,7 +57,7 @@ $font-family-silkscreen: silkscreennormal, monospace !default; .ninenine__title, .ninenine__meta { - font-size: .8rem; + font-size: .7rem; line-height: $line-height; margin: 0; color: $brand-9984-04; @@ -71,14 +72,13 @@ $font-family-silkscreen: silkscreennormal, monospace !default; box-shadow: none; color: $brand-9984-04; background: $brand-9984-01; - padding: $spacer / 5 $spacer / 4; + padding: 0 $spacer / 4; display: block; - margin-top: $spacer / 2; + margin-top: $spacer / 6; + font-size: .65rem; @media ($screen-sm) { - display: inline; - margin-top: 0; - margin-left: $spacer / 2; + display: inline-block; } } diff --git a/_src/_assets/styles/_oceanprotocol.scss b/_src/_assets/styles/_oceanprotocol.scss new file mode 100644 index 0000000..3a81837 --- /dev/null +++ b/_src/_assets/styles/_oceanprotocol.scss @@ -0,0 +1,44 @@ +.banner--ocean { + display: block; + box-shadow: none; + height: 100%; + background: #000; + padding-top: $spacer / 2; + padding-bottom: $spacer / 2; + + &:hover, + &:focus { + background: #fff; + + .ocean__title { + opacity: 1; + color: #000; + } + + .ocean__logo { + fill: #000; + } + } + + .row { + display: flex; + align-items: center; + height: 100%; + } +} + +.ocean__title { + font-size: .8rem; + margin: 0; + opacity: .8; + color: #fff; +} + +.ocean__logo { + fill: #fff; + width: 1.2rem; + height: 1.2rem; + margin-right: $spacer / 4; + margin-bottom: -.4rem; + display: inline-block; +} diff --git a/_src/_assets/styles/bigchain.scss b/_src/_assets/styles/bigchain.scss index 9cbe776..221f2a6 100644 --- a/_src/_assets/styles/bigchain.scss +++ b/_src/_assets/styles/bigchain.scss @@ -64,3 +64,4 @@ @import 'page-faq'; @import 'ipdb'; @import '9984'; +@import 'oceanprotocol'; diff --git a/_src/_includes/9984.html b/_src/_includes/9984.html deleted file mode 100644 index 32fe426..0000000 --- a/_src/_includes/9984.html +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/_src/_includes/banner.html b/_src/_includes/banner.html new file mode 100644 index 0000000..3799013 --- /dev/null +++ b/_src/_includes/banner.html @@ -0,0 +1,26 @@ + diff --git a/_src/_layouts/base.html b/_src/_layouts/base.html index 5bea083..ad5e369 100644 --- a/_src/_layouts/base.html +++ b/_src/_layouts/base.html @@ -13,7 +13,7 @@ - {% include 9984.html %} + {% include banner.html %} {{ content }}