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