1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-27 03:46:54 +00:00
not-gwent-online/client/scss/_effects.scss

258 lines
4.7 KiB
SCSS
Raw Normal View History

2015-07-04 08:44:42 +00:00
.card-wrap {
float: left;
cursor: pointer;
z-index: 10;
height: auto !important;
width: auto !important;
margin: 3px;
}
.card-wrap .shadow,
.grave .shadow {
height: calc(100% - 40px);
left: 14px;
top: 20px;
width: calc(100% - 26px);
}
/*.card-wrap:hover {
z-index: 20;
}*/
.card {
border: none !important;
2015-07-04 09:22:16 +00:00
margin: 0;
2015-07-04 08:44:42 +00:00
border-radius: 0 !important;
overflow: visible !important;
height: 93px !important;
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.card {
float: left;
height: 93px;
width: 69px;
position: relative;
2015-07-04 09:22:16 +00:00
//causes weird bug when margin gets calculated
//transition: margin .05s ease-in-out 0s;
2015-07-04 08:44:42 +00:00
}
.card i {
display: block;
position: absolute;
top: 3px;
left: 3px;
height: 87px;
z-index: 10;
}
.small-cards-modal {
2015-07-03 17:23:10 +00:00
.hand-wrap {
2015-07-04 08:44:42 +00:00
background: rgba(0, 0, 0, .8);
2015-07-03 17:23:10 +00:00
width: 100%;
height: 130px;
position: absolute;
bottom: 0;
left: 0;
}
.card {
border: none !important;
margin: 0 !important;
border-radius: 0 !important;
overflow: visible !important;
height: 93px !important;
}
.hand-cards {
max-width: calc(100% - 350px);
margin: 0 auto;
width: 100%;
float: left;
}
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.card-wrap {
float: left;
cursor: pointer;
z-index: 10;
height: auto !important;
width: auto !important;
margin: 3px;
2015-07-04 09:22:16 +00:00
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 09:22:16 +00:00
.activeCard {
position: relative;
transform: scale(1.1, 1.1) !important;
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.card-wrap .shadow,
.grave .shadow {
height: calc(100% - 40px);
left: 14px;
top: 20px;
width: calc(100% - 26px);
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.card-wrap:hover, .activeCard {
z-index: 20;
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
/** SHAME **/
2015-07-04 11:24:50 +00:00
.card-wrap:hover .card-animation,
.activeCard .card-animation,
.grave:hover .card-animation,
.leader-card:hover .card-animation {
2015-07-04 08:44:42 +00:00
box-shadow: 0 0 2px 0 orange;
opacity: 1;
}
2015-07-04 11:24:50 +00:00
.card-animation {
2015-07-04 08:44:42 +00:00
width: 100%;
height: 100%;
position: absolute;
opacity: 0;
border-radius: 0;
2015-07-04 11:24:50 +00:00
background: linear-gradient(2deg, #000, #000, #000, #000);;
transition: all .05s ease-in-out 0s;
2015-07-04 08:44:42 +00:00
}
.shadow {
border-radius: 35%;
box-shadow: 0 0 15px 14px #ffa500;
content: "";
height: calc(100% - 50px);
left: 15px;
position: absolute;
width: calc(100% - 22px);
z-index: 1;
top: 30px;
transition: all 0.3s ease-in-out 0s;
opacity: 0;
}
.card-wrap:hover .shadow,
.grave:hover .shadow,
.activeCard .shadow,
.leader-card:hover .shadow {
-webkit-animation: Shadow 4s ease-in-out infinite;
-moz-animation: Shadow 4s ease-in-out infinite;
animation: Shadow 4s ease-in-out infinite;
}
2015-07-04 11:24:50 +00:00
.card-wrap:hover .card-animation,
.activeCard .card-animation,
.grave:hover .card-animation,
.leader-card:hover .card-animation {
2015-07-04 08:44:42 +00:00
background: linear-gradient(2deg, #ffa500, #ffd68b, #ffa500, #ffa500);
background-size: 800% 800%;
2015-07-04 11:24:50 +00:00
-webkit-animation: CardAnimation 3s ease infinite;
-moz-animation: CardAnimation 3s ease infinite;
animation: CardAnimation 3s ease infinite;
2015-07-04 08:44:42 +00:00
}
@-webkit-keyframes Shadow {
2015-07-04 11:24:50 +00:00
0% { opacity: 0; }
25% { opacity: .5; }
50% { opacity: 1; }
75% { opacity: .5; }
100% { opacity: 0; }
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
@-webkit-keyframes Shadow {
2015-07-04 11:24:50 +00:00
0% { opacity: 0; }
25% { opacity: .5; }
50% { opacity: 1; }
75% { opacity: .5; }
100% { opacity: 0; }
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
@keyframes Shadow {
2015-07-04 11:24:50 +00:00
0% { opacity: 0; }
25% { opacity: .5; }
50% { opacity: 1; }
75% { opacity: .5; }
100% { opacity: 0; }
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.overlay-card {
background: linear-gradient(2deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
background-size: 800% 800%;
position: absolute;
z-index: 20;
top: 3px;
left: 3px;
width: calc(100% - 4px);
height: calc(100% - 4px);
opacity: 0;
cursor: pointer;
}
2015-07-03 17:23:10 +00:00
2015-07-04 08:44:42 +00:00
.card-wrap:hover .overlay-card,
.activeCard .overlay-card,
.grave:hover .overlay-card,
.leader-card:hover .overlay-card {
opacity: 1;
-webkit-animation: AnimationName 10s ease infinite;
-moz-animation: AnimationName 10s ease infinite;
animation: AnimationName 10s ease infinite;
}
2015-07-03 17:23:10 +00:00
2015-07-04 11:24:50 +00:00
@-webkit-keyframes CardAnimation {
0% { background-position: 51% 0% }
50% { background-position: 50% 100% }
100% { background-position: 51% 0% }
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 11:24:50 +00:00
@-moz-keyframes CardAnimation {
0% { background-position: 51% 0% }
50% { background-position: 50% 100% }
100% { background-position: 51% 0% }
2015-07-04 08:44:42 +00:00
}
2015-07-03 17:23:10 +00:00
2015-07-04 11:24:50 +00:00
@keyframes CardAnimation {
0% { background-position: 51% 0% }
50% { background-position: 50% 100% }
100% { background-position: 51% 0% }
2015-07-04 08:44:42 +00:00
}
/** SUB HAND **/
.sub-hand {
float: left;
width: 150px;
margin: 18px 0 0 0;
}
.grave {
position: relative;
width: 69px;
height: 93px;
float: left;
}
.grave-img {
background: url(../grave.png) no-repeat;
position: absolute;
width: 63px;
height: 87px;
top: 3px;
left: 3px;
z-index: 10;
}
.deck-back {
background: url(../back.png) no-repeat;
float: left;
width: 63px;
height: 87px;
margin: 3px 0 0 10px;
}
2015-07-03 17:23:10 +00:00