From 49e4fa78b1238661e571042bdf10209d2c6c7a83 Mon Sep 17 00:00:00 2001 From: SuryaAbyss <168889929+SuryaAbyss@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:26:17 +0530 Subject: [PATCH] Update style.css Background Color Change: The background color changes to a light shade on hover, giving a visual cue. Box Shadow: A shadow is added to create a floating effect when hovered. Scale Effect: The card slightly enlarges, making it more interactive. --- style.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/style.css b/style.css index b113e7b..a36a86a 100644 --- a/style.css +++ b/style.css @@ -165,12 +165,30 @@ } /* Hover effect for event items */ +/* Individual event item */ +.event-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 20px; /* Increased padding for more space */ + border: 2px solid var(--roman-silver); /* Border matching roman silver */ + border-radius: 12px; /* Slightly more rounded corners */ + background-color: var(--roman-silver_10); /* Light transparent background */ + color: var(--roman-silver); /* Text color using roman silver */ + transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */ + font-size: 1.4rem; /* Bigger font size for better readability */ +} + +/* Hover effect on event items */ .event-item:hover { transform: scale(1.03); /* Slightly enlarges the event item on hover */ cursor: pointer; + background-color: rgba(0, 0, 0, 0.05); /* Light background change on hover */ + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Adds shadow on hover */ } + #search-results{ position:absolute; left: -100px;