Skip to content

Commit

Permalink
Merge pull request ColorlibHQ#143 from andrejsc/patch-1
Browse files Browse the repository at this point in the history
Fix .btn-file class
  • Loading branch information
almasaeed2010 committed Nov 3, 2014
2 parents 3eb5e01 + 5603363 commit d73834a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
20 changes: 12 additions & 8 deletions css/AdminLTE.css
Original file line number Diff line number Diff line change
Expand Up @@ -1952,18 +1952,22 @@ Component: timeline
}
.btn.btn-file {
position: relative;
width: 120px;
height: 35px;
overflow: hidden;
}
.btn.btn-file > input[type='file'] {
display: block !important;
width: 100% !important;
height: 35px !important;
opacity: 0 !important;
position: absolute;
top: -10px;
cursor: pointer;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 100px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: inherit;
display: block;
}
.btn.btn-app {
position: relative;
Expand Down
22 changes: 13 additions & 9 deletions less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,21 @@
// input file btn
&.btn-file {
position: relative;
width: 120px;
height: 35px;
overflow: hidden;
> input[type='file'] {
display: block !important;
width: 100% !important;
height: 35px !important;
opacity: 0 !important;
position: absolute;
top: -10px;
cursor: pointer;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 100px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: inherit;
display: block;
}
}

Expand Down Expand Up @@ -172,4 +176,4 @@
.border-radius(50%);
}

}
}

0 comments on commit d73834a

Please sign in to comment.