Skip to content

Commit f1c2c32

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

assets/css/nav.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
.topnav {
5858
flex-direction: column; /* Stacks items vertically */
5959
align-items: flex-start; /* Aligns items to the left */
60-
padding: 5px 8px; /* Reduces padding for a thinner bar */
60+
padding: 4px 6px; /* Further reduced padding for a thinner bar */
61+
height: auto; /* Adjusts height automatically */
6162
}
6263

6364
.topnav #myLinks {
@@ -69,20 +70,20 @@
6970

7071
.topnav a.icon {
7172
display: block; /* Shows the hamburger icon on mobile */
72-
font-size: 15px; /* Slightly smaller font size */
73+
font-size: 14px; /* Slightly smaller font size */
7374
color: #808080;
74-
padding: 5px 8px; /* Further reduces padding for a thinner icon */
75+
padding: 4px 6px; /* Minimal padding for a thinner icon */
7576
cursor: pointer;
7677
margin-left: auto; /* Pushes the icon to the right */
77-
margin-right: 8px; /* Adds space from the right edge */
78+
margin-right: 6px; /* Adds space from the right edge */
7879
order: 1; /* Ensures the icon appears last in the flex container */
7980
}
8081

8182
.topnav a.normal {
8283
display: block;
8384
width: 100%;
8485
text-align: left; /* Aligns links to the left */
85-
padding: 6px 8px; /* Further reduces padding for slimmer links */
86+
padding: 5px 6px; /* Further reduced padding for slimmer links */
8687
background-color: #ffffff; /* White background for links */
8788
color: #808080; /* Grey text color for links */
8889
}

0 commit comments

Comments
 (0)