From c252f1bf77503e93bf1af4e3bb37c72863b57784 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Thu, 28 Feb 2019 22:27:13 -0800 Subject: [PATCH] Drag and drop fileuploading (janky). --- assets/web/listing.html | 9 +++++++-- assets/web/static/styles.css | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/assets/web/listing.html b/assets/web/listing.html index 078df21..078e2b2 100644 --- a/assets/web/listing.html +++ b/assets/web/listing.html @@ -6,8 +6,13 @@ {{ $path }} | PiNas + - + + +
@@ -21,7 +26,7 @@
{{ if eq $prefix "files" }}
- +
diff --git a/assets/web/static/styles.css b/assets/web/static/styles.css index 9cfc154..7054f0a 100644 --- a/assets/web/static/styles.css +++ b/assets/web/static/styles.css @@ -5,6 +5,26 @@ body { background-color: #fefefe; } +.fileupload { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0,0,0,0.5); + z-index: 2; + cursor: pointer; + text-align: center; + color: white; + font-size: 70px; +} + +.hidden { + display: none; +} + h1, h2, h3 { padding: 0; margin: 0;