Skip to content

Commit e5d66f4

Browse files
fix: improve footer responsiveness and styling
1 parent a3d593c commit e5d66f4

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

src/theme/Footer/Layout/enhanced-footer.css

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,19 +1126,28 @@ html[data-theme="light"] .enhanced-footer.light-theme {
11261126
font-weight: 400;
11271127
backdrop-filter: none;
11281128
transition: all 0.3s ease;
1129+
box-shadow: 0 2px 4px rgb(0 0 0 / 31%);
11291130
}
11301131

11311132
.newsletter-input:focus {
11321133
outline: none;
1133-
border-color: #111111;
1134+
border-color: #9393933b;
11341135
background: rgba(255, 255, 255, 0.08);
1135-
box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
1136+
box-shadow: 0 0 0 2px rgb(17 17 17 / 50%);
1137+
border-radius: 10px;
1138+
transition: all 0.3s ease;
11361139
}
11371140

11381141
.newsletter-input::placeholder {
11391142
color: #6b7280;
11401143
}
11411144

1145+
.newsletter-input:hover {
1146+
border-color: #6b72807a;
1147+
box-shadow: 0 4px 10px rgb(0 0 0 / 20%);
1148+
transform: translateY(-1px);
1149+
}
1150+
11421151
.newsletter-button {
11431152
padding: 16px 28px;
11441153
/* slightly larger for touch */
@@ -1601,12 +1610,11 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16011610
grid-template-columns: repeat(2, 1fr);
16021611
gap: 32px;
16031612
margin-top: 30px;
1604-
margin-bottom: 36px;
1613+
margin-bottom: 36px;}
16051614
/* extra separation from footer links */
16061615

16071616
.newsletter-column {
1608-
grid-column: span 2;
1609-
}
1617+
grid-column: span 1;
16101618
}
16111619

16121620
@media (max-width: 1024px) {
@@ -1621,12 +1629,12 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16211629

16221630
.footer-links-grid {
16231631
grid-template-columns: repeat(2, 1fr);
1624-
gap: 28px;
1632+
gap: 24px;
16251633
}
16261634

16271635
.newsletter-column {
1628-
grid-column: span 2;
1629-
margin-top: 20px;
1636+
grid-column: span 1;
1637+
margin-top: 0;
16301638
}
16311639
}
16321640

@@ -1672,8 +1680,8 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16721680
}
16731681

16741682
.footer-links-grid {
1675-
grid-template-columns: 1fr;
1676-
gap: 24px;
1683+
grid-template-columns: 1fr !important;
1684+
width: 100%;
16771685
}
16781686

16791687
.footer-column {
@@ -1685,6 +1693,9 @@ html[data-theme="light"] .enhanced-footer.light-theme {
16851693
transition: all 0.3s ease;
16861694
box-shadow: 0 8px 25px rgb(0 0 0 / 17%);
16871695
overflow: visible;
1696+
width: 100%;
1697+
max-width: 100%;
1698+
box-sizing: border-box;
16881699
}
16891700

16901701
.footer-column:hover {
@@ -1803,12 +1814,15 @@ html[data-theme="light"] .enhanced-footer.light-theme {
18031814
padding: 18px 24px;
18041815
/* larger CTA for mobile */
18051816
font-size: 15px;
1817+
width: 100%;
1818+
box-sizing: border-box;
18061819
}
18071820

18081821
.newsletter-input {
18091822
padding: 16px 18px;
18101823
font-size: 15px;
18111824
width: 100%;
1825+
box-sizing: border-box;
18121826
}
18131827
}
18141828

0 commit comments

Comments
 (0)