@@ -948,8 +948,32 @@ body {
948
948
transition : all 0.6s ;
949
949
transform : translateX (100% );
950
950
opacity : 0 ;
951
+ overflow-y : auto; /* Allow vertical scrolling only */
952
+ overflow-x : hidden; /* Hide horizontal overflow */
951
953
}
952
954
955
+ /* -----------Scrollbar for menu---------------- */
956
+ /* For WebKit browsers (Chrome, Safari) */
957
+ .menuCont .optCont ::-webkit-scrollbar {
958
+ width : 2px ; /* Width of the scrollbar */
959
+ }
960
+ /* Track */
961
+ .menuCont .optCont ::-webkit-scrollbar-track {
962
+ background : transparent; /* Background of the track */
963
+ }
964
+ /* Handle */
965
+ .menuCont .optCont ::-webkit-scrollbar-thumb {
966
+ background : var (--darkColor-blue ); /* Color of the scrollbar handle */
967
+ border-radius : 2px ; /* Rounded corners for the scrollbar handle */
968
+ }
969
+ /* For Firefox */
970
+ .menuCont .optCont {
971
+ scrollbar-width : thin; /* Makes the scrollbar thin */
972
+ scrollbar-color : var (--darkColor-blue ) transparent; /* Handle color and track color */
973
+ }
974
+ /* -------------End of Scrollbar for menu-------------- */
975
+
976
+
953
977
.menuBar .optCont .tilesCont {
954
978
width : 100% ;
955
979
height : 50px ;
@@ -1225,7 +1249,7 @@ input:checked+.toggle:before {
1225
1249
1226
1250
/* ---------------------- */
1227
1251
# menuCloseButton {
1228
- position : absolute;
1252
+ /* position: absolute; */
1229
1253
bottom : var (--gap );
1230
1254
width : 42px ;
1231
1255
max-width : 100% ; /* Set max-width to fit-content initially */
@@ -1241,6 +1265,7 @@ input:checked+.toggle:before {
1241
1265
overflow : hidden; /* Hide the overflow when content expands */
1242
1266
transition : all 0.4s ; /* Transition the max-width property */
1243
1267
cursor : pointer;
1268
+ margin-top : 69px ;
1244
1269
}
1245
1270
1246
1271
# menuCloseButton : hover {
@@ -1265,4 +1290,4 @@ input:checked+.toggle:before {
1265
1290
# menuCloseButton .icon : hover {
1266
1291
transition : all 0.2s ;
1267
1292
transform : rotate (90deg );
1268
- }
1293
+ }
0 commit comments