From 38828c9ece0dc3799fe526a7d75568d2af013696 Mon Sep 17 00:00:00 2001 From: Paolo Caruccio Date: Mon, 15 Jul 2013 00:27:49 +0200 Subject: [PATCH] customization of upload package input in admin interface --- .../admin/static/css/bootstrap_essentials.css | 46 +++++++++++++++++ applications/admin/views/layout.html | 50 ++++++++++++++----- 2 files changed, 83 insertions(+), 13 deletions(-) diff --git a/applications/admin/static/css/bootstrap_essentials.css b/applications/admin/static/css/bootstrap_essentials.css index 63438991..905cbe62 100644 --- a/applications/admin/static/css/bootstrap_essentials.css +++ b/applications/admin/static/css/bootstrap_essentials.css @@ -281,6 +281,52 @@ td.cbcentered>input, th.cbcentered>input { margin-top:-1px; } .languageform input.untranslated { background-color:#FC0; } +/*============================================================= +MASKED UPLOAD INPUT (NO BOOTSTRAP RELATED) +==============================================================*/ +#appupdate_file.masked { +margin: 0; +opacity: 0; +-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE 8 */ +filter: alpha(opacity=0); /* IE 7 */ +font-size: 100px; +position: absolute; +top: 0; +right: 0; +z-index: 410; +} + +#fileselect { +padding: 4px 6px; +border: 1px solid #ccc; +border-radius: 4px; +color: #555; +cursor: default; +position: relative; +z-index: 400; +font-size: 14px; +background-color: #fff; +margin-bottom: 10px; +overflow: hidden; +} + +#fileselect span { +position: absolute; +left: 6px; +top: 4px; +} + +.uploadbtn { +position: absolute; +top: 3px; +right: 3px; +} + +.txtPlaceholder { +font-style: italic; +color: #ccc; +} + /*============================================================= MEDIA QUERIES ==============================================================*/ diff --git a/applications/admin/views/layout.html b/applications/admin/views/layout.html index 5dca51c0..41e4a71b 100644 --- a/applications/admin/views/layout.html +++ b/applications/admin/views/layout.html @@ -17,7 +17,7 @@ - -
@@ -54,7 +54,7 @@
- - - - {{if request.function in ('index','site'):}} - - - - - {{pass}} + + + {{if request.function in ('index','site'):}} + + + + + {{pass}}