From 3f338d45cac42a68d6a9a17f497878ffcaf0ec54 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 5 Oct 2020 13:47:21 +0100 Subject: [PATCH] Rename CSS classes for consistency This prefixes everything to do with areas/the map with `area-list`, so from looking at one element you know which `.scss` file will contain the relevant code. --- app/assets/stylesheets/components/area-list.scss | 8 +++++--- app/templates/views/broadcast/macros/area-map.html | 8 ++++---- .../views/broadcast/partials/area-map-javascripts.html | 4 ++-- app/templates/views/broadcast/view-message.html | 2 +- tests/app/main/views/test_broadcast.py | 4 ++-- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/assets/stylesheets/components/area-list.scss b/app/assets/stylesheets/components/area-list.scss index f7df53b55..1397d6b06 100644 --- a/app/assets/stylesheets/components/area-list.scss +++ b/app/assets/stylesheets/components/area-list.scss @@ -78,12 +78,12 @@ } -#map { +#area-list-map { z-index: 50; margin-bottom: govuk-spacing(4); } -.area-key { +.area-list-key { display: inline-block; position: relative; @@ -133,7 +133,8 @@ } -.map-details { +.area-list-map-details { + .govuk-details__summary { display: block; padding-top: govuk-spacing(1); @@ -147,4 +148,5 @@ border-bottom: 1px solid $border-colour; margin-top: -1px; } + } diff --git a/app/templates/views/broadcast/macros/area-map.html b/app/templates/views/broadcast/macros/area-map.html index 32b0ce8ee..196f4c447 100644 --- a/app/templates/views/broadcast/macros/area-map.html +++ b/app/templates/views/broadcast/macros/area-map.html @@ -1,7 +1,7 @@ {% macro map(broadcast_message) %} -
+