Skip to content

Commit

Permalink
feat(forms): labels positionning
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jan 9, 2020
1 parent 213fcef commit 5be3b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ label {
}

&.is-required::after {
margin-left: 6px;
margin-left: $label-margin-bottom;
font-weight: $font-weight-bold;
color: theme-color("primary");
content: "*";
Expand All @@ -27,7 +27,7 @@ label {
display: block;
width: 100%;
height: $input-height;
padding: $input-padding-y $input-padding-x;
padding: subtract($input-padding-y, 1px) $input-padding-x add($input-padding-y, 1px); // Boosted mod
font-family: $input-font-family;
@include font-size($input-font-size);
font-weight: $input-font-weight;
Expand Down
2 changes: 1 addition & 1 deletion scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ $btn-social-icon-size: $spacer !default;

// Forms

$label-margin-bottom: map-get($spacers, 2) !default;
$label-margin-bottom: .375rem !default;

$input-padding-y: $input-btn-padding-y !default;
$input-padding-x: map-get($spacers, 2) !default; // Boosted mod input padding x is not the same as buttons padding-x!
Expand Down

0 comments on commit 5be3b52

Please sign in to comment.