From ce3d2a5d1a7e80f1f5ced0efdd3a0091f53a61bd Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 3 Oct 2024 11:09:39 +0300 Subject: [PATCH] Allow click-to-upload --- .nojekyll | 0 index.html | 33 +++++++++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html index 7b1d5f7..b034e28 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@ font-size: 3em; cursor: pointer; } + .lisalappu:hover { background: #f0f0f0; } @@ -57,6 +58,10 @@ body { margin: unset; } + + input { + display: none; + } } .lappu { @@ -70,6 +75,7 @@ } .lappu figure { + position: relative; user-select: none; width: 30%; aspect-ratio: 1/1; @@ -78,6 +84,14 @@ overflow: hidden; } + .lappu figure input { + position: absolute; + width: 100%; + height: 100%; + opacity: 0; + cursor: pointer; + } + .lappu .username { font-size: 16px; font-weight: 400; @@ -91,10 +105,7 @@ }