From 81537d92cf870cd90cef5fbf7fed851ee4301dac Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 25 Mar 2020 11:22:47 +0100 Subject: [PATCH] Extract styles for distributor header These styles are used in shop, cart, checkout, order confirmation. Not just shop. --- .../darkswarm/_shop-navigation.css.scss | 42 ------------------ .../darkswarm/distributor_header.css.scss | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 42 deletions(-) create mode 100644 app/assets/stylesheets/darkswarm/distributor_header.css.scss diff --git a/app/assets/stylesheets/darkswarm/_shop-navigation.css.scss b/app/assets/stylesheets/darkswarm/_shop-navigation.css.scss index fd08599222..ccc2e1b54d 100644 --- a/app/assets/stylesheets/darkswarm/_shop-navigation.css.scss +++ b/app/assets/stylesheets/darkswarm/_shop-navigation.css.scss @@ -1,47 +1,5 @@ @import "typography"; -.darkswarm navigation { - display: block; - background: $white; - - distributor.details { - box-sizing: border-box; - display: block; - min-height: 150px; - padding: 30px 0 20px 0; - position: relative; - - select { - width: 200px; - } - - img { - display: block; - height: 100px; - width: 100px; - margin-right: 12px; - } - - location { - @include headingFont; - } - @media all and (max-width: 768px) { - location, location + small { - display: block; - } - } - - #distributor_title h3 { - margin-top: 0; - padding-top: 0.45em; - - @media all and (max-width: 768px) { - margin-bottom: 8px; - } - } - } -} - ordercycle { float: right; background: $teal-400; diff --git a/app/assets/stylesheets/darkswarm/distributor_header.css.scss b/app/assets/stylesheets/darkswarm/distributor_header.css.scss new file mode 100644 index 0000000000..fb1dc01a55 --- /dev/null +++ b/app/assets/stylesheets/darkswarm/distributor_header.css.scss @@ -0,0 +1,43 @@ +@import "typography"; + +.darkswarm navigation { + display: block; + background: $white; + + distributor.details { + box-sizing: border-box; + display: block; + min-height: 150px; + padding: 30px 0 20px 0; + position: relative; + + select { + width: 200px; + } + + img { + display: block; + height: 100px; + width: 100px; + margin-right: 12px; + } + + location { + @include headingFont; + } + @media all and (max-width: 768px) { + location, location + small { + display: block; + } + } + + #distributor_title h3 { + margin-top: 0; + padding-top: 0.45em; + + @media all and (max-width: 768px) { + margin-bottom: 8px; + } + } + } +}