Skip to content

Commit

Permalink
Merge pull request #487 from alphagov/remove-float-form-group
Browse files Browse the repository at this point in the history
Remove float and width 100% from form group
  • Loading branch information
gemmaleigh committed Jun 14, 2017
2 parents 6f32364 + 7719da2 commit 7d07d9d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions assets/sass/elements/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ textarea {
// 2. Form wrappers
// ==========================================================================

// Form section is used to wrap .form-group and has twice its margin
.form-section {
.form-section,
.form-group {
@extend %contain-floats;
@include box-sizing(border-box);
}

float: left;
width: 100%;

// Form section is used to wrap .form-group and has twice its margin
.form-section {
margin-bottom: $gutter;

@include media(tablet) {
Expand All @@ -58,12 +58,6 @@ textarea {

// Form group is used to wrap label and input pairs
.form-group {
@extend %contain-floats;
@include box-sizing(border-box);

float: left;
width: 100%;

margin-bottom: $gutter-half;

@include media(tablet) {
Expand Down Expand Up @@ -108,9 +102,8 @@ textarea {

// Used for the 'or' in between block label options
.form-block {
@extend %contain-floats;
float: left;
width: 100%;
clear: left;

margin-top: -5px;
margin-bottom: 5px;
Expand Down

0 comments on commit 7d07d9d

Please sign in to comment.