Skip to content

Commit

Permalink
update the file input to undo the damage of the generic input selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Sep 2, 2011
1 parent a4dc2c8 commit 62f8916
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
15 changes: 9 additions & 6 deletions bootstrap-1.2.0.css
Expand Up @@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Fri Sep 2 09:52:17 PDT 2011
* Date: Fri Sep 2 11:52:53 PDT 2011
*/
/* Reset.less
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
Expand Down Expand Up @@ -658,10 +658,10 @@ select,
.uneditable-input {
display: inline-block;
width: 210px;
height: 18px;
padding: 4px;
font-size: 13px;
line-height: 18px;
height: 18px;
color: #808080;
border: 1px solid #ccc;
-webkit-border-radius: 3px;
Expand All @@ -671,14 +671,17 @@ select,
/* mini reset for non-html5 file types */
input[type=checkbox], input[type=radio] {
width: auto;
padding: 0;
line-height: normal;
height: auto;
padding: 0;
margin: 3px 0;
line-height: normal;
border: none;
}
input[type=file] {
border: 0;
padding: 0;
background-color: #fff;
padding: initial;
border: initial;
line-height: initial;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
Expand Down
6 changes: 3 additions & 3 deletions bootstrap-1.2.0.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions lib/forms.less
Expand Up @@ -67,10 +67,10 @@ select,
.uneditable-input {
display: inline-block;
width: 210px;
height: @baseline;
padding: 4px;
font-size: 13px;
line-height: @baseline;
height: @baseline;
color: @gray;
border: 1px solid #ccc;
.border-radius(3px);
Expand All @@ -80,15 +80,18 @@ select,
input[type=checkbox],
input[type=radio] {
width: auto;
padding: 0;
line-height: normal;
height: auto;
padding: 0;
margin: 3px 0;
line-height: normal;
border: none;
}

input[type=file] {
border: 0;
padding: 0;
background-color: #fff;
padding: initial;
border: initial;
line-height: initial;
.box-shadow(none);
}

Expand Down

0 comments on commit 62f8916

Please sign in to comment.