aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Marshall <[email protected]>2017-01-03 19:44:44 -0800
committerMark Otto <[email protected]>2017-01-03 19:44:44 -0800
commit1b194c06607f6cc3d087d25d6d49e1698771f3a1 (patch)
treea780335d029d2fd4731dd5381a07428932a9f76e
parent0ffd369afdfa064b3a56078ac4351aae01a8c6cf (diff)
downloadbootstrap-1b194c06607f6cc3d087d25d6d49e1698771f3a1.tar.xz
bootstrap-1b194c06607f6cc3d087d25d6d49e1698771f3a1.zip
Custom Forms: Allow Chrome/Firefox feature that lets the user drag and drop into file inputs (#20033)
* Restored functionality of dragging files into .custom-file inputs. * Replaced padding with height on .custom-file-input
-rw-r--r--scss/_custom-forms.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index 8c2ce328f..ef2aab354 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -206,6 +206,7 @@
.custom-file-input {
min-width: $custom-file-width;
max-width: 100%;
+ height: $custom-file-height;
margin: 0;
filter: alpha(opacity = 0);
opacity: 0;
@@ -225,6 +226,7 @@
padding: $custom-file-padding-x $custom-file-padding-y;
line-height: $custom-file-line-height;
color: $custom-file-color;
+ pointer-events: none;
user-select: none;
background-color: $custom-file-bg;
border: $custom-file-border-width solid $custom-file-border-color;