aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-07-31 16:03:42 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-07-31 16:03:42 +0100
commitcde2b7ccac256b1079d9f11820e35357b4a23494 (patch)
tree51a80589f989f8abea70fca7ac6f873459ad7755
parent1cae50a5635f783518cb2a7e0c2ea4372e8480e0 (diff)
[MakeMyIsland] Initial simple cobrand.
-rw-r--r--templates/web/makemyisland/footer.html33
-rw-r--r--templates/web/makemyisland/front/footer-marketing.html0
-rw-r--r--web/cobrands/makemyisland/_colours.scss21
-rw-r--r--web/cobrands/makemyisland/base.scss7
-rw-r--r--web/cobrands/makemyisland/config.rb25
-rw-r--r--web/cobrands/makemyisland/layout.scss2
6 files changed, 88 insertions, 0 deletions
diff --git a/templates/web/makemyisland/footer.html b/templates/web/makemyisland/footer.html
new file mode 100644
index 000000000..40e5407ce
--- /dev/null
+++ b/templates/web/makemyisland/footer.html
@@ -0,0 +1,33 @@
+ [% IF pagefooter %]
+ <footer role="content-info">
+ [% INCLUDE 'front/footer-marketing.html' %]
+ </footer>
+ [% END %]
+ </div><!-- .content role=main -->
+ </div><!-- .container -->
+ </div><!-- .table-cell -->
+
+ <div class="nav-wrapper">
+ <div class="nav-wrapper-2">
+ <div id="main-nav" role="navigation">
+ <ul id="main-menu">
+ <li><[% IF c.req.uri.path == '/' %]span[% ELSE %]a href="/"[% END %] class="report-a-problem-btn"
+ >[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/my' %]span[% ELSE %]a href="/my"[% END
+ %]>[% loc("Your reports") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/reports' %]span[% ELSE %]a href="/reports"[% END
+ %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/alert' %]span[% ELSE %]a href="/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END
+ %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[%
+ %]<li><[% IF c.req.uri.path == '/faq' %]span[% ELSE %]a href="/faq"[% END
+ %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[%
+ %]<li id="top-nav-privacy"><[% IF c.req.uri.path == '/privacy' %]span[% ELSE %]a href="/privacy"[% END
+ %]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ </div> <!-- .wrapper -->
+</body>
+</html>
diff --git a/templates/web/makemyisland/front/footer-marketing.html b/templates/web/makemyisland/front/footer-marketing.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/makemyisland/front/footer-marketing.html
diff --git a/web/cobrands/makemyisland/_colours.scss b/web/cobrands/makemyisland/_colours.scss
new file mode 100644
index 000000000..8a9c61f27
--- /dev/null
+++ b/web/cobrands/makemyisland/_colours.scss
@@ -0,0 +1,21 @@
+/* COLOURS */
+
+$blue: #00909b;
+$green: rgb(178,231,221);
+
+$primary: $green;
+$primary_b: #000000;
+$primary_text: #222222;
+
+$base_bg: $blue;
+$base_fg: $primary_text;
+
+$map_nav_bg: $blue;
+$nav_fg: #fff;
+$nav_fg_hover: $primary;
+
+$col_click_map: $blue;
+$col_click_map_dark: darken($blue, 10%);
+
+$col_fixed_label: #00BD08;
+$col_fixed_label_dark: #4B8304;
diff --git a/web/cobrands/makemyisland/base.scss b/web/cobrands/makemyisland/base.scss
new file mode 100644
index 000000000..9fccf92db
--- /dev/null
+++ b/web/cobrands/makemyisland/base.scss
@@ -0,0 +1,7 @@
+@import "../sass/h5bp";
+@import "./_colours";
+@import "../sass/mixins";
+@import "compass";
+
+@import "../sass/base";
+
diff --git a/web/cobrands/makemyisland/config.rb b/web/cobrands/makemyisland/config.rb
new file mode 100644
index 000000000..cab97b18f
--- /dev/null
+++ b/web/cobrands/makemyisland/config.rb
@@ -0,0 +1,25 @@
+# Require any additional compass plugins here.
+
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = ""
+sass_dir = ""
+images_dir = ""
+javascripts_dir = ""
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+
+# To enable relative paths to assets via compass helper functions. Uncomment:
+# relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+# line_comments = false
+
+# If you prefer the indented syntax, you might want to regenerate this
+# project again passing --syntax sass, or you can uncomment this:
+# preferred_syntax = :sass
+# and then run:
+# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
+
+line_comments = false # by Compass.app
diff --git a/web/cobrands/makemyisland/layout.scss b/web/cobrands/makemyisland/layout.scss
new file mode 100644
index 000000000..69e455aa5
--- /dev/null
+++ b/web/cobrands/makemyisland/layout.scss
@@ -0,0 +1,2 @@
+@import "_colours";
+@import "../sass/layout";