From 8f0800243e694832e1994a7b1a906b6a0e687324 Mon Sep 17 00:00:00 2001 From: Andrejs Cainikovs Date: Mon, 27 Oct 2014 20:58:28 +0100 Subject: [PATCH 1/2] Fix .btn-file class --- css/AdminLTE.css | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/css/AdminLTE.css b/css/AdminLTE.css index ab926489d..cbb95dc35 100755 --- a/css/AdminLTE.css +++ b/css/AdminLTE.css @@ -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; From 56033638723004f76c0d80cb7ae06cbbdfc846bc Mon Sep 17 00:00:00 2001 From: Andrejs Cainikovs Date: Mon, 3 Nov 2014 13:44:16 +0100 Subject: [PATCH 2/2] Fix .btn-file class in less as well --- less/buttons.less | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/less/buttons.less b/less/buttons.less index 78a542a43..7128fce4b 100755 --- a/less/buttons.less +++ b/less/buttons.less @@ -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; } } @@ -172,4 +176,4 @@ .border-radius(50%); } -} \ No newline at end of file +}