diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2017-03-07 16:24:28 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-03-30 17:13:15 +0100 |
commit | 35bf6ddb2e58c027a888931bf57de0458cdf898c (patch) | |
tree | ea9de3c4baef28190c9033777010c9164ccb4d33 | |
parent | 2d9bfa79c92b96d26354fbc5d6749adbb3089a17 (diff) |
Set `background-color`, not `background` on nav links
This makes it easier for cobrands to override nav link styles.
-rw-r--r-- | web/cobrands/sass/_base.scss | 8 | ||||
-rw-r--r-- | web/cobrands/sass/_layout.scss | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 25674aedd..54954023b 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -530,24 +530,24 @@ ul.error { a, span { display: block; padding: 0.5em 1em; - background: #f6f6f6; + background-color: #f6f6f6; color: #333; font-size: 1.25em; border-bottom: 0.25em solid #333; } a:hover, span.hover { - background: #333; + background-color: #333; color: #fff; text-decoration: none; } span { - background: #ccc; + background-color: #ccc; } } .nav-menu--mysoc { a { color: $primary_text; - background: $primary; + background-color: $primary; } } #mysoc-logo { diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index a390a4131..7e56d31bd 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -148,7 +148,7 @@ h1 { a, span { display: block; color: $nav_fg; - background: none; + background-color: transparent; border-bottom: none; } } @@ -158,16 +158,16 @@ h1 { font-size: 0.9em; } a:hover { - background: $nav_fg_hover; + background-color: $nav_fg_hover; } a.report-a-problem-btn { color: $primary_text; - background: $primary; + background-color: $primary; padding:0.25em; margin:0.5em; @include border-radius(0.25em); &:hover { - background:$primary/1.1; + background-color:$primary/1.1; } } span { @@ -177,17 +177,17 @@ h1 { .nav-menu--mysoc { padding: 0em 0.5em; margin-#{$left}: 0.25em; - background: $primary; + background-color: $primary; @include border-radius(0 0 0.375em 0.375em); a { - background:none; + background-color: transparent; color: $primary_text; text-transform: uppercase; font-size: 0.6875em; padding: 1.3em 0.7em 1em; &:hover { color: #fff; - background: none; + background-color: transparent; } } } |