diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-10-22 21:19:40 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-10-22 21:19:40 +0200 |
| commit | 8e6d5c3f2e7f289e12f8f7735abe2f4f92b4e372 (patch) | |
| tree | e41ef7a513dc4fdca79ab312ba5b27c3d77702d6 /événements.css | |
| parent | bc1dc6958441a8d0790cec648e333a874630ba8d (diff) | |
| download | quatuorbellefeuille.com-8e6d5c3f2e7f289e12f8f7735abe2f4f92b4e372.tar.xz | |
draft event details
radio buttons cannot be unset, so this might not be The Way.
take the plunge, learn some js, and use <input type="button">?
Diffstat (limited to 'événements.css')
| -rw-r--r-- | événements.css | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/événements.css b/événements.css index 8753eb3..6a2bd4a 100644 --- a/événements.css +++ b/événements.css @@ -30,7 +30,7 @@ filter: grayscale(0.8) brightness(0.4); } -.event p { +.event .summary { z-index: 1; opacity: 0; font-weight: bold; @@ -38,6 +38,26 @@ transition: 0.5s; } -.event:hover p { +.event:hover .summary { opacity: 1; } + +.event .details { + display: none; +} + +.event input { + width: 100%; + height: 100%; + position: absolute; + cursor: pointer; + opacity: 0; + z-index: 2; +} + +.event input:checked ~ .details { + display: block; + position: fixed; + top: 10em; + left: 0; +} |
