1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

use flex layout to center modal

This commit is contained in:
Dick Choi
2016-07-19 13:28:18 +09:00
parent 890207daee
commit af7476f79a
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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