Skip to content

Instantly share code, notes, and snippets.

@khripunovpp
Created November 13, 2018 10:19
Show Gist options
  • Save khripunovpp/8c2ac527ce1d98e06d0bba0422f0224d to your computer and use it in GitHub Desktop.
Save khripunovpp/8c2ac527ce1d98e06d0bba0422f0224d to your computer and use it in GitHub Desktop.
adaptive popup
.b-popup
.b-popup__container
.b-popup__wrapper
.b-popup__inner тело
.b-poup
position: fixed
top: 0
left: 0
width: 100%
height: 100%
text-align: center
overflow: auto
&__container
display: table
width: 100%
height: 100%
&__wrapper
display: table-cell
vertical-align: middle
&__inner
background-color: #000
width: 100%
max-width: 320px
margin: 0 auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment