From 8a50cb4919c42cceadc50f04a56ffb75362d5085 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 14 Jul 2016 19:58:59 +0200 Subject: [PATCH] Attempt to fix #7 This requires more fine tuning and some more styling like container width. --- input.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/input.scss b/input.scss index efb491e..7e0c8c0 100644 --- a/input.scss +++ b/input.scss @@ -133,3 +133,24 @@ input[type="text"]:focus { } } +.dropdown { + label:hover ~ label { + display: block; + } + + input:checked + label { + display: block; + } + + input { + display: none; + margin: 5px; + width: 100%; + background: #fff; + } + + label { + display: none; + position: relative; + } +}