diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/default/_colours.scss | 9 | ||||
-rw-r--r-- | web/cobrands/default/base.scss | 7 | ||||
-rw-r--r-- | web/cobrands/default/config.rb | 25 | ||||
-rw-r--r-- | web/cobrands/default/layout.scss | 60 |
4 files changed, 101 insertions, 0 deletions
diff --git a/web/cobrands/default/_colours.scss b/web/cobrands/default/_colours.scss new file mode 100644 index 000000000..2c044a6e7 --- /dev/null +++ b/web/cobrands/default/_colours.scss @@ -0,0 +1,9 @@ +/* COLOURS */ + +$primary: #ff9900; +$primary_b: #000000; +$primary_text: #222222; + +$contrast1: #6688ff; +$contrast1_dark: darken(#6688ff, 10%); +$contrast2: #AA8D11; diff --git a/web/cobrands/default/base.scss b/web/cobrands/default/base.scss new file mode 100644 index 000000000..4594f832f --- /dev/null +++ b/web/cobrands/default/base.scss @@ -0,0 +1,7 @@ +@import "../fixmystreet/_h5bp"; +@import "./_colours"; +@import "../fixmystreet/_mixins"; +@import "compass"; + +@import "../fixmystreet/_base"; + diff --git a/web/cobrands/default/config.rb b/web/cobrands/default/config.rb new file mode 100644 index 000000000..cab97b18f --- /dev/null +++ b/web/cobrands/default/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/default/layout.scss b/web/cobrands/default/layout.scss new file mode 100644 index 000000000..93a3f7120 --- /dev/null +++ b/web/cobrands/default/layout.scss @@ -0,0 +1,60 @@ +@import "_colours"; +@import "../fixmystreet/_layout"; + +/* +Note: The fact that the below has to override the CSS, though it is for the +default template, is a sign that the CSS is not best organised. It needs +refactoring, and making more maintainable through the use of SMACSS, OOCSS +and similar. +*/ + +body { + background: #6688ff; +} + +#front-main { + color: $primary_text; + background: $primary; + // layout sets this because base has it slightly lighter + h2 { + color: $primary_text; + } + a#geolocate_link { + color: $primary_text; + } +} + +.nav-wrapper { + .nav-wrapper-2 { + border-top: 4px solid $primary; + @include border-image(none); + } +} +body.mappage { + .nav-wrapper { + .nav-wrapper-2 { + background: $contrast1; + } + } +} + +#main-nav { + ul { + li { + a, span { + color: #000; + } + } + &#main-menu { + li { + a:hover { + background: $primary; + } + } + } + &#mysoc-menu { + background: $primary; + } + } +} + |