Skip to content

Commit d137d68

Browse files
authored
Update nav.css
1 parent 6348936 commit d137d68

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

assets/css/nav.css

Lines changed: 7 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: 0; /* Removes padding for a tighter fit */
62-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
61+
padding: 0; /* Removes all padding */
62+
margin: 0; /* Removes all margin */
63+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds a shadow below the bar */
6364
width: 100%; /* Ensures full width */
6465
}
6566

@@ -75,12 +76,13 @@
7576
font-size: 14px; /* Slightly smaller font size */
7677
background-color: #808080;
7778
color: #ffffff; /* White text for better contrast */
78-
padding: 6px; /* Minimal padding for a thinner icon */
79+
padding: 6px 10px; /* Minimal padding for a thinner icon */
80+
margin: 0; /* Removes all margins */
7981
cursor: pointer;
80-
margin: 0; /* Removes margin for alignment */
81-
order: -1; /* Ensures the icon appears first in the flex container */
8282
border-radius: 0; /* Removes rounded edges */
8383
align-self: flex-start; /* Aligns the icon to the left */
84+
width: 100%; /* Ensures full width for the icon */
85+
box-sizing: border-box; /* Includes padding in width calculation */
8486
}
8587

8688
.topnav a.normal {

0 commit comments

Comments
 (0)