Skip to content

Commit 0d21a96

Browse files
committed
[MOBILE] Burger menu not resetting after closing [FIX]
1 parent 6d1380c commit 0d21a96

File tree

1 file changed

+22
-16
lines changed
  • pyconbalkan/core/static/css/components

1 file changed

+22
-16
lines changed

pyconbalkan/core/static/css/components/menu.css

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@
2929
z-index: 3;
3030
}
3131

32-
.mobile-button:hover,
33-
.menu.active .mobile-button {
34-
border: 1px solid rgba(255,255,255,0.3);
35-
background-color: #28aae1;
36-
background-image: url(/static/img/close.png);
37-
background-image: url(/static/img/close.svg);
38-
}
39-
40-
.menu.active .mobile-button:hover {
41-
background-color: #ffd64f;
42-
}
43-
44-
.menu.active .menu__list {
45-
display: flex;
46-
}
47-
4832
.mobile-button {
4933
display: block;
5034
position: absolute;
@@ -63,6 +47,28 @@
6347
background-position: center;
6448
cursor: pointer;
6549
}
50+
51+
.mobile-button:hover {
52+
border: 1px solid rgba(255,255,255,0.3);
53+
background-color: #28aae1;
54+
background-image: url(/static/img/burger-menu.png);
55+
background-image: url(/static/img/burger-menu.svg);
56+
}
57+
58+
.menu.active .mobile-button {
59+
border: 1px solid rgba(255,255,255,0.3);
60+
background-color: #ffd64f;
61+
background-image: url(/static/img/close.png);
62+
background-image: url(/static/img/close.svg);
63+
}
64+
65+
.menu.active .mobile-button:hover {
66+
background-color: #ffd64f;
67+
}
68+
69+
.menu.active .menu__list {
70+
display: flex;
71+
}
6672
}
6773

6874
.menu__list {

0 commit comments

Comments
 (0)