Skip to content

Commit 6348936

Browse files
authored
Update nav.css
1 parent 29399bc commit 6348936

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
@@ -58,8 +58,9 @@
5858
.topnav {
5959
flex-direction: column; /* Stacks items vertically */
6060
align-items: flex-start; /* Aligns items to the left */
61-
padding: 8px 10px; /* Thinner padding for a slimmer bar */
61+
padding: 0; /* Removes padding for a tighter fit */
6262
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
63+
width: 100%; /* Ensures full width */
6364
}
6465

6566
.topnav #myLinks {
@@ -74,12 +75,12 @@
7475
font-size: 14px; /* Slightly smaller font size */
7576
background-color: #808080;
7677
color: #ffffff; /* White text for better contrast */
77-
padding: 4px 6px; /* Minimal padding for a thinner icon */
78+
padding: 6px; /* Minimal padding for a thinner icon */
7879
cursor: pointer;
79-
margin-right: auto; /* Pushes the icon to the left */
80-
margin-left: 12px; /* Adds space from the left edge */
80+
margin: 0; /* Removes margin for alignment */
8181
order: -1; /* Ensures the icon appears first in the flex container */
82-
border-radius: 4px; /* Optional: Rounds the edges for a better look */
82+
border-radius: 0; /* Removes rounded edges */
83+
align-self: flex-start; /* Aligns the icon to the left */
8384
}
8485

8586
.topnav a.normal {

0 commit comments

Comments
 (0)