From 202a7876ec508fd70385497c1508b33aeb367c67 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 24 Feb 2017 16:40:56 -0800 Subject: nicer photo uploading experience --- public/css/style.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'public') diff --git a/public/css/style.css b/public/css/style.css index 7984fe5..4a2acff 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -203,6 +203,29 @@ body { } +/** + * nicer 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; + outline: none; + background: white; + cursor: inherit; + display: block; +} + .glyphicon-spin { -webkit-animation: spin 1000ms infinite linear; -- cgit v1.2.3