|
Added
Link Here
|
| 1 |
<style> |
| 2 |
/** |
| 3 |
* CSS Modal |
| 4 |
* Modal as reusable module |
| 5 |
* http://drublic.github.com/css-modal |
| 6 |
* |
| 7 |
* @author Hans Christian Reinl - @drublic |
| 8 |
* @version 1.0.4 |
| 9 |
*/ |
| 10 |
html { |
| 11 |
overflow-y: scroll; |
| 12 |
} |
| 13 |
.has-overlay { |
| 14 |
overflow: hidden; |
| 15 |
} |
| 16 |
|
| 17 |
.has-overlay>body { |
| 18 |
height: 100%; |
| 19 |
overflow-y: scroll; |
| 20 |
} |
| 21 |
|
| 22 |
.semantic-content { |
| 23 |
-webkit-transform: translate(0, 100%); |
| 24 |
-moz-transform: translate(0, 100%); |
| 25 |
-o-transform: translate(0, 100%); |
| 26 |
-ms-transform: translate(0, 100%); |
| 27 |
transform: translate(0, 100%); |
| 28 |
-webkit-transform: translate3d(0, 100%, 0); |
| 29 |
transform: translate3d(0, 100%, 0); |
| 30 |
position: fixed; |
| 31 |
top: 0; |
| 32 |
left: 0; |
| 33 |
right: 0; |
| 34 |
bottom: 0; |
| 35 |
z-index: 999; |
| 36 |
opacity: 0; |
| 37 |
color: #222; |
| 38 |
line-height: 1.3; |
| 39 |
display: none\9; |
| 40 |
} |
| 41 |
|
| 42 |
.semantic-content:target { |
| 43 |
-webkit-transform: translate(0, 0); |
| 44 |
-moz-transform: translate(0, 0); |
| 45 |
-o-transform: translate(0, 0); |
| 46 |
-ms-transform: translate(0, 0); |
| 47 |
transform: translate(0, 0); |
| 48 |
opacity: 1; |
| 49 |
} |
| 50 |
|
| 51 |
.is-active.semantic-content { |
| 52 |
display: block\9; |
| 53 |
} |
| 54 |
|
| 55 |
.semantic-content:target { |
| 56 |
display: block\9; |
| 57 |
} |
| 58 |
|
| 59 |
.semantic-content .modal-inner { |
| 60 |
position: absolute; |
| 61 |
top: 50px; |
| 62 |
left: 50%; |
| 63 |
z-index: 20; |
| 64 |
margin-left: -325px; |
| 65 |
width: 650px; |
| 66 |
overflow-x: hidden; |
| 67 |
border-radius: 2px; |
| 68 |
background: #fff; |
| 69 |
-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); |
| 70 |
box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); |
| 71 |
} |
| 72 |
|
| 73 |
.semantic-content .modal-inner>img,.semantic-content .modal-inner>video,.semantic-content .modal-inner>iframe |
| 74 |
{ |
| 75 |
width: 100%; |
| 76 |
height: auto; |
| 77 |
min-height: 300px; |
| 78 |
} |
| 79 |
|
| 80 |
.semantic-content .modal-inner>img { |
| 81 |
width: auto; |
| 82 |
max-width: 100%; |
| 83 |
} |
| 84 |
|
| 85 |
.semantic-content .modal-header { |
| 86 |
border-bottom: 1px solid #dddddd; |
| 87 |
padding: 0 1.2em; |
| 88 |
} |
| 89 |
|
| 90 |
.semantic-content .modal-header>h2 { |
| 91 |
margin: 0.5em 0; |
| 92 |
border-bottom:0; |
| 93 |
} |
| 94 |
|
| 95 |
.semantic-content .modal-content { |
| 96 |
max-height: 400px; |
| 97 |
max-height: 70vh; |
| 98 |
border-bottom: 1px solid #dddddd; |
| 99 |
padding: 15px 1.2em; |
| 100 |
overflow-x: hidden; |
| 101 |
overflow-y: auto; |
| 102 |
} |
| 103 |
|
| 104 |
.semantic-content .modal-content>* { |
| 105 |
max-width: 100%; |
| 106 |
} |
| 107 |
|
| 108 |
.semantic-content .modal-footer { |
| 109 |
border-top: 1px solid white; |
| 110 |
padding: 13px 1.2em 18px; |
| 111 |
background: #f0f0f0; |
| 112 |
border-radius: 2px; |
| 113 |
} |
| 114 |
|
| 115 |
.semantic-content .modal-close { |
| 116 |
display: block; |
| 117 |
text-indent: -100px; |
| 118 |
overflow: hidden; |
| 119 |
} |
| 120 |
|
| 121 |
.semantic-content .modal-close:before { |
| 122 |
content: ''; |
| 123 |
position: absolute; |
| 124 |
top: 0; |
| 125 |
left: 0; |
| 126 |
right: 0; |
| 127 |
bottom: 0; |
| 128 |
z-index: 10; |
| 129 |
background: |
| 130 |
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAEElEQVR42gEFAPr/AAAAAMwA0QDNTiUx4gAAAABJRU5ErkJggg=="); |
| 131 |
} |
| 132 |
|
| 133 |
.semantic-content .modal-close:after { |
| 134 |
content: '\00d7'; |
| 135 |
position: absolute; |
| 136 |
top: 25px; |
| 137 |
left: 50%; |
| 138 |
z-index: 20; |
| 139 |
margin-left: 285px; |
| 140 |
background: #fff; |
| 141 |
border-radius: 2px; |
| 142 |
padding: 4px 8px; |
| 143 |
font-size: 1.2em; |
| 144 |
text-decoration: none; |
| 145 |
text-indent: 0; |
| 146 |
} |
| 147 |
|
| 148 |
@media screen and (max-width: 690px) { |
| 149 |
.semantic-content .modal-inner { |
| 150 |
width: auto; |
| 151 |
left: 20px; |
| 152 |
right: 20px; |
| 153 |
margin-left: 0; |
| 154 |
} |
| 155 |
.semantic-content .modal-close { |
| 156 |
left: auto; |
| 157 |
right: 33px; |
| 158 |
margin-left: 0; |
| 159 |
} |
| 160 |
.semantic-content .modal-close:after { |
| 161 |
margin-left: 40%; |
| 162 |
} |
| 163 |
} |
| 164 |
|
| 165 |
@media screen and (max-width: 30em) { |
| 166 |
.semantic-content { |
| 167 |
-webkit-transform: translate(0, 400px); |
| 168 |
-webkit-transform: translate3d(0, 100%, 0); |
| 169 |
transform: translate3d(0, 100%, 0); |
| 170 |
-webkit-transition: -webkit-transform .25s ease-in-out, opacity 1ms .25s; |
| 171 |
-moz-transition: -moz-transform .25s ease-in-out, opacity 1ms .25s; |
| 172 |
-o-transition: -o-transform .25s ease-in-out, opacity 1ms .25s; |
| 173 |
-ms-transition: -ms-transform .25s ease-in-out, opacity 1ms .25s; |
| 174 |
transition: transform .25s ease-in-out, opacity 1ms .25s; |
| 175 |
display: block; |
| 176 |
height: 100%; |
| 177 |
bottom: auto; |
| 178 |
} |
| 179 |
.semantic-content:target { |
| 180 |
-webkit-transition: -webkit-transform .25s ease-in-out; |
| 181 |
-moz-transition: -moz-transform .25s ease-in-out; |
| 182 |
-o-transition: -o-transform .25s ease-in-out; |
| 183 |
-ms-transition: -ms-transform .25s ease-in-out; |
| 184 |
transition: transform .25s ease-in-out; |
| 185 |
} |
| 186 |
.semantic-content:before { |
| 187 |
background-color: #27aae2; |
| 188 |
background-image: -webkit-gradient(linear, left top, left bottom, from(#27aae2), |
| 189 |
to(#1c9cd3)); |
| 190 |
background-image: -webkit-linear-gradient(top, #27aae2, #1c9cd3); |
| 191 |
background-image: -moz-linear-gradient(top, #27aae2, #1c9cd3); |
| 192 |
background-image: -o-linear-gradient(top, #27aae2, #1c9cd3); |
| 193 |
background-image: linear-gradient(to bottom, #27aae2, #1c9cd3); |
| 194 |
content: ''; |
| 195 |
position: fixed; |
| 196 |
top: 0; |
| 197 |
left: 0; |
| 198 |
right: 0; |
| 199 |
z-index: 30; |
| 200 |
height: 3em; |
| 201 |
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.6); |
| 202 |
box-shadow: 0 0 5px rgba(0, 0, 0, 0.6); |
| 203 |
} |
| 204 |
.semantic-content .modal-inner { |
| 205 |
-webkit-box-sizing: border-box; |
| 206 |
-moz-box-sizing: border-box; |
| 207 |
box-sizing: border-box; |
| 208 |
top: 0; |
| 209 |
left: 0; |
| 210 |
right: 0; |
| 211 |
padding-top: 3em; |
| 212 |
height: 100%; |
| 213 |
overflow: scroll; |
| 214 |
-webkit-box-shadow: none; |
| 215 |
box-shadow: none; |
| 216 |
} |
| 217 |
.semantic-content .modal-content { |
| 218 |
max-height: none; |
| 219 |
} |
| 220 |
.semantic-content .modal-close { |
| 221 |
right: auto; |
| 222 |
text-decoration: none; |
| 223 |
} |
| 224 |
.semantic-content .modal-close:before { |
| 225 |
display: none; |
| 226 |
} |
| 227 |
.semantic-content .modal-close:after { |
| 228 |
content: attr(data-close); |
| 229 |
top: 0.4em; |
| 230 |
left: 1em; |
| 231 |
z-index: 40; |
| 232 |
margin-left: 0; |
| 233 |
font-size: 1em; |
| 234 |
padding: 0.5em 1em; |
| 235 |
} |
| 236 |
} |
| 237 |
|
| 238 |
@media screen and (max-height: 46em) and (min-width: 30em) { |
| 239 |
.semantic-content .modal-content { |
| 240 |
max-height: 340px; |
| 241 |
max-height: 50vh; |
| 242 |
} |
| 243 |
} |
| 244 |
|
| 245 |
@media screen and (max-height: 36em) and (min-width: 30em) { |
| 246 |
.semantic-content .modal-content { |
| 247 |
max-height: 265px; |
| 248 |
max-height: 40vh; |
| 249 |
} |
| 250 |
} |
| 251 |
|
| 252 |
@media screen and (min-width: 30em) { |
| 253 |
.semantic-content { |
| 254 |
-webkit-transition: opacity 0.4s; |
| 255 |
-o-transition: opacity 0.4s; |
| 256 |
transition: opacity 0.4s; |
| 257 |
} |
| 258 |
} |
| 259 |
#surveyMonkeyInfo{ |
| 260 |
width:100%; |
| 261 |
font-size:10px; |
| 262 |
color:#666; |
| 263 |
} |
| 264 |
#sm_e_s{ |
| 265 |
overflow:hidden; |
| 266 |
border:0px; |
| 267 |
padding-bottom:4px; |
| 268 |
} |
| 269 |
#logo{ |
| 270 |
font-size:12px; |
| 271 |
padding-top:6px; |
| 272 |
} |
| 273 |
#logo span{ |
| 274 |
position:absolute; |
| 275 |
top:45px; |
| 276 |
} |
| 277 |
#logo-a{ |
| 278 |
padding:18px; |
| 279 |
} |
| 280 |
</style> |
| 281 |
|
| 282 |
|
| 283 |
<!-- Call the modal by clicking this link --> |
| 284 |
<a href="#modal-text" class="call-modal" |
| 285 |
title="Do you like this new logo?"><img |
| 286 |
src="/home/promotions/logovoting/logo/eclipse-logo-a.png" |
| 287 |
alt="Eclipse.org" id="logo-a"/><span>Do you like this new logo?</span></a> |
| 288 |
|
| 289 |
<!-- A modal with its content --> |
| 290 |
<section class="semantic-content" id="modal-text" tabindex="-1" |
| 291 |
role="dialog" aria-labelledby="modal-label" aria-hidden="true"> |
| 292 |
|
| 293 |
<div class="modal-inner"> |
| 294 |
<div class="modal-header"> |
| 295 |
<h2 id="modal-label">Do you like this new logo?</h2> |
| 296 |
</div> |
| 297 |
|
| 298 |
<div class="modal-content"> |
| 299 |
<div id="surveyMonkeyInfo"> |
| 300 |
<iframe id="sm_e_s" src="https://www.surveymonkey.com/jsEmbed.aspx?sm=v_2fUJ5cztOQKSptKXZy7m6A_3d_3d" width="100%" height="585" frameborder="0" allowtransparency="true" scrolling="no"></iframe> |
| 301 |
</div> |
| 302 |
</div> |
| 303 |
|
| 304 |
<div class="modal-footer"> |
| 305 |
Create your free online surveys with <a href="https://www.surveymonkey.com">SurveyMonkey</a> , the world's leading questionnaire tool. |
| 306 |
</div> |
| 307 |
</div> |
| 308 |
|
| 309 |
<!-- Use Hash-Bang to maintain scroll position when closing modal --> |
| 310 |
<a href="#!" class="modal-close" title="Close this modal" |
| 311 |
data-dismiss="modal">×</a> |
| 312 |
</section> |
| 313 |
|
| 314 |
<script src="/home/promotions/logovoting/modal.js"></script> |
| 315 |
<!-- JS for Modal --> |