diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-02-24 16:40:56 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-02-24 16:40:56 -0800 |
commit | 202a7876ec508fd70385497c1508b33aeb367c67 (patch) | |
tree | 43d4b47bdded27b9f7d8a591462ac61e0d0562e5 /public/css | |
parent | 4f1c21523f5d1ef511b0b23d19674d761f932694 (diff) |
nicer photo uploading experience
Diffstat (limited to 'public/css')
-rw-r--r-- | public/css/style.css | 23 |
1 files changed, 23 insertions, 0 deletions
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; |