Skip to content

Commit

Permalink
Add clear classes for fields (#4706)
Browse files Browse the repository at this point in the history
Credit to @bennothommo. Added `clear-full`, `clear-left`, and `clear-right` CSS classes that can be used to apply clearfixes to form fields by adding them to the field's `cssClass` property
  • Loading branch information
Ben Thomson authored and Luke Towers committed Oct 20, 2019
1 parent fa93781 commit df65861
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/system/assets/ui/less/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@
clear: right;
}

&.clear-full {
clear: both;
}

&.clear-left {
clear: left;
}

&.clear-right {
clear: right;
}

&.layout-relative {
padding-bottom: 0;
}
Expand Down
3 changes: 3 additions & 0 deletions modules/system/assets/ui/storm.css
Original file line number Diff line number Diff line change
Expand Up @@ -4200,6 +4200,9 @@ html.cssanimations .cursor-loading-indicator.hide {display:none}
.form-group.span-full {width:100%;float:left}
.form-group.span-left {float:left;width:48.5%;clear:left}
.form-group.span-right {float:right;width:48.5%;clear:right}
.form-group.clear-full {clear:both}
.form-group.clear-left {clear:left}
.form-group.clear-right {clear:right}
.form-group.layout-relative {padding-bottom:0}
.form-group.checkbox-field {padding-bottom:5px}
.form-group.number-field >.form-control {text-align:right}
Expand Down

0 comments on commit df65861

Please sign in to comment.