aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-09-14 12:50:16 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-09-20 15:43:20 +0100
commit997d0b9a2c9b70ca4c3a89decb813d4c53550b9c (patch)
treea356bef9a7ab665da7951e518105045afb9e1815
parentb22bcd1b07fa6806a845c6d19203860e65c16e82 (diff)
Better vertical rhythm for labels and form inputs
-rw-r--r--web/cobrands/sass/_base.scss5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index eb7708218..b0a9ac2ab 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -252,13 +252,15 @@ textarea {
label{
display: block;
margin-top: 1.25em;
- margin-bottom: 0.25em;
+ margin-bottom: 0.5em;
font-weight: bold;
+
&.inline {
display: inline;
padding: flip(0 2em 0 1em, 0 1em 0 2em);
font-weight: normal;
}
+
&.inline-text {
display: inline;
font-weight: normal;
@@ -272,6 +274,7 @@ label{
@include border-radius(4px);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
font-family: inherit; // eg: stop Firefox and IE10-11 using Courier in textareas
+ margin-bottom: 0.5em;
&[readonly] {
box-shadow: none;