193 lines
4.6 KiB
CSS
193 lines
4.6 KiB
CSS
|
|
.stage_mv
|
|
{
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
z-index: 99999;
|
|
}
|
|
.message_mv
|
|
{
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%,-100%);
|
|
z-index: 100000;
|
|
}
|
|
.tn-box {
|
|
width: 360px;
|
|
margin: 0 auto 20px auto;
|
|
padding: 25px 15px;
|
|
text-align: left;
|
|
border-radius: 5px;
|
|
box-shadow: 0 1px 1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
|
|
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
|
filter: alpha(opacity=0);
|
|
cursor: default;
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 60px;
|
|
right: 10px;
|
|
z-index: 10;
|
|
}
|
|
.tn-box p {
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
padding: 0 10px 0 60px;
|
|
text-shadow: 0 1px 1px rgba(255,255,255,0.6);
|
|
}
|
|
.tn-box p:before{
|
|
text-align: center;
|
|
border: 3px solid rgba(255, 255, 255, 1);
|
|
margin-top: -17px;
|
|
top: 50%;
|
|
left: 20px;
|
|
width: 30px;
|
|
content: 'i';
|
|
font-size: 23px;
|
|
color: rgba(255, 255, 255, 1);
|
|
position: absolute;
|
|
height: 30px;
|
|
line-height: 1.2em;
|
|
border-radius: 50%;
|
|
text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
|
|
box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
|
|
}
|
|
.tn-progress {
|
|
width: 0;
|
|
height: 4px;
|
|
background: rgba(255,255,255,0.3);
|
|
position: absolute;
|
|
bottom: 5px;
|
|
left: 2%;
|
|
border-radius: 3px;
|
|
box-shadow:
|
|
inset 0 1px 1px rgba(0,0,0,0.05),
|
|
0 -1px 0 rgba(255,255,255,0.6);
|
|
}
|
|
|
|
/* Colors */
|
|
|
|
.tn-box {
|
|
background: #99ffb1;
|
|
border: 1px solid #7ce294;
|
|
}
|
|
.tn-box p {
|
|
color: #2d8241;
|
|
}
|
|
|
|
.mv_error.tn-box {
|
|
background: #FFE2E4;
|
|
border: 1px solid #eab3b7;
|
|
}
|
|
.mv_error.tn-box p {
|
|
color: #D27C82;
|
|
}
|
|
|
|
.mv_info .tn-box {
|
|
background: rgba(38, 140, 217, 0.52);
|
|
border: 1px solid rgba(61, 157, 226, 0.73);
|
|
}
|
|
.mv_info .tn-box p {
|
|
color: rgba(16, 53, 206, 0.81);
|
|
}
|
|
|
|
/* If you use JavaScript you could add a class instead: */
|
|
|
|
.tn-box.tn-box-active {
|
|
display: block;
|
|
-webkit-animation: fadeOut 5s linear forwards;
|
|
-moz-animation: fadeOut 5s linear forwards;
|
|
-o-animation: fadeOut 5s linear forwards;
|
|
-ms-animation: fadeOut 5s linear forwards;
|
|
animation: fadeOut 5s linear forwards;
|
|
}
|
|
|
|
.tn-box.tn-box-active .tn-progress {
|
|
-webkit-animation: runProgress 4s linear forwards 0.5s;
|
|
-moz-animation: runProgress 4s linear forwards 0.5s;
|
|
-o-animation: runProgress 4s linear forwards 0.5s;
|
|
-ms-animation: runProgress 4s linear forwards 0.5s;
|
|
animation: runProgress 4s linear forwards 0.5s;
|
|
}
|
|
|
|
@-webkit-keyframes fadeOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; -webkit-transform: translateY(0px);}
|
|
99% { opacity: 0; -webkit-transform: translateY(-30px);}
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@-moz-keyframes fadeOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; -moz-transform: translateY(0px);}
|
|
99% { opacity: 0; -moz-transform: translateY(-30px);}
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@-o-keyframes fadeOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; -o-transform: translateY(0px);}
|
|
99% { opacity: 0; -o-transform: translateY(-30px);}
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@-ms-keyframes fadeOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; -ms-transform: translateY(0px);}
|
|
99% { opacity: 0; -ms-transform: translateY(-30px);}
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; transform: translateY(0px);}
|
|
99% { opacity: 0; transform: translateY(-30px);}
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
@-webkit-keyframes runProgress {
|
|
0%{ width: 0%; background: rgba(255,255,255,0.3); }
|
|
100%{ width: 96%; background: rgba(255,255,255,1); }
|
|
}
|
|
|
|
@-moz-keyframes runProgress {
|
|
0%{ width: 0%; background: rgba(255,255,255,0.3); }
|
|
100%{ width: 96%; background: rgba(255,255,255,1); }
|
|
}
|
|
|
|
@-o-keyframes runProgress {
|
|
0%{ width: 0%; background: rgba(255,255,255,0.3); }
|
|
100%{ width: 96%; background: rgba(255,255,255,1); }
|
|
}
|
|
|
|
@-ms-keyframes runProgress {
|
|
0%{ width: 0%; background: rgba(255,255,255,0.3); }
|
|
100%{ width: 96%; background: rgba(255,255,255,1); }
|
|
}
|
|
|
|
@keyframes runProgress {
|
|
0%{ width: 0%; background: rgba(255,255,255,0.3); }
|
|
100%{ width: 96%; background: rgba(255,255,255,1); }
|
|
}
|
|
|
|
/* Last example pauses on hover (causes problems in WebKit browsers) */
|
|
|
|
.tn-box.tn-box-hoverpause:hover,
|
|
.tn-box.tn-box-hoverpause:hover .tn-progress{
|
|
-webkit-animation-play-state: paused;
|
|
-moz-animation-play-state: paused;
|
|
-o-animation-play-state: paused;
|
|
-ms-animation-play-state: paused;
|
|
animation-play-state: paused;
|
|
}
|