Fix lightbox close button click (z-index)
This commit is contained in:
@@ -196,10 +196,12 @@ div.navigation {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
background: rgba(0, 0, 0, 0.85);
|
background: rgba(0, 0, 0, 0.85);
|
||||||
|
z-index: 0;
|
||||||
}
|
}
|
||||||
.lightbox-content {
|
.lightbox-content {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
|
z-index: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -218,6 +220,7 @@ div.navigation {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 14px;
|
top: 14px;
|
||||||
right: 14px;
|
right: 14px;
|
||||||
|
z-index: 2; /* ensure clickable above .lightbox-content */
|
||||||
width: 44px;
|
width: 44px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
|
|||||||
Reference in New Issue
Block a user