Merge pull request #2286 from betagouv/fix-input-file-margin

Fix input[type=file] margin
This commit is contained in:
Pierre de La Morinerie 2018-07-23 15:33:46 +02:00 committed by GitHub
commit d90d15e856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,12 +100,27 @@
input[type=date], input[type=date],
input[type=number], input[type=number],
input[type=tel], input[type=tel],
input[type=file],
textarea, textarea,
select { select {
display: block; display: block;
margin-bottom: 2 * $default-padding;
&.small-margin {
margin-bottom: $default-padding / 2;
}
}
input[type=text]:not([data-address='true']),
input[type=email],
input[type=password],
input[type=date],
input[type=number],
input[type=tel],
textarea,
select {
border-radius: 4px; border-radius: 4px;
border: solid 1px $border-grey; border: solid 1px $border-grey;
margin-bottom: 2 * $default-padding;
padding: $default-padding; padding: $default-padding;
&:disabled { &:disabled {
@ -115,10 +130,6 @@
&.small { &.small {
padding: $default-padding / 2; padding: $default-padding / 2;
} }
&.small-margin {
margin-bottom: $default-padding / 2;
}
} }
input[type=text], input[type=text],