Skip to content

Commit

Permalink
Fix hovered meld cards being covered by adjacent cards
Browse files Browse the repository at this point in the history
  • Loading branch information
fenhl committed Oct 18, 2018
1 parent d237699 commit 5d8ce25
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frontend/app/assets/stylesheets/application.scss
Expand Up @@ -212,6 +212,7 @@ form.search {
.card_picture_container {
position: relative;
perspective: 1000px;
z-index: 0;

.foil_layer {
position: absolute;
Expand All @@ -230,7 +231,6 @@ form.search {
left: 0;
top: 0;
position: relative;
z-index: 0;

img {
width: 100%;
Expand All @@ -240,9 +240,6 @@ form.search {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;

&:hover {
z-index: 1;
}
&.flip:hover {
transform: rotateZ(180deg);
}
Expand Down Expand Up @@ -293,6 +290,9 @@ form.search {
}
}
}
&:hover {
z-index: 1;
}
& .dfc,
& .dfc_back {
}
Expand Down Expand Up @@ -328,15 +328,12 @@ form.search {
}
&:hover .melded {
transform: rotateY(180deg);
z-index: 1;
}
&:hover .meld0 {
transform: translateY(-30%) rotateY(360deg);
z-index: 1;
}
&:hover .meld1 {
transform: translateY(72%) rotateY(360deg);
z-index: 1;
}
}
.picture_missing {
Expand Down

0 comments on commit 5d8ce25

Please sign in to comment.