Skip to content

Commit b7b2127

Browse files
authored
Update nav.css
1 parent b0b9142 commit b7b2127

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

assets/css/nav.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454

5555
/* Responsive design adjustments for mobile */
5656
@media print, screen and (max-width: 960px) {
57+
.topnav {
58+
flex-direction: column; /* Stacks items vertically */
59+
align-items: flex-start; /* Aligns items to the left */
60+
padding: 5px 8px; /* Reduces padding for a thinner bar */
61+
}
62+
5763
.topnav #myLinks {
5864
display: none; /* Hidden by default on mobile */
5965
flex-direction: column; /* Stacks links vertically */
@@ -63,20 +69,20 @@
6369

6470
.topnav a.icon {
6571
display: block; /* Shows the hamburger icon on mobile */
66-
font-size: 16px;
72+
font-size: 15px; /* Slightly smaller font size */
6773
color: #808080;
68-
padding: 6px 10px; /* Adds padding on the right */
74+
padding: 5px 8px; /* Further reduces padding for a thinner icon */
6975
cursor: pointer;
7076
margin-left: auto; /* Pushes the icon to the right */
71-
margin-right: 10px; /* Adds space from the right edge */
77+
margin-right: 8px; /* Adds space from the right edge */
7278
order: 1; /* Ensures the icon appears last in the flex container */
7379
}
7480

7581
.topnav a.normal {
7682
display: block;
7783
width: 100%;
7884
text-align: left; /* Aligns links to the left */
79-
padding: 8px 10px;
85+
padding: 6px 8px; /* Further reduces padding for slimmer links */
8086
background-color: #ffffff; /* White background for links */
8187
color: #808080; /* Grey text color for links */
8288
}

0 commit comments

Comments
 (0)