diff --git a/docs/javascript.html b/docs/javascript.html index 7a30846c..03b5bb69 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -422,21 +422,17 @@ $('.inputmask').inputmask({

File input widgets

-
-
-
- Select fileChange - Remove -
+
+
+ Select fileChange + Remove
{% highlight html %} -
-
-
- Select fileChange - Remove -
+
+
+ Select fileChange + Remove
{% endhighlight %} diff --git a/less/fileinput.less b/less/fileinput.less index adf62d70..ad7ce467 100644 --- a/less/fileinput.less +++ b/less/fileinput.less @@ -64,16 +64,22 @@ vertical-align: bottom; } +.fileinput.input-group { + display: table; +} + // Not 100% correct, but helps in typical use case +.fileinput-new.input-group .btn-file, .fileinput-new .input-group .btn-file { border-radius: 0 @border-radius-base @border-radius-base 0; -} -.fileinput-new .input-group .btn-file.btn-xs, -.fileinput-new .input-group .btn-file.btn-sm { - border-radius: 0 @border-radius-small @border-radius-small 0; -} -.fileinput-new .input-group .btn-file.btn-lg { - border-radius: 0 @border-radius-large @border-radius-large 0; + + &.btn-xs, + &.btn-sm { + border-radius: 0 @border-radius-small @border-radius-small 0; + } + &.btn-lg { + border-radius: 0 @border-radius-large @border-radius-large 0; + } } .form-group.has-warning .fileinput {