File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 55
55
56
56
/* Responsive design adjustments for mobile */
57
57
@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 */
61
68
}
62
69
63
70
.topnav # myLinks {
71
78
font-size : 14px ;
72
79
background-color : # ffffff ;
73
80
color : # 808080 ;
74
- padding : 6 px 5px ; /* Adjusted padding */
81
+ padding : 5px ; /* Adjusted padding */
75
82
margin : 0 ; /* Removes all margins */
83
+ margin-left : 10px ;
76
84
cursor : pointer;
77
85
border-radius : 0 ;
78
86
align-self : flex-start; /* Aligns the icon to the left */
82
90
display : block;
83
91
width : 100% ;
84
92
text-align : left;
85
- padding : 8 px 10 px ;
93
+ padding : 6 px 8 px ; /* Thinner padding */
86
94
background-color : # ffffff ;
87
95
color : # 808080 ;
88
96
}
You can’t perform that action at this time.
0 commit comments