Last active
December 7, 2016 02:05
-
-
Save santosluiz/98497a1c276aad9937b18a49fbfe45d0 to your computer and use it in GitHub Desktop.
Folha de Estilo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body{ | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
background: #FF3300; | |
font-family: 'Ubuntu', sans-serif; | |
} | |
.modal{ | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
width: 50%; | |
height: auto; | |
min-width: 300px; | |
z-index: 2; | |
visibility: hidden; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
-webkit-perspective: 900px; | |
-moz-perspective: 900px; | |
-ms-perspective: 900px; | |
perspective: 900px; | |
} | |
.modal-content{ | |
padding: 120px 10px; | |
text-align: center; | |
color: #000; | |
background: rgb(236, 236, 236); | |
border-radius: 10px; | |
border: 1px solid #909090; | |
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.9); | |
transition: ease-in 0.3s; | |
transform: rotateX(-60deg); | |
-webkit-transform: rotateX(-60deg); | |
-moz-transform: rotateX(-60deg); | |
-ms-transform: rotateX(-60deg); | |
} | |
.modal-open{ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
border: transparent; | |
background: #fff; | |
font-size: 15px; | |
font-weight: bold; | |
padding: 20px 50px; | |
border-radius: 5px; | |
} | |
.modal-open:active{ | |
outline: transparent; | |
} | |
.modal-close{ | |
padding: 8px 40px; | |
border-radius: 8px; | |
border: transparent; | |
background: #212121; | |
color: #fff; | |
outline: transparent; | |
} | |
.overlay { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
visibility: hidden; | |
top: 0; | |
left: 0; | |
z-index: 1; | |
opacity: 0; | |
background: rgba(0, 0, 0, 0.5); | |
transition: ease-in 0.4s; | |
} | |
.modal-show { | |
opacity: 1; | |
visibility: visible; | |
} | |
.modal-animate{ | |
transition: ease-in 0.3s; | |
transform: rotateX(0deg); | |
-webkit-transform: rotateX(0deg); | |
-moz-transform: rotateX(0deg); | |
-ms-transform: rotateX(0deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment