Issue #2982097 by anmolgoyal74, Anatoliy Vorobyov, KondratievaS, jhcastanod, jonathanshaw, lauriii, twfahey, pivica, ricksta: Margin on form-items in table rows (Seven)

8.7.x
Lauri Eskola 2018-07-20 07:14:07 +03:00
parent 92f3fe1abb
commit 25809ca86a
1 changed files with 14 additions and 0 deletions

View File

@ -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;
}