aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-03-18 10:47:44 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-03-18 10:47:44 +0000
commit10e795ec72538ef7bb50e299c631717353122031 (patch)
treeef31549cd0a60d338b151d80d5cde3c4e7f31114 /web/cobrands
parentd3d0ab6d5a753d1e5c8277db981f03823683ae1f (diff)
Make sure preview image doesn't hide error.
Diffstat (limited to 'web/cobrands')
-rw-r--r--web/cobrands/sass/_dropzone.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/cobrands/sass/_dropzone.scss b/web/cobrands/sass/_dropzone.scss
index 90e53584d..8c482d0cf 100644
--- a/web/cobrands/sass/_dropzone.scss
+++ b/web/cobrands/sass/_dropzone.scss
@@ -120,6 +120,11 @@ $dropzone-background-color--full: mix($dropzone-border-color--full, $dropzone-ba
}
}
+// If there was an error, we don't want to display the preview image on top of it.
+.dz-error .dz-image {
+ display: none;
+}
+
.dz-progress {
position: absolute;
top: 0;
@@ -148,6 +153,7 @@ $dropzone-background-color--full: mix($dropzone-border-color--full, $dropzone-ba
.dz-error-message {
color: #881111;
+ padding-top: 1.5em;
}
.dz-remove,