From 6e9413de31bdf70337341117acb6d00c0d3943d8 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Thu, 12 Dec 2024 14:02:20 +0000 Subject: [PATCH 1/2] Add basic formatting to new regmem data --- www/docs/style/sass/pages/_mp.scss | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/www/docs/style/sass/pages/_mp.scss b/www/docs/style/sass/pages/_mp.scss index fd5adf29b6..afbe9e4704 100644 --- a/www/docs/style/sass/pages/_mp.scss +++ b/www/docs/style/sass/pages/_mp.scss @@ -481,7 +481,6 @@ .register { .regmemcategory { - border-top: 1px solid $borders; font-weight: $weight_semibold; margin-top: em-calc(16); margin-bottom: em-calc(8); @@ -790,4 +789,26 @@ a[href^="https://www.publicwhip.org"] { .postcode-mp-image-wrapper { display: block; margin-top: 5px; +} + +.interest-summary { + font-weight: bold; + margin-top: 1em; + margin-bottom: 1em; +} + +.interest-child-items > div.interest-item > p.interest-summary { + font-weight: normal; + text-decoration: none; +} + +.interest-details-list { + font-size: 0.8em; +} + +.child-item-header { + text-decoration: underline; +} +.regmemitem > .interest-item { + border-top: 1px solid $borders; } \ No newline at end of file From 503782cf0d6049a5cdd4ed4a129bc177d97bc3e4 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Thu, 12 Dec 2024 16:35:03 +0000 Subject: [PATCH 2/2] Revise to use header structure --- www/docs/style/sass/pages/_mp.scss | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/www/docs/style/sass/pages/_mp.scss b/www/docs/style/sass/pages/_mp.scss index afbe9e4704..058e60bfc3 100644 --- a/www/docs/style/sass/pages/_mp.scss +++ b/www/docs/style/sass/pages/_mp.scss @@ -791,15 +791,18 @@ a[href^="https://www.publicwhip.org"] { margin-top: 5px; } -.interest-summary { +h4.interest-summary { font-weight: bold; + font-size: 1.3em; margin-top: 1em; margin-bottom: 1em; } -.interest-child-items > div.interest-item > p.interest-summary { - font-weight: normal; - text-decoration: none; +h6.interest-summary { + font-weight: bold; + font-size: 1em; + margin-top: 1em; + margin-bottom: 1em; } .interest-details-list { @@ -807,7 +810,10 @@ a[href^="https://www.publicwhip.org"] { } .child-item-header { - text-decoration: underline; + font-weight: bold; + font-size: 1.2em; + margin-top: 1em; + margin-bottom: 1em; } .regmemitem > .interest-item { border-top: 1px solid $borders;