summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Eskola2018-07-20 04:14:07 (GMT)
committerLauri Eskola2018-07-23 01:27:52 (GMT)
commitf139cc73b3f8ad559704dcd5f7b5aeec479ce315 (patch)
tree7ef0a3ac49bc2e3c1d4a5b3a6f9502741ee46a28
parent67e7c8cdf63dc1e27b77bd9d1d8f0b66b51238af (diff)
Issue #2982097 by anmolgoyal74, Anatoliy Vorobyov, KondratievaS, jhcastanod, jonathanshaw, lauriii, twfahey, pivica, ricksta: Margin on form-items in table rows (Seven)
(cherry picked from commit 25809ca86a6b8d26d4198e1a5e4531d94bd593c9)
-rw-r--r--core/themes/seven/css/components/form.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/themes/seven/css/components/form.css b/core/themes/seven/css/components/form.css
index d0991bb..44016ab 100644
--- a/core/themes/seven/css/components/form.css
+++ b/core/themes/seven/css/components/form.css
@@ -49,6 +49,20 @@ fieldset:not(.fieldgroup) > legend {
.form-item {
margin: 0.75em 0;
}
+/**
+ * When a table row has a single form item, prevent it from adding unnecessary
+ * extra spacing. If it has multiple form items, allow spacing between them,
+ * overriding Classy.
+ */
+tr.odd .form-item,
+tr.even .form-item {
+ margin-top: 0.75em;
+ margin-bottom: 0.75em;
+}
+td > .form-item:only-child {
+ margin-top: 0;
+ margin-bottom: 0;
+}
.form-type-checkbox {
padding: 0;
}