Skip to content

Commit 188f1e6

Browse files
footer enhancement in css (#1351)
1 parent 26fe64d commit 188f1e6

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

styles/styles.css

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -712,23 +712,25 @@ body.dark-mode .navbar-link:hover {
712712
/* Soft shadow for a lifted effect */
713713
}
714714

715+
/* Footer Link Styling */
715716
.footer-link {
716-
display: block;
717-
color: #000;
718-
font-size: 0.900rem;
717+
display: block; /* Crucial: Allows padding, margins, and background */
718+
color: #000; /* Initial text color */
719+
font-size: 0.9rem;
719720
text-decoration: none;
720-
margin-bottom: 0.5rem;
721-
transition: color 0.3s ease;
722-
}
723-
724-
.footer-link:hover {
725-
color: #007bff;
726-
/* light blue on hover */
727-
text-decoration: underline;
728-
/* transform: translateX(5px); Slight shift to the right */
729-
/* color:#171717; */
730-
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
731-
/* Soft shadow effect */
721+
margin: 0 0.5rem; /* Horizontal spacing between links */
722+
padding: 5px 10px; /* Padding around the text within the link */
723+
border-radius: 5px; /* Rounded corners */
724+
transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
725+
}
726+
727+
/* Hover Effect */
728+
.footer-link:hover,
729+
.footer-link:focus {
730+
color: #fff; /* Text color on hover (or focus) */
731+
background-color: #0077b5; /* Background color on hover */
732+
transform: scale(1.05); /* Slightly enlarge the link */
733+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
732734
}
733735

734736
.footer-description h5 {

0 commit comments

Comments
 (0)