aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-06-21 09:52:48 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-06 13:04:13 +0100
commitcb6e7350bdc42e4d329ed1dcc05c074bca697384 (patch)
tree78cb16a816267e52269a043e3da2d52aa5940820 /web
parentf4dad7e4982d339f0bf50f647755a4e13a2768c4 (diff)
Reinstate missing margin before reporting form email input
`.form-box--logged-in-name` has no preceding heading, which meant the grey box background was colliding with whatever content happened to go before it. We add some margin, and while we’re at it, remove the extra margin-top on first-child labels (unnecessary, since .form-boxes have their own padding) and tidy up the syntax of the .form-box rule set. Fixes #1418.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/sass/_base.scss35
1 files changed, 25 insertions, 10 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 2c8c90c6f..754e9f75d 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -313,24 +313,32 @@ label{
margin: 0 -1em 0.25em;
background: #eee;
padding: 1em;
- > input[type=text], input[type=email] {
- margin-bottom:1em;
+
+ & > input[type=text],
+ & > input[type=email] {
+ margin-bottom: 1em;
+ }
+
+ & > label:first-child {
+ margin-top: 0;
}
+
.title {
- font-size:1.25em;
- margin:0.5em 0;
+ font-size: 1.25em;
+ margin: 0.5em 0;
}
+
h2 {
margin: 0 0 0.5em;
}
+
h5 {
- margin:0 0 1em;
- font: {
- size:1.125em;
- weight:normal;
- }
+ margin: 0 0 1em;
+ font-size: 1.125em;
+ font-weight: normal;
+
strong {
- font-size:2em;
+ font-size: 2em;
margin-#{$right}: 0.25em;
}
}
@@ -342,6 +350,13 @@ label{
margin: 0 0 0.25em;
padding: 1em;
}
+
+// When the user is logged in, we show a shorter form-box,
+// without a heading before it. So add some space before.
+#form-box--logged-in-name {
+ margin-top: 1.25em;
+}
+
// Prevent grey displaying oddly by giving it a width, and stop odd left margin issue
.ie7 .form-box {
width: 100%;