Skip to content

Commit 7294a79

Browse files
authored
Update nav.css
1 parent 0897956 commit 7294a79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assets/css/nav.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Fixed top navigation bar */
1+
/* Fixed top navigation bar */
22
.topnav {
33
background-color: #ffffff;
44
overflow: hidden;
@@ -9,7 +9,7 @@
99
display: flex;
1010
align-items: center;
1111
justify-content: space-between;
12-
padding: 0; /* 10px;*/
12+
padding: 10px 0;
1313
box-sizing: border-box;
1414
}
1515

@@ -56,7 +56,8 @@
5656
/* Responsive design adjustments for mobile */
5757
@media print, screen and (max-width: 960px) {
5858
.topnav {
59-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds shadow to the bar only on mobile */
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 */
6061
}
6162

6263
.topnav #myLinks {

0 commit comments

Comments
 (0)