From 7d64caa1e8c1be5b9c8455d90fe780f7fc43f919 Mon Sep 17 00:00:00 2001 From: John Robertson Date: Tue, 6 Nov 2018 16:17:47 +0000 Subject: [PATCH] Fix printed whereabouts list styles --- src/lists.scss | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/lists.scss b/src/lists.scss index 14af7599e..e2a6a83fc 100644 --- a/src/lists.scss +++ b/src/lists.scss @@ -19,7 +19,7 @@ } @mixin hideText { - text-indent: 100%; + text-indent: -9999px; overflow: hidden; height: 0; width: 0; @@ -168,18 +168,24 @@ tbody > tr + td { } /* box */ - .whereaboutsCheckbox [type='checkbox'] + label::before { - @include checkboxMixin; - top: 1px; - left: 1px; - width: 8px; - height: 8px; - border: 1.3px solid; - } - /* tick */ - .whereaboutsCheckbox [type='checkbox'] + label::after { - @include tickMixin; - left: 1px; + .whereabouts-label { + @include hideText; + + /* box */ + &:before { + @include checkboxMixin; + top: 1px; + left: 1px; + width: 8px; + height: 8px; + border: 1.3px solid; + } + + /* tick */ + &:after { + @include tickMixin; + left: 1px; + } } .multiple-choice label {