diff options
author | Dave Arter <davea@mysociety.org> | 2016-06-22 13:35:21 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2017-06-08 12:07:53 +0100 |
commit | e2125b7db84902c62ddce822c0397a174ad56a8c (patch) | |
tree | e1aaaf0e4fb32c129f4efc8636eae3a2687d3f06 | |
parent | ffe3a98493360717ef830af252954f738166fa1a (diff) |
Basic white label cobrand.
This removes most of the FMS/mySociety branding, but uses the same logic
as the fixmystreet.com cobrand wrt problem restrictions, handling, etc.
Suitable for UK council demos.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Whitelabel.pm | 13 | ||||
-rw-r--r-- | templates/web/whitelabel/footer_extra.html | 0 | ||||
-rw-r--r-- | templates/web/whitelabel/front/footer-marketing.html | 0 | ||||
-rw-r--r-- | templates/web/whitelabel/next_steps.html | 0 | ||||
-rw-r--r-- | web/cobrands/whitelabel/_colours.scss | 30 | ||||
-rw-r--r-- | web/cobrands/whitelabel/base.scss | 4 | ||||
-rw-r--r-- | web/cobrands/whitelabel/layout.scss | 14 |
7 files changed, 61 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Whitelabel.pm b/perllib/FixMyStreet/Cobrand/Whitelabel.pm new file mode 100644 index 000000000..42a23e40f --- /dev/null +++ b/perllib/FixMyStreet/Cobrand/Whitelabel.pm @@ -0,0 +1,13 @@ +package FixMyStreet::Cobrand::Whitelabel; +use base 'FixMyStreet::Cobrand::UKCouncils'; + +sub path_to_web_templates { + my $self = shift; + return [ + FixMyStreet->path_to( 'templates/web', $self->moniker ), + FixMyStreet->path_to( 'templates/web/whitelabel' ), + FixMyStreet->path_to( 'templates/web/fixmystreet-uk-councils' ), + ]; +} + +1; diff --git a/templates/web/whitelabel/footer_extra.html b/templates/web/whitelabel/footer_extra.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/whitelabel/footer_extra.html diff --git a/templates/web/whitelabel/front/footer-marketing.html b/templates/web/whitelabel/front/footer-marketing.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/whitelabel/front/footer-marketing.html diff --git a/templates/web/whitelabel/next_steps.html b/templates/web/whitelabel/next_steps.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/whitelabel/next_steps.html diff --git a/web/cobrands/whitelabel/_colours.scss b/web/cobrands/whitelabel/_colours.scss new file mode 100644 index 000000000..1392663d5 --- /dev/null +++ b/web/cobrands/whitelabel/_colours.scss @@ -0,0 +1,30 @@ +/* LAYOUT */ + +// If you are wanting a right-to-left layout, uncomment the following line. +// $direction: right; + +/* COLOURS */ + +$primary: gray; +$primary_b: #000000; +$primary_text: #222222; + +$base_bg: white; +$base_fg: #000; + +$map_nav_bg: #eee; +$nav_fg: #000; +$nav_fg_hover: $primary; + +// Colour used for front page 'how to report a problem' steps +$col_big_numbers: #ccc; + +$col_click_map: gray; + +$col_fixed_label: #00BD08; +$col_fixed_label_dark: #4B8304; + +$menu-image: 'menu-black'; + +$front_main_background: white; +// $header-top-border: false; diff --git a/web/cobrands/whitelabel/base.scss b/web/cobrands/whitelabel/base.scss new file mode 100644 index 000000000..4f953084e --- /dev/null +++ b/web/cobrands/whitelabel/base.scss @@ -0,0 +1,4 @@ +@import "../sass/h5bp"; +@import "./_colours"; +@import "../sass/mixins"; +@import "../sass/base"; diff --git a/web/cobrands/whitelabel/layout.scss b/web/cobrands/whitelabel/layout.scss new file mode 100644 index 000000000..9c58b471d --- /dev/null +++ b/web/cobrands/whitelabel/layout.scss @@ -0,0 +1,14 @@ +@import "_colours"; +@import "../sass/layout"; + +.big-green-banner { + text-transform: none; +} + +.nav-menu--main a.report-a-problem-btn { + color: white; +} + +#front-main { + background-color: $front_main_background; +} |