Skip to content

Commit

Permalink
Removed arbitrary width restrictions on field group children
Browse files Browse the repository at this point in the history
Let the fields handle their dimensions themselves
(for example the "from" and "to" date fields in the CMS pages search form)
  • Loading branch information
chillu committed Aug 27, 2012
1 parent 2e21574 commit 88dfde8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion admin/scss/_forms.scss
Expand Up @@ -443,7 +443,6 @@ form.small .field, .field.small {
.fieldgroup-field { .fieldgroup-field {
float: left; float: left;
display: block; display: block;
width: $grid-x * 23;
padding: $grid-y 0 0 $grid-x; padding: $grid-y 0 0 $grid-x;


&.odd { &.odd {
Expand All @@ -459,6 +458,12 @@ form.small .field, .field.small {
padding-bottom: 0; padding-bottom: 0;
} }
} }

&.stacked {
.fieldgroup-field {
float: none;
}
}
} }


.ss-toggle { .ss-toggle {
Expand Down
1 change: 0 additions & 1 deletion admin/scss/_style.scss
Expand Up @@ -738,7 +738,6 @@ body.cms {


.fieldgroup { .fieldgroup {
.fieldgroup-field { .fieldgroup-field {
width: auto;
padding: 0; padding: 0;


.field { .field {
Expand Down

0 comments on commit 88dfde8

Please sign in to comment.