summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-30 11:51:59 +0200
committerSimon Rettberg2015-09-30 11:51:59 +0200
commitd265bcd8988ae9e83b84b375a58e074e5ffa5656 (patch)
tree78293475298bb002db86a7637c239975dd034db4 /style
parent[diskstat] Fix i18n placeholder name; update translations (diff)
downloadslx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.tar.gz
slx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.tar.xz
slx-admin-d265bcd8988ae9e83b84b375a58e074e5ffa5656.zip
Make file input look more consistent across browsers
Diffstat (limited to 'style')
-rw-r--r--style/default.css26
1 files changed, 26 insertions, 0 deletions
diff --git a/style/default.css b/style/default.css
index 69a12699..9e430b73 100644
--- a/style/default.css
+++ b/style/default.css
@@ -187,3 +187,29 @@ body {
.slx-strike {
text-decoration: line-through;
}
+
+/* File upload */
+
+.btn-file {
+ position: relative;
+ overflow: hidden;
+}
+.btn-file input[type=file] {
+ position: absolute;
+ top: 0;
+ right: 0;
+ min-width: 100%;
+ min-height: 100%;
+ font-size: 100px;
+ text-align: right;
+ filter: alpha(opacity=0);
+ opacity: 0;
+ background: red;
+ cursor: inherit;
+ display: block;
+ cursor: pointer;
+}
+input[readonly] {
+ background-color: white !important;
+ cursor: text !important;
+} \ No newline at end of file