Skip to content

Commit

Permalink
Allow using div.row styling outside forms
Browse files Browse the repository at this point in the history
Allow using a div.form in place of a real form. Will be used by the
relationship editor dialog (mainly to get the date range fieldset
style).
  • Loading branch information
mwiencek committed Sep 14, 2022
1 parent b184c1d commit 165f7c7
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions root/static/styles/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,28 @@ fieldset {

fieldset legend { margin-top: 0; }

form div.row {
clear: left;
margin: 6px 0;
}
form, div.form {
div.row {
clear: left;
margin: 6px 0;
}

form div.row label,
form div.row div.label,
form fieldset.row legend {
float: left;
text-align: right;
min-width: @form-label-width;
margin-right: @form-margin;
}
div.row label,
div.row div.label {
float: left;
text-align: right;
min-width: @form-label-width;
margin-right: @form-margin;
}

form div.row.no-label label {
float: none;
}
div.row.no-label label {
float: none;
}

form div.row button.icon {
margin-left: 2px;
vertical-align: text-top;
div.row button.icon {
margin-left: 2px;
vertical-align: text-top;
}
}

div.form-row-text-list, div.form-row-select-list {
Expand Down

0 comments on commit 165f7c7

Please sign in to comment.