an eink camera running on an rpi zero 2 w

bug: only expand if hovering over the image

dunkirk.sh 3554918d 2afd7725

verified
Changed files
+2 -2
src
+2 -2
src/camera_server.py
···
.photo {{ border: 1px solid #ddd; padding: 5px; flex: 0 1 200px; position: relative; display: flex; flex-direction: column }}
.photo img {{ width: 100%; height: 100%; object-fit: cover; }}
.photo .colored-img {{ position: absolute; top: 5px; left: 5px; opacity: 0; pointer-events: none; width: calc(100% - 10px); height: calc(100% - 10px); }}
-
.photo:hover .dithered-img {{ opacity: 0; }}
-
.photo:hover .colored-img {{ opacity: 1; }}
+
.dithered-img:hover {{ opacity: 0; }}
+
.dithered-img:hover + .colored-img {{ opacity: 1; }}
.photo .actions {{ text-align: center; margin-top: 5px; }}
.photo .actions a {{ margin: 0 5px; }}
@keyframes fadeOut {{ from {{ opacity: 1; }} to {{ opacity: 0; }} }}