Skip to content

Commit c8b1c63

Browse files
committed
Fix filter groups modal z-index on mobile
1 parent 8979dd7 commit c8b1c63

File tree

1 file changed

+42
-45
lines changed

1 file changed

+42
-45
lines changed

plugins/bcc-login/src/filtering.css

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,73 @@
11
.bcc-filter {
2-
position: relative;
2+
position: relative;
33
}
44

55
.bcc-filter ul {
6-
padding-left: 0 !important;
7-
margin-bottom: 0 !important;
8-
display: flex;
9-
flex-flow: column nowrap;
6+
padding-left: 0 !important;
7+
margin-bottom: 0 !important;
8+
display: flex;
9+
flex-flow: column nowrap;
1010
}
1111

1212
.bcc-filter li {
13-
position: relative;
14-
margin-bottom: 8px !important;
13+
position: relative;
14+
margin-bottom: 8px !important;
1515
}
1616

1717
.bcc-filter .bcc-checkbox {
18-
border: 1px solid var(--border-on-primary);
18+
border: 1px solid var(--border-on-primary);
1919
}
2020

2121
.bcc-filter #close-bcc-groups {
22-
display: block;
23-
margin-bottom: 1rem;
22+
display: block;
23+
margin-bottom: 1rem;
2424
}
2525

26-
2726
.bcc-filter #bcc-filter-groups.active {
28-
display: block;
27+
display: block;
2928
}
3029

3130
body.no-scroll {
32-
overflow: hidden;
31+
overflow: hidden;
3332
}
3433

3534
.bcc-target-groups__filtered {
36-
display: flex;
37-
align-items: center;
38-
gap: 4px;
39-
margin-bottom: 16px;
35+
display: flex;
36+
align-items: center;
37+
gap: 4px;
38+
margin-bottom: 16px;
4039
}
4140

42-
43-
4441
@media (max-width: 767px) {
45-
.bcc-filter #bcc-filter-groups {
46-
position: fixed;
47-
inset: 0;
48-
top: var(--wp-admin--admin-bar--height);
49-
z-index: 99999;
50-
background: #fff;
51-
padding: 16px;
52-
text-align: left;
53-
overflow-y: auto;
54-
display: none;
55-
}
42+
.bcc-filter #bcc-filter-groups {
43+
position: fixed;
44+
inset: 0;
45+
top: var(--wp-admin--admin-bar--height);
46+
z-index: 999999;
47+
background: #fff;
48+
padding: 16px;
49+
text-align: left;
50+
overflow-y: auto;
51+
display: none;
52+
}
5653
}
5754

5855
@media (min-width: 768px) {
59-
@supports (text-shadow: 1px 0 0 #000) {
60-
.bcc-filter label:hover,
61-
.bcc-filter input:checked+label {
62-
font-weight: normal;
63-
text-shadow: 0.2px 0 0 currentColor;
64-
}
56+
@supports (text-shadow: 1px 0 0 #000) {
57+
.bcc-filter label:hover,
58+
.bcc-filter input:checked + label {
59+
font-weight: normal;
60+
text-shadow: 0.2px 0 0 currentColor;
6561
}
62+
}
6663

67-
.bcc-filter #close-bcc-groups,
68-
.bcc-filter #toggle-bcc-filter {
69-
display: none;
70-
}
64+
.bcc-filter #close-bcc-groups,
65+
.bcc-filter #toggle-bcc-filter {
66+
display: none;
67+
}
7168

72-
.bcc-filter #bcc-filter-groups {
73-
display: block;
74-
position: relative;
75-
}
76-
}
69+
.bcc-filter #bcc-filter-groups {
70+
display: block;
71+
position: relative;
72+
}
73+
}

0 commit comments

Comments
 (0)