Skip to content

Commit

Permalink
Merge pull request #7167 from mozilla/6527-forms
Browse files Browse the repository at this point in the history
6527 Clean up _forms.scss
  • Loading branch information
fessehaye authored Aug 4, 2021
2 parents 3794bc8 + b72315d commit 4644ecd
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 33 deletions.
10 changes: 10 additions & 0 deletions source/js/components/join/join.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,19 @@
.form-control {
padding-right: map-get($glyph-container, "margin-x") * 2 +
map-get($glyph-container, "width");
border: 1px solid $danger;

@at-root .dark-theme & {
border-width: 2px;
border-color: $dark-theme-danger;
}
}

.form-control-feedback {
color: $danger;

@at-root .dark-theme & {
color: $dark-theme-danger;
}
}

Expand Down
26 changes: 26 additions & 0 deletions source/js/components/petition/petition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,29 @@
}
}
}

.petition-form {
.form-check {
.form-control-feedback {
margin-left: -$form-check-input-gutter;
}
}

.has-danger {
.form-control-feedback {
color: $danger;

@at-root .dark-theme & {
color: $dark-theme-danger;
}
}

.form-control {
border: 1px solid $danger;

@at-root .dark-theme & {
border-color: $dark-theme-danger;
}
}
}
}
4 changes: 0 additions & 4 deletions source/sass/mofo-bootstrap/mofo-bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@

// Utility classes
@import "../../../node_modules/bootstrap/scss/utilities";

// Bootstrap overrides

@import "./overrides/forms";
29 changes: 0 additions & 29 deletions source/sass/mofo-bootstrap/overrides/_forms.scss

This file was deleted.

4 changes: 4 additions & 0 deletions source/sass/views/style-guide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
.color-code {
color: $gray-60;
}

.form-control-lg {
height: auto;
}

0 comments on commit 4644ecd

Please sign in to comment.