vlcsolutions commited on
Commit
8953849
·
verified ·
1 Parent(s): 658d8ca

Mobile menu is not working proper

Browse files
Files changed (1) hide show
  1. style.css +36 -6
style.css CHANGED
@@ -23,21 +23,26 @@ p {
23
  }
24
  /* Mobile menu styles */
25
  #mobile-menu {
26
- transition: max-height 0.3s ease-out;
27
- max-height: 0;
28
- overflow: hidden;
 
 
 
29
  }
30
 
31
  #mobile-menu:not(.hidden) {
32
- max-height: 100vh;
33
- overflow-y: auto;
 
34
  }
35
 
36
- /* Dropdown styles */
37
  #mobile-menu [id$="-dropdown"] {
38
  max-height: 0;
39
  overflow: hidden;
40
  transition: max-height 0.3s ease;
 
41
  }
42
 
43
  #mobile-menu [id$="-dropdown"]:not(.hidden) {
@@ -53,6 +58,31 @@ p {
53
  #mobile-menu-content {
54
  padding: 1rem;
55
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  .card p:last-child {
57
  margin-bottom: 0;
58
  }
 
23
  }
24
  /* Mobile menu styles */
25
  #mobile-menu {
26
+ transition: all 0.3s ease;
27
+ transform: translateY(-20px);
28
+ opacity: 0;
29
+ visibility: hidden;
30
+ max-height: calc(100vh - 64px);
31
+ overflow-y: auto;
32
  }
33
 
34
  #mobile-menu:not(.hidden) {
35
+ transform: translateY(0);
36
+ opacity: 1;
37
+ visibility: visible;
38
  }
39
 
40
+ /* Mobile dropdown styles */
41
  #mobile-menu [id$="-dropdown"] {
42
  max-height: 0;
43
  overflow: hidden;
44
  transition: max-height 0.3s ease;
45
+ padding-left: 1rem;
46
  }
47
 
48
  #mobile-menu [id$="-dropdown"]:not(.hidden) {
 
58
  #mobile-menu-content {
59
  padding: 1rem;
60
  }
61
+
62
+ /* Mobile menu links */
63
+ #mobile-menu a {
64
+ display: block;
65
+ padding: 0.75rem 1rem;
66
+ border-radius: 0.375rem;
67
+ transition: background-color 0.2s;
68
+ }
69
+
70
+ #mobile-menu a:hover {
71
+ background-color: rgba(255, 255, 255, 0.1);
72
+ }
73
+
74
+ /* Dropdown buttons */
75
+ #mobile-menu button[onclick^="toggleMobileDropdown"] {
76
+ width: 100%;
77
+ text-align: left;
78
+ padding: 0.75rem 1rem;
79
+ border-radius: 0.375rem;
80
+ transition: background-color 0.2s;
81
+ }
82
+
83
+ #mobile-menu button[onclick^="toggleMobileDropdown"]:hover {
84
+ background-color: rgba(255, 255, 255, 0.1);
85
+ }
86
  .card p:last-child {
87
  margin-bottom: 0;
88
  }