aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2018-06-18 14:24:19 +0100
committerStruan Donald <struan@exo.org.uk>2018-10-01 07:57:22 +0100
commitd52accf2008c57437b2c08fd9050854934714a13 (patch)
tree1dccc6d7240a1ae14a37f31123bc1ac08b323deb /web
parentc97fe5178efdfc0b1ed3db72fcbaa031a0c8d53e (diff)
Reduce specificity of #front_stats CSS
There is no need for #front_stats to always be nested inside of #front-howto.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/angus/base.scss2
-rw-r--r--web/cobrands/bristol/base.scss10
-rw-r--r--web/cobrands/buckinghamshire/base.scss10
-rw-r--r--web/cobrands/greenwich/base.scss2
-rw-r--r--web/cobrands/sass/_base.scss40
-rw-r--r--web/cobrands/sass/_layout.scss33
-rw-r--r--web/cobrands/warwickshire/base.scss2
-rw-r--r--web/cobrands/zurich/base.scss2
8 files changed, 48 insertions, 53 deletions
diff --git a/web/cobrands/angus/base.scss b/web/cobrands/angus/base.scss
index c8792fd51..0a9448cf1 100644
--- a/web/cobrands/angus/base.scss
+++ b/web/cobrands/angus/base.scss
@@ -26,7 +26,7 @@ label[for=pc] {
color: $nav_fg;
}
-#front-howto #front_stats {
+#front_stats {
color: $nav_fg;
}
diff --git a/web/cobrands/bristol/base.scss b/web/cobrands/bristol/base.scss
index 8f61d2a5b..96adf1001 100644
--- a/web/cobrands/bristol/base.scss
+++ b/web/cobrands/bristol/base.scss
@@ -78,13 +78,11 @@ body, .content {
}
// Make sure the numbers on the front page have the correct font weight
-#front-howto {
- #front_stats {
- color: white;
+#front_stats {
+ color: white;
- div {
- @extend %bold-font;
- }
+ div {
+ @extend %bold-font;
}
}
diff --git a/web/cobrands/buckinghamshire/base.scss b/web/cobrands/buckinghamshire/base.scss
index 50cc1a03c..389ca4506 100644
--- a/web/cobrands/buckinghamshire/base.scss
+++ b/web/cobrands/buckinghamshire/base.scss
@@ -47,13 +47,11 @@ body, .content {
}
// Make sure the numbers on the front page have the correct font weight
-#front-howto {
- #front_stats {
- color: white;
+#front_stats {
+ color: white;
- div {
- @extend %bold-font;
- }
+ div {
+ @extend %bold-font;
}
}
diff --git a/web/cobrands/greenwich/base.scss b/web/cobrands/greenwich/base.scss
index 2f2ebfa8c..48c5c642d 100644
--- a/web/cobrands/greenwich/base.scss
+++ b/web/cobrands/greenwich/base.scss
@@ -32,7 +32,7 @@ label[for=pc] {
color: $greenwich_dark_red;
}
-#front-howto #front_stats {
+#front_stats {
color: $nav_fg;
}
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 4880489bc..22fc70d0a 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -2037,29 +2037,27 @@ a#geolocate_link.loading, .btn--geolocate.loading {
padding-#{$right}: 1.5em;
}
-#front-howto {
- #front_stats {
- display:table;
- width:100%;
- color: $primary_text;
- background: $primary;
- font-family: $meta-font;
- div {
- display:table-cell;
- text-align:center;
- padding:1em;
- line-height:1.25em;
- font: {
- size:0.8125em;
- weight:bold;
- }
- }
- big {
- display:block;
- margin-bottom:0.5em;
- font-size:1.5385em;
+#front_stats {
+ display:table;
+ width:100%;
+ color: $primary_text;
+ background: $primary;
+ font-family: $meta-font;
+ div {
+ display:table-cell;
+ text-align:center;
+ padding:1em;
+ line-height:1.25em;
+ font: {
+ size:0.8125em;
+ weight:bold;
}
}
+ big {
+ display:block;
+ margin-bottom:0.5em;
+ font-size:1.5385em;
+ }
}
// Shown at bottom of homepage, among other places
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index 1092b5017..7a6f7ba02 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -936,22 +936,23 @@ textarea.form-error {
#front-howto {
border-#{$right}: 1em solid transparent;
- #front_stats {
- background:none;
- color: #222;
- border-top:0.25em solid $primary;
- padding-top:1em;
- big {
- color: $layout_front_stats_color;
- font-size: 2em;
- @media (min-width: 54em) {
- // 54em roughly halfway between 48em and 62em
- font-size: 2.5em;
- }
- @media (min-width: 62em) {
- // container max-width 60em + 2em side padding
- font-size: 3em;
- }
+}
+
+#front_stats {
+ background:none;
+ color: #222;
+ border-top:0.25em solid $primary;
+ padding-top:1em;
+ big {
+ color: $layout_front_stats_color;
+ font-size: 2em;
+ @media (min-width: 54em) {
+ // 54em roughly halfway between 48em and 62em
+ font-size: 2.5em;
+ }
+ @media (min-width: 62em) {
+ // container max-width 60em + 2em side padding
+ font-size: 3em;
}
}
}
diff --git a/web/cobrands/warwickshire/base.scss b/web/cobrands/warwickshire/base.scss
index bb4b3d08a..0533f81c4 100644
--- a/web/cobrands/warwickshire/base.scss
+++ b/web/cobrands/warwickshire/base.scss
@@ -14,7 +14,7 @@
}
}
-#front-howto #front_stats {
+#front_stats {
color: white;
}
diff --git a/web/cobrands/zurich/base.scss b/web/cobrands/zurich/base.scss
index f526a8f1e..7a1bcca71 100644
--- a/web/cobrands/zurich/base.scss
+++ b/web/cobrands/zurich/base.scss
@@ -59,7 +59,7 @@
height: 48px;
margin-left: -1em;
}
-#front-howto #front_stats,
+#front_stats,
#front-main #postcodeForm {
background-color: $mobile_header_blue;
}