это то что у меня в css
.b-popup-paranja {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background: rgba(0,0,0,0.6);
cursor: default;
visibility: hidden;
opacity: 0;
-webkit-transition: opacity .4s, visibility .4s;
-moz-transition: opacity .4s, visibility .4s;
-o-transition: opacity .4s, visibility .4s;
transition: opacity .4s, visibility .4s;
}
.b-popup {
top: -200px;
right: 0;
left: 0;
z-index: 2000;
position: relative;
opacity: 0;
visibility: hidden;
height: 0;
text-align: center;
-webkit-transition: opacity .4s, visibility .4s, top .4s;
-moz-transition: opacity .4s, visibility .4s, top .4s;
-o-transition: opacity .4s, visibility .4s, top .4s;
transition: opacity .4s, visibility .4s, top .4s;
}
.b-popup-in {
position: relative;
display: inline-block;
max-width: 90%;
z-index: 2000;
top: -200px;
padding: 10em 1.375em 0;
margin: 10em 0;
text-align: center;
background: #FFF;
-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em;
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.7);
-moz-box-shadow: 0 0 5px rgba(0,0,0,0.7);
-o-box-shadow: 0 0 5px rgba(0,0,0,0.7);
box-shadow: 0 0 5px rgba(0,0,0,0.7);
}
.b-popup-paranja:target {
visibility: inherit;
opacity: 1;
-webkit-transition: opacity .4s;
-moz-transition: opacity .4s;
-o-transition: opacity .4s;
transition: opacity .4s;
}
.b-popup-paranja:target+.b-popup {
visibility: inherit;
opacity: 1;
top: 10%;
-webkit-transition: opacity .4s, top .4s;
-moz-transition: opacity .4s, top .4s;
-o-transition: opacity .4s, top .4s;
transition: opacity .4s, top .4s;
}
.b-popup-closer {
position: absolute;
top: -0.75em;
right: -0.75em;
width: 1.5em;
height: 1.5em;
text-align: center;
line-height: 1.4em;
text-decoration: none;
background: #333;
background: rgba(0,0,0,0.7);
-webkit-border-radius: 1em;
-moz-border-radius: 1em;
border-radius: 1em;
-webkit-box-shadow: 0 0 4px rgba(0,0,0,0.7);
-moz-box-shadow: 0 0 4px rgba(0,0,0,0.7);
-o-box-shadow: 0 0 4px rgba(0,0,0,0.7);
box-shadow: 0 0 4px rgba(0,0,0,0.7);
}
.b-popup-closer:before {
content: "x";
font-size: 1.2em;
color: rgba(255,255,255,0.9);
text-shadow: 0 -1px rgba(0,0,0,0.9);
}
@media (max-device-width: 1024px) {
/* Fixing iOS bug with visibility+opacity transitions */
.b-popup,
.b-dropdown-popup,
.b-popup-paranja {
opacity: 1 !important;
}
.b-paranja,
.b-popup-paranja {
display: none;
}
}
.b-popup-in #tab{
width: 80%;
text-align: center;
margin: 0.5em;
font-family: tahoma, arial, "sans serif";
}
.b-popup-in #tab td{
border:2px solid #fff;
}
.b-popup-in td{
background-color: #b4cef3;
border:2px solid #fff;
}
|