From 12830dc1161f47110c01d869b77aa155773179e1 Mon Sep 17 00:00:00 2001 From: yukitya-1811 Date: Sat, 22 Jun 2024 16:46:48 +0530 Subject: [PATCH] Add hover styling to images --- recipify/recipify/templates/gallery.html | 2 +- recipify/static/css/gallery.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/recipify/recipify/templates/gallery.html b/recipify/recipify/templates/gallery.html index 80ced54..1044696 100644 --- a/recipify/recipify/templates/gallery.html +++ b/recipify/recipify/templates/gallery.html @@ -99,7 +99,7 @@

- Gallery image + Gallery image {% endfor %} diff --git a/recipify/static/css/gallery.css b/recipify/static/css/gallery.css index ee5abf8..070d3f0 100644 --- a/recipify/static/css/gallery.css +++ b/recipify/static/css/gallery.css @@ -21,3 +21,10 @@ max-height: 100%; } +.hover-highlight { + transition: box-shadow 0.3s ease-in-out; /* Smooth transition */ +} + +.hover-highlight:hover { + opacity: 75%; +}