File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
<i title =" Show options" class =" show-options fas fa-sliders-h" aria-hidden =" true" @click =" toggleOptions" />
21
21
22
+ <div v-show =" showOptions" class =" backdrop" @click =" showOptions = false" ></div >
22
23
<div v-show =" showOptions" class =" options" >
23
24
<div class =" columns" >
24
25
<div class =" column has-text-centered" >
@@ -235,9 +236,10 @@ body,
235
236
.options {
236
237
padding : 2rem 2rem 3rem ;
237
238
position : absolute ;
238
- top : 25 % ;
239
+ top : calc ( 50 % - 300 px ) ;
239
240
width : var (--options-width );
240
241
left : calc (50% - var (--options-width ) / 2 );
242
+ z-index : 300 ;
241
243
}
242
244
243
245
body {
@@ -258,4 +260,14 @@ body {
258
260
transform : scale (1.1 );
259
261
color : #333 ;
260
262
}
263
+
264
+ .backdrop {
265
+ position : fixed ;
266
+ top : 0 ;
267
+ left : 0 ;
268
+ width : 100% ;
269
+ height : 100% ;
270
+ background-color : rgba (0 , 0 , 0 , 0.5 );
271
+ z-index : 200 ;
272
+ }
261
273
</style >
You can’t perform that action at this time.
0 commit comments