diff options
author | Steven Day <steve@mysociety.org> | 2015-08-21 13:01:12 +0100 |
---|---|---|
committer | Steven Day <steve@mysociety.org> | 2015-08-25 09:25:45 +0100 |
commit | 22c568ac9f49584afe3419f8307d784c0f320762 (patch) | |
tree | 23cbad8fdafdb935ce1998a9358fd21af227a868 /web | |
parent | ab19816daf0c07dfd654fae004f4a9b5a54bc4bb (diff) |
Fix new reports list styling on /my page
The reports list styling didn't take into account the difference
in margins on lists marked as 'full-width', and this issue was
being manually fixed in both Greenwich and Oxfordshire. This
changes the reports list styling so that these cobrand-specific
overrides aren't necessary.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/greenwich/layout.scss | 6 | ||||
-rw-r--r-- | web/cobrands/sass/_report_list.scss | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/web/cobrands/greenwich/layout.scss b/web/cobrands/greenwich/layout.scss index bde0eded5..2e0ce47f0 100644 --- a/web/cobrands/greenwich/layout.scss +++ b/web/cobrands/greenwich/layout.scss @@ -288,9 +288,3 @@ body.fullwidthpage, body.twothirdswidthpage { } } } - -// Override the default issue (report) list styling on the /my page, so that -// reports don't pop out the side of the sidebar -.issue-list-a.full-width { - margin-left: -1em; -} diff --git a/web/cobrands/sass/_report_list.scss b/web/cobrands/sass/_report_list.scss index b4e150d03..179a7983c 100644 --- a/web/cobrands/sass/_report_list.scss +++ b/web/cobrands/sass/_report_list.scss @@ -109,6 +109,13 @@ } } +// On the /my page, we use a .issue-list with an extra full-width modifier +// which removes the left padding. However, our new reports list still needs +// it: +.issue-list-a.full-width { + margin-left: -1em; +} + .big-green-banner { display: none; // hide the empty banner by default |