mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 18:56:22 +00:00
use flex layout to center modal
This commit is contained in:
@@ -65,6 +65,10 @@ modalBackColor = transparentify(white, 65%)
|
|||||||
.ModalBase
|
.ModalBase
|
||||||
fixed top left bottom right
|
fixed top left bottom right
|
||||||
z-index modalZIndex
|
z-index modalZIndex
|
||||||
|
display flex
|
||||||
|
align-items center
|
||||||
|
justify-content center
|
||||||
|
|
||||||
&.hide
|
&.hide
|
||||||
display none
|
display none
|
||||||
.modalBack
|
.modalBack
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ $modal-border-radius = 5px
|
|||||||
modal()
|
modal()
|
||||||
position relative
|
position relative
|
||||||
z-index $modal-z-index
|
z-index $modal-z-index
|
||||||
margin $modal-margin
|
width 100%
|
||||||
background-color $modal-background
|
background-color $modal-background
|
||||||
overflow hidden
|
overflow hidden
|
||||||
border-radius $modal-border-radius
|
border-radius $modal-border-radius
|
||||||
|
|||||||
Reference in New Issue
Block a user