Skip to content

Commit

Permalink
fix(component): forms
Browse files Browse the repository at this point in the history
message for input error
black label for all inputs
10 px spacing between label and input
no padding for vertical form labels
  • Loading branch information
ygatesoupe committed Jun 28, 2016
1 parent a31115b commit 41fa777
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs-orange/_includes/boostwatch/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ <h2 id="forms">Forms</h2>
<div class="form-group has-danger">
<label class="form-control-label" for="inputError">Input error</label>
<input class="form-control" id="inputError" type="text">
<span class="form-control-message">This is an error message</span>
</div>

<div class="form-group has-success">
Expand Down
34 changes: 34 additions & 0 deletions scss/_o-forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// Orange forms
//

.form-group {

&.row {
.form-control-label {
padding: .625rem;
}
}

.form-control-label {
padding: .625rem 0;
}

&.has-danger,
&.has-warning,
&.has-success {
.form-control-label {
color: #000;
}
}

&.has-danger {
.form-control-message {
color: $brand-danger;
padding: .625rem 0;
display: inline-block;
font-size: $font-size-sm;
font-weight: bold;
}
}
}
1 change: 1 addition & 0 deletions scss/bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

// boosted mod
@import "o-buttons";
@import "o-forms";
@import "o-helvetica";
@import "o-iconOrange";
@import "o-bullet_points";
Expand Down

0 comments on commit 41fa777

Please sign in to comment.