Skip to content

Commit 45d03cb

Browse files
authored
Update nav.css
1 parent c2c339f commit 45d03cb

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

assets/css/nav.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,16 @@
5555

5656
/* Responsive design adjustments for mobile */
5757
@media print, screen and (max-width: 960px) {
58-
.topnav {
59-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Adds shadow to the bar only on mobile */
60-
transform: translateX(-10px); /* Moves the bar 10px to the left on mobile */
58+
59+
60+
.topnav {
61+
flex-direction: column; /* Stacks items vertically */
62+
align-items: flex-start; /* Aligns items to the left */
63+
padding: 0; /* Removes all padding */
64+
margin: 0; /* Removes all margins */
65+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds shadow */
66+
transform: translateX(-20px); /* Moves the bar 10px to the left on mobile */
67+
width: 100%; /* Ensures full width */
6168
}
6269

6370
.topnav #myLinks {
@@ -71,8 +78,9 @@
7178
font-size: 14px;
7279
background-color: #ffffff;
7380
color: #808080;
74-
padding: 6px 5px; /* Adjusted padding */
81+
padding: 5px; /* Adjusted padding */
7582
margin: 0; /* Removes all margins */
83+
margin-left: 10px;
7684
cursor: pointer;
7785
border-radius: 0;
7886
align-self: flex-start; /* Aligns the icon to the left */
@@ -82,7 +90,7 @@
8290
display: block;
8391
width: 100%;
8492
text-align: left;
85-
padding: 8px 10px;
93+
padding: 6px 8px; /* Thinner padding */
8694
background-color: #ffffff;
8795
color: #808080;
8896
}

0 commit comments

Comments
 (0)