Created
December 17, 2014 10:34
-
-
Save pierr/ba14f2199409f006260f to your computer and use it in GitHub Desktop.
modal.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
/*body{ | |
color: @gray; | |
font-family: 'Helvetica', arial; | |
height: 80em; | |
} | |
.wrap{ | |
padding: @space; | |
text-align: center; | |
} | |
hr { | |
clear: both; | |
margin-top: @space; | |
margin-bottom: @space; | |
border: 0; | |
border-top: 1px solid @gray-light; | |
} | |
h1{ | |
font-size: 30px; | |
margin-bottom: @space; | |
} | |
p{ | |
margin-bottom: @space/2; | |
} | |
// | |
// Btn | |
// ---------------------- | |
.btn{ | |
background: @blue; | |
border: @blue-dark solid 1px; | |
border-radius: 3px; | |
color: #fff; | |
display: inline-block; | |
font-size: 14px; | |
padding: 8px 15px; | |
text-decoration: none; | |
text-align: center; | |
min-width: 60px; | |
position: relative; | |
transition: color .1s ease; | |
// top: 40em; | |
&:hover{ | |
background: @blue-dark; | |
} | |
&.btn-big{ | |
font-size: 18px; | |
padding: 15px 20px; | |
min-width: 100px; | |
} | |
} | |
*/ | |
.btn-close { | |
color: #aaaaaa; | |
font-size: 30px; | |
text-decoration: none; | |
position: absolute; | |
right: 5px; | |
top: 0; | |
} | |
.btn-close:hover { | |
color: #919191; | |
} | |
.modalify-css { | |
with: 100%; | |
} | |
.modalify-css:before { | |
content: ""; | |
display: none; | |
background: rgba(0, 0, 0, 0.8); | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
z-index: 10; | |
with: 100%; | |
height: 100%; | |
} | |
.modalify-css:target:before { | |
display: block; | |
} | |
.modalify-css:target .modalify-dialog { | |
-webkit-transform: translate(-50%, 0%); | |
-ms-transform: translate(-50%, 0%); | |
transform: translate(-50%, 0%); | |
top: 20%; | |
} | |
.modalify-dialog { | |
/*background: #fefefe; | |
border: @gray solid 1px; | |
border-radius: 5px; | |
margin-left: auto; | |
margin-right: auto; | |
position: ~fi; | |
width: @modalWidth; | |
top: -100%; */ | |
z-index: 11; | |
position: fixed; | |
background-color: #fff; | |
border: 1px solid #000; | |
left: 50%; | |
padding: 20px; | |
width: 70%; | |
max-height: 400px; | |
border-radius: 5px; | |
-webkit-transform: translate(-50%, -200%); | |
-ms-transform: translate(-50%, -200%); | |
transform: translate(-50%, -200%); | |
-webkit-transition: transform 200ms ease-out; | |
transition: transform 200ms ease-out; | |
} | |
.modalify-content { | |
padding: 20px; | |
} | |
.modalify-header, | |
.modalify-footer { | |
padding: 10px 20px; | |
} | |
.modalify-header { | |
border-bottom: #eeeeee solid 1px; | |
} | |
.modalify-header h2 { | |
font-size: 20px; | |
} | |
/* | |
.modalify-footer{ | |
border-top: @gray-lighter solid 1px; | |
text-align: right; | |
} | |
*/ | |
/*ADDED TO STOP SCROLLING TO TOP*/ | |
#modalify-close { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment