diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-12-02 16:24:46 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2015-01-08 12:27:19 +0000 |
commit | e636b5fc95b2c1ded84b9381c8656bb5b1f286b7 (patch) | |
tree | 7ebe3743015d413b65b7cd2af8d418e7ef738a57 /web | |
parent | dc19200ce0f7c65cc5c3435ba9705b6a50e6bc82 (diff) |
[Harrogate] basic cobrand
Diffstat (limited to 'web')
-rwxr-xr-x | web/cobrands/harrogate/HBCLogo-mobile.png | bin | 0 -> 2632 bytes | |||
-rw-r--r-- | web/cobrands/harrogate/HBCLogo.png | bin | 0 -> 7102 bytes | |||
-rw-r--r-- | web/cobrands/harrogate/_colours.scss | 22 | ||||
-rw-r--r-- | web/cobrands/harrogate/base.scss | 36 | ||||
-rw-r--r-- | web/cobrands/harrogate/config.rb | 25 | ||||
-rw-r--r-- | web/cobrands/harrogate/layout.scss | 25 |
6 files changed, 108 insertions, 0 deletions
diff --git a/web/cobrands/harrogate/HBCLogo-mobile.png b/web/cobrands/harrogate/HBCLogo-mobile.png Binary files differnew file mode 100755 index 000000000..7b4cd6063 --- /dev/null +++ b/web/cobrands/harrogate/HBCLogo-mobile.png diff --git a/web/cobrands/harrogate/HBCLogo.png b/web/cobrands/harrogate/HBCLogo.png Binary files differnew file mode 100644 index 000000000..11ee7c79c --- /dev/null +++ b/web/cobrands/harrogate/HBCLogo.png diff --git a/web/cobrands/harrogate/_colours.scss b/web/cobrands/harrogate/_colours.scss new file mode 100644 index 000000000..2b9714835 --- /dev/null +++ b/web/cobrands/harrogate/_colours.scss @@ -0,0 +1,22 @@ +/* COLOURS */ + +$harrogate_primary: #7EB7D8; + +$primary: $harrogate_primary; +$primary_dark: darken($harrogate_primary, 20%); + +$col_click_map: $harrogate_primary; +$col_click_map_dark: $harrogate_primary; +$col_fixed_label_dark: $harrogate_primary; +$col_fixed_label: $harrogate_primary; + +$primary_b: #000000; +$primary_text: #ffffff; + +$base_bg: #fff; +$base_fg: #1a1a1a; + +/* Following seem to be required in layout.scss */ +$map_nav_bg: #222; +$nav_fg: #fff; +$nav_fg_hover: #444; diff --git a/web/cobrands/harrogate/base.scss b/web/cobrands/harrogate/base.scss new file mode 100644 index 000000000..118f0b8b7 --- /dev/null +++ b/web/cobrands/harrogate/base.scss @@ -0,0 +1,36 @@ +@import "../sass/h5bp"; +@import "./_colours"; +@import "../sass/mixins"; +@import "compass"; + +@import "../sass/base"; + + +body.frontpage #site-logo, +.ie6 body.frontpage #site-logo, +#site-logo +{ + display: block; + background: url("/cobrands/harrogate/HBCLogo-mobile.png") 0 0 no-repeat; + margin: 2px; + padding-left: 10px; + position: static; + width: 106px; + height: 37px; +} + +#main-nav ul#main-menu li { + + // blue button background, darker if selected + background: $primary; + &.menu-item-selected { background: $primary_dark; } + + @include border-radius(1em); + padding: 0.25em; + margin: 0.25em; + border: solid 1px black; + + span { + color: $nav_fg; + } +} diff --git a/web/cobrands/harrogate/config.rb b/web/cobrands/harrogate/config.rb new file mode 100644 index 000000000..cab97b18f --- /dev/null +++ b/web/cobrands/harrogate/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/harrogate/layout.scss b/web/cobrands/harrogate/layout.scss new file mode 100644 index 000000000..0e76bb111 --- /dev/null +++ b/web/cobrands/harrogate/layout.scss @@ -0,0 +1,25 @@ +@import "_colours"; +@import "../sass/layout"; + +@media only screen and (min-width: 48em) { + body.frontpage #site-logo, + .ie6 body.frontpage #site-logo, + body.twothirdswidthpage #site-logo, + .ie6 body.twothirdswidthpage #site-logo + { + position: relative; + top: 5px; + margin: 0; + margin-left: 2.25em; + padding: 0; + background: url("/cobrands/harrogate/HBCLogo.png") 0 0 no-repeat; + width: 227px; + height: 122px; + } +} + +#main-nav ul#main-menu li { + span { + color: $nav_fg; + } +} |