Created
July 4, 2012 16:32
-
-
Save yusugomori/3048175 to your computer and use it in GitHub Desktop.
ModalContainer.css
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
.noscroll { | |
overflow: hidden !important; | |
} | |
.visible .overlay { | |
opacity: 0.8; | |
-moz-opacity: 0.8; | |
} | |
.overlay { | |
position: fixed; | |
z-index: 0; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background: white; | |
opacity: 0; | |
-moz-transition: all 0.3s ease-in-out; | |
-webkit-transition: all 0.3s ease-in-out; | |
-webkit-backface-visibility: hidden; | |
} | |
.modal-container { | |
position: fixed; | |
z-index: 99999; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
display: none; | |
overflow: scroll; | |
-webkit-transform: translateZ(0); | |
-moz-transform: translateZ(0); | |
-webkit-backface-visibility: hidden; | |
} | |
.modal { | |
position: absolute; | |
z-index: 2; | |
/* top: 800px; */ | |
bottom: -25%; | |
left: 50%; | |
padding: 30px 30px 20px 30px; | |
background: #fff; | |
border-bottom: solid 10px #0d70b2; | |
-webkit-border-radius: 10px 10px 0 0; | |
-moz-border-radius: 10px 10px 0 0; | |
-ms-border-radius: 10px 10px 0 0; | |
-o-border-radius: 10px 10px 0 0; | |
border-radius: 10px 10px 0 0; | |
-webkit-box-shadow: 0 0 5px rgba(34, 25, 25, 0.3); | |
-moz-box-shadow: 0 0 5px rgba(34,25,25,0.3); | |
-ms-box-shadow: 0 0 5px rgba(34,25,25,0.3); | |
-o-box-shadow: 0 0 5px rgba(34,25,25,0.3); | |
box-shadow: 0 0 5px rgba(34, 25, 25, 0.3); | |
-webkit-transition: all 0.3s ease-in-out; | |
-moz-transition: all 0.3s ease-in-out; | |
-moz-transition: all 0.3s ease-in-out; | |
-ms-transition: all 0.3s ease-in-out; | |
-o-transition: all 0.3s ease-in-out; | |
transition: all 0.3s ease-in-out; | |
-webkit-backface-visibility: hidden; | |
} | |
.visible .modal { | |
/* top: 130px; */ | |
bottom: 50%; | |
} | |
.modal.wide { | |
width: 380px; | |
margin-left: -190px; | |
/* margin-left: -214px; Firefox */ | |
/* margin-left: -220px; Webkit */ | |
} | |
.modal.rotation { | |
-webkit-transform: rotate(60deg); | |
-moz-transform: rotate(60deg); | |
-ms-transform: rotate(60deg); | |
-o-transform: rotate(60deg); | |
transform: rotate(60deg); | |
} | |
.modal .header { | |
padding: 0 0 25px 0; | |
position: relative; | |
} | |
.modal .close { | |
display: block; | |
width: 30px; | |
height: 30px; | |
line-height: 30px; | |
border-radius: 20px; | |
position: absolute; | |
top: -5px; | |
right: 0; | |
font-family: Arial; | |
font-weight: bold; | |
vertical-align: middle; | |
font-size: 18px; | |
background-color: #f1f1f1; | |
color: #999; | |
text-decoration: none; | |
text-align: center; | |
} | |
.modal .close:hover { | |
color: #333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment