Skip to content

Commit ca0c44f

Browse files
fixing the social icons overlapping in mobile view (#1446)
1 parent 1086938 commit ca0c44f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

styles/styles.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,61 @@ body.dark-mode .side-icons .icon-content a:hover {
10041004
/* Slightly stronger shadow in dark mode */
10051005
}
10061006

1007+
/* Fix overlapping and adjust side icon layout for mobile */
1008+
@media (max-width: 1024px) {
1009+
.side-icons {
1010+
right: 5px;
1011+
top: 15%; /* moved further up (was 18%) */
1012+
gap: 6px;
1013+
z-index: 9;
1014+
}
1015+
1016+
.side-icons .icon-content a {
1017+
width: 38px;
1018+
height: 38px;
1019+
}
1020+
1021+
.side-icons .icon-content a i {
1022+
font-size: 18px;
1023+
}
1024+
}
1025+
1026+
/* For smaller mobile screens (portrait view) */
1027+
@media (max-width: 768px) {
1028+
.side-icons {
1029+
right: 2px;
1030+
top: 18%; /* moved up from 22% */
1031+
gap: 5px;
1032+
}
1033+
1034+
.side-icons .icon-content a {
1035+
width: 32px;
1036+
height: 32px;
1037+
}
1038+
1039+
.side-icons .icon-content a i {
1040+
font-size: 16px;
1041+
}
1042+
}
1043+
1044+
/* For very small devices (under 480px width) */
1045+
@media (max-width: 480px) {
1046+
.side-icons {
1047+
right: 0;
1048+
top: 22%; /* moved up from 27% */
1049+
gap: 4px;
1050+
}
1051+
1052+
.side-icons .icon-content a {
1053+
width: 28px;
1054+
height: 28px;
1055+
}
1056+
1057+
.side-icons .icon-content a i {
1058+
font-size: 14px;
1059+
}
1060+
}
1061+
10071062
/* Base styles */
10081063
body {
10091064
font-family: Arial, sans-serif;

0 commit comments

Comments
 (0)