Skip to content

Commit e56634c

Browse files
authored
Merge pull request #1051 from heli0707/main
feat: Footer hover effect updated
2 parents f7944d4 + b79f138 commit e56634c

File tree

1 file changed

+87
-42
lines changed

1 file changed

+87
-42
lines changed

styles.css

+87-42
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,30 @@
232232
}
233233
*/
234234

235+
.footer__link {
236+
position: relative;
237+
text-decoration: none;
238+
color: black;
239+
font-size: 18px;
240+
}
241+
.footer__link::after {
242+
content: '';
243+
position: absolute;
244+
width: 0%;
245+
height: 2px;
246+
bottom: -5px;
247+
left: 0;
248+
background-color: black;
249+
transition: all 0.3s ease-in-out;
250+
}
251+
.footer__link:hover {
252+
color: red;
253+
}
254+
.footer__link:hover::after {
255+
width: 100%;
256+
background-color: red;
257+
}
258+
235259
/* new bubble end */
236260
#scrollPath {
237261
position: fixed;
@@ -1229,18 +1253,18 @@ body, html {
12291253
margin-left: 15px;
12301254
flex: 1;
12311255
display: flex;
1232-
max-width: 200px;
1256+
max-width: 220px;
12331257
text-align: left;
12341258
flex-direction: column;
12351259
}
12361260

1237-
.footer__text a {
1261+
/* .footer__text a {
12381262
margin-top: 5px;
12391263
color: white;
12401264
}
12411265
.footer__text a:hover {
12421266
color: red;
1243-
}
1267+
} */
12441268

12451269
.footer:hover {
12461270
background: linear-gradient(135deg, #654ea3, #eaafc8);
@@ -1256,15 +1280,15 @@ body, html {
12561280
color: var(--primary-color);
12571281
}
12581282

1259-
.footer__link {
1283+
/* .footer__link {
12601284
color: white;
1261-
margin-right: 15px; /* Adjust spacing between icons */
1262-
font-size: 1em; /* Initial font size */
1285+
margin-right: 15px;
1286+
font-size: 1em;
12631287
}
12641288
12651289
.footer__link:hover {
1266-
transform: scale(10); /* Scale up the icon on hover */
1267-
}
1290+
transform: scale(10);
1291+
} */
12681292

12691293
.footer__col p span {
12701294
font-weight: 600;
@@ -2121,15 +2145,15 @@ body {
21212145
padding: 10px 0;
21222146
}
21232147

2124-
.footer-head::before,
2148+
/* .footer-head::before,
21252149
.footer-head::after {
21262150
content: "";
21272151
position: absolute;
21282152
width: 0;
21292153
height: 2px;
21302154
background-color: red;
21312155
transition: width 0.2s ease-in;
2132-
}
2156+
} */
21332157

21342158
.footer-head::before {
21352159
top: 0;
@@ -2143,13 +2167,13 @@ body {
21432167
transform: translateX(-50%);
21442168
}
21452169

2146-
.footer-head:hover::before {
2147-
width: 100%;
2148-
}
2149-
.footer-head:hover::after {
2150-
width: 100%;
2151-
}
2152-
.navLinks .link a:active {
2170+
/* .footer-head:hover::before {
2171+
width: 100%;
2172+
}
2173+
.footer-head:hover::after {
2174+
width: 100%;
2175+
} */
2176+
.navLinks:active {
21532177
color: red;
21542178
}
21552179

@@ -2757,29 +2781,50 @@ button:hover {
27572781
}
27582782
}
27592783

2760-
@media screen and (max-width: 425px) {
2761-
.footer__container {
2762-
width: 100%;
2763-
display: flex;
2764-
flex-direction: row;
2765-
justify-content: space-between;
2766-
align-items: start;
2767-
}
2768-
2769-
.footer__col p {
2770-
font-size: 0.5rem;
2771-
font-weight: 100;
2772-
}
2773-
2774-
.footer__col h3 {
2775-
font-size: 0.7rem;
2776-
}
2777-
2778-
.footer__area h4 {
2779-
font-size: 0.7rem;
2780-
}
2781-
2782-
.footer__bar {
2783-
font-size: 0.6rem;
2784-
}
2784+
a {
2785+
position: relative;
2786+
text-decoration: none;
2787+
color: black;
2788+
font-size: 18px;
27852789
}
2790+
a::after {
2791+
content: '';
2792+
position: absolute;
2793+
width: 0%;
2794+
height: 2px;
2795+
bottom: -5px;
2796+
left: 0;
2797+
background-color: black;
2798+
transition: all 0.3s ease-in-out;
2799+
}
2800+
a:hover {
2801+
color: red;
2802+
}
2803+
a:hover::after {
2804+
width: 100%;
2805+
background-color: red;
2806+
}
2807+
/* Footer specific styles */
2808+
.footer__link {
2809+
position: relative;
2810+
text-decoration: none;
2811+
color: black;
2812+
font-size: 18px;
2813+
}
2814+
.footer__link::after {
2815+
content: '';
2816+
position: absolute;
2817+
width: 0%;
2818+
height: 2px;
2819+
bottom: -5px;
2820+
left: 0;
2821+
background-color: black;
2822+
transition: all 0.3s ease-in-out;
2823+
}
2824+
.footer__link:hover {
2825+
color: red;
2826+
}
2827+
.footer__link:hover::after {
2828+
width: 100%;
2829+
background-color: red;
2830+
}

0 commit comments

Comments
 (0)