Skip to content
Permalink
Browse files

clean card image loaders

  • Loading branch information...
Manuel-777 committed Feb 17, 2019
1 parent 3098669 commit 7f87c1737c0bbfd394f7a710abe2df012cc9a501
Showing with 6 additions and 6 deletions.
  1. +4 −6 shared/shared.css
  2. +2 −0 shared/util.js
@@ -503,25 +503,23 @@ label {
.loader, .loader_dfc {
pointer-events: none;
align-self: right;
/* width: 90%; */
max-width: 240px;
max-height: 340px;
opacity: 0;
display: block;
/* margin-left: auto; */
margin-right: 24px;
margin-bottom: 24px;
margin-bottom: 12px;
-webkit-border-radius: 4.75% / 3.5%;
-webkit-transition: all .2s ease-in;
}

.main_hover, .main_hover_dfc {
pointer-events: none;
align-self: right;
/* max-width: 240px; */
max-width: 240px;
max-height: 340px;
opacity: 1;
display: block;
max-height: 340px;
/* margin-left: auto; */
margin-right: 24px;
margin-bottom: 12px;
-webkit-border-radius: 4.75% / 3.5%;
@@ -201,6 +201,7 @@ function addCardHover(div, _card) {
}

div.addEventListener("mouseover", () => {
$('.loader').css("opacity", 1);
$('.main_hover').css("opacity", 1);
let dfc = '';
if (_card.dfc == 'DFC_Back') dfc = 'a';
@@ -211,6 +212,7 @@ function addCardHover(div, _card) {
if (dfc != '' && _card.dfc != 'SplitHalf' && renderer == 0) {
$('.main_hover_dfc').show();
$('.loader_dfc').show();
$('.loader_dfc').css("opacity", 1);
$('.main_hover_dfc').css("opacity", 1);
$('.loader_dfc').css("opacity", 1);
var dfcCard = cardsDb.get(_card.dfcId);

0 comments on commit 7f87c17

Please sign in to comment.
You can’t perform that action at this time.