I have some elements.
These:
- fill_bg(fills the background)
- numpad(custom numeric keypad)
- dialog(popup dialog)
PROBLEM: "Dialog" opens correctly above "fill_bg" but "numpad" does not open correctly. The "numpad" is under "fill_bg". But that shouldn't happen.
These are their CSS properties:
#numpad{
background-color: var(--theme-color);
position: fixed;
left: 7%;
right: 7%;
bottom: 0;
border-radius: 30px 30px 0px 0px;
text-align: center;
padding: 5px;
padding-bottom: 10px;
display: none;
z-index: 100;
}
#fill_bg{
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgb(23, 23, 23,0.8);
transition: 0.2s;
z-index: 90;
}
#dialog{
background-color: var(--theme-color);
position: fixed;
top: calc(50% - 10px);
left: calc(10% - 10px);
transform: translateY(calc(-50% + 10px));
width: 80%;
text-align: center;
border-radius: var(--theme-border-radius);
padding: 10px;
display: none;
z-index: 110;
}