1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00

rename css class

This commit is contained in:
devfake 2015-07-04 13:24:50 +02:00
parent d18af4903e
commit 1301299910
2 changed files with 43 additions and 93 deletions

View File

@ -120,20 +120,23 @@
/** SHAME **/ /** SHAME **/
.card-wrap:hover .bla, .card-wrap:hover .card-animation,
.activeCard .bla, .activeCard .card-animation,
.grave:hover .bla, .grave:hover .card-animation,
.leader-card:hover .bla { .leader-card:hover .card-animation {
box-shadow: 0 0 2px 0 orange; box-shadow: 0 0 2px 0 orange;
opacity: 1; opacity: 1;
} }
.bla { .card-animation {
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
opacity: 0; opacity: 0;
border-radius: 0; border-radius: 0;
background: linear-gradient(2deg, #000, #000, #000, #000);;
transition: all .05s ease-in-out 0s;
} }
.shadow { .shadow {
@ -159,75 +162,40 @@
animation: Shadow 4s ease-in-out infinite; animation: Shadow 4s ease-in-out infinite;
} }
.ani { .card-wrap:hover .card-animation,
background: linear-gradient(2deg, #000, #000, #000, #000);; .activeCard .card-animation,
transition: all .05s ease-in-out 0s; .grave:hover .card-animation,
} .leader-card:hover .card-animation {
.card-wrap:hover .ani,
.activeCard .ani,
.grave:hover .ani,
.leader-card:hover .ani {
background: linear-gradient(2deg, #ffa500, #ffd68b, #ffa500, #ffa500); background: linear-gradient(2deg, #ffa500, #ffd68b, #ffa500, #ffa500);
background-size: 800% 800%; background-size: 800% 800%;
-webkit-animation: AnimationName 3s ease infinite; -webkit-animation: CardAnimation 3s ease infinite;
-moz-animation: AnimationName 3s ease infinite; -moz-animation: CardAnimation 3s ease infinite;
animation: AnimationName 3s ease infinite; animation: CardAnimation 3s ease infinite;
} }
@-webkit-keyframes Shadow { @-webkit-keyframes Shadow {
0% { 0% { opacity: 0; }
opacity: 0; 25% { opacity: .5; }
} 50% { opacity: 1; }
25% { 75% { opacity: .5; }
opacity: .5; 100% { opacity: 0; }
}
50% {
opacity: 1;
}
75% {
opacity: .5;
}
100% {
opacity: 0;
}
} }
@-webkit-keyframes Shadow { @-webkit-keyframes Shadow {
0% { 0% { opacity: 0; }
opacity: 0; 25% { opacity: .5; }
} 50% { opacity: 1; }
25% { 75% { opacity: .5; }
opacity: .5; 100% { opacity: 0; }
}
50% {
opacity: 1;
}
75% {
opacity: .5;
}
100% {
opacity: 0;
}
} }
@keyframes Shadow { @keyframes Shadow {
0% { 0% { opacity: 0; }
opacity: 0; 25% { opacity: .5; }
} 50% { opacity: 1; }
25% { 75% { opacity: .5; }
opacity: .5; 100% { opacity: 0; }
}
50% {
opacity: 1;
}
75% {
opacity: .5;
}
100% {
opacity: 0;
}
} }
.overlay-card { .overlay-card {
@ -253,40 +221,22 @@
animation: AnimationName 10s ease infinite; animation: AnimationName 10s ease infinite;
} }
@-webkit-keyframes AnimationName { @-webkit-keyframes CardAnimation {
0% { 0% { background-position: 51% 0% }
background-position: 51% 0% 50% { background-position: 50% 100% }
} 100% { background-position: 51% 0% }
50% {
background-position: 50% 100%
}
100% {
background-position: 51% 0%
}
} }
@-moz-keyframes AnimationName { @-moz-keyframes CardAnimation {
0% { 0% { background-position: 51% 0% }
background-position: 51% 0% 50% { background-position: 50% 100% }
} 100% { background-position: 51% 0% }
50% {
background-position: 50% 100%
}
100% {
background-position: 51% 0%
}
} }
@keyframes AnimationName { @keyframes CardAnimation {
0% { 0% { background-position: 51% 0% }
background-position: 51% 0% 50% { background-position: 50% 100% }
} 100% { background-position: 51% 0% }
50% {
background-position: 50% 100%
}
100% {
background-position: 51% 0%
}
} }
/** SUB HAND **/ /** SUB HAND **/

View File

@ -1,6 +1,6 @@
<div class="card-wrap"> <div class="card-wrap">
<div class="card{{#if _disabled}} disabled{{/if}}" data-key="{{_key}}" data-id="{{_id}}"> <div class="card{{#if _disabled}} disabled{{/if}}" data-key="{{_key}}" data-id="{{_id}}">
<div class="bla ani"></div> <div class="card-animation"></div>
<i class="card-sm-{{_data.faction}} card-sm-{{_data.faction}}-{{_data.img}}"></i> <i class="card-sm-{{_data.faction}} card-sm-{{_data.faction}}-{{_data.img}}"></i>
<div class="shadow"></div> <div class="shadow"></div>
<div class="overlay-card"></div> <div class="overlay-card"></div>