Skip to content

Commit

Permalink
Fix file input styling
Browse files Browse the repository at this point in the history
The file input on the bulk upload page looked a bit weird because
it was inheriting the .form-control styling meant for text inputs.
Now it doesn’t. Also, line-height:1em fixes a visual bug on Mac.
  • Loading branch information
zarino authored and dracos committed Apr 28, 2017
1 parent fcd1d62 commit cecda8b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion static/sass/_accounts.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.account-form__field {
margin-bottom: 1em;

input {
input[type="text"],
input[type="email"],
input[type="password"] {
@extend .form-control;
}
}

input[type="file"] {
line-height: 1em;
}

.account-form__field--error {
color: $color_error_red;

Expand Down

0 comments on commit cecda8b

Please sign in to comment.