|
@@ -254,17 +254,14 @@ button.color-select:hover {
|
|
|
--tile-block-padding: 0.25rem;
|
|
|
--tile-border-radius: 8px;
|
|
|
transition: transform 250ms ease-out;
|
|
|
-}
|
|
|
-
|
|
|
-.pkmn-tile:hover {
|
|
|
- transform: scale(105%) translateX(-3%) translateY(-5%);
|
|
|
+ background-color: var(--background);
|
|
|
}
|
|
|
|
|
|
.pkmn-tile:hover .ellipsis {
|
|
|
overflow: visible;
|
|
|
width: fit-content;
|
|
|
background-color: var(--background);
|
|
|
- z-index: 1;
|
|
|
+ box-shadow: 0px 0px 2px 4px var(--background);
|
|
|
}
|
|
|
|
|
|
.pkmn-tile .pkmn-info {
|
|
@@ -277,6 +274,7 @@ button.color-select:hover {
|
|
|
}
|
|
|
|
|
|
.pkmn-tile .cluster-buttons {
|
|
|
+ position: relative;
|
|
|
--gap: 0.125rem;
|
|
|
justify-content: center;
|
|
|
|
|
@@ -306,9 +304,70 @@ button.color-select:hover {
|
|
|
|
|
|
.pkmn-tile button[data-best="true"]::before {
|
|
|
position: absolute;
|
|
|
- top: calc(50% - 1.25ch);
|
|
|
- left: 0.5rem;
|
|
|
content: "▸";
|
|
|
+ inset: 50% auto auto 1ch;
|
|
|
+ /* slightly nicer than a normal vertical centering */
|
|
|
+ transform: translateY(-55%);
|
|
|
+}
|
|
|
+
|
|
|
+.pkmn-tile :is(.cluster-info, .total-info) {
|
|
|
+ visibility: hidden;
|
|
|
+ position: absolute;
|
|
|
+ opacity: 0%;
|
|
|
+ transition: visibility 200ms, opacity 200ms ease-out, transform 200ms ease-out;
|
|
|
+ font-size: 0.75rem;
|
|
|
+
|
|
|
+ grid-template-columns: repeat(4, 1fr);
|
|
|
+ column-gap: 0.5ch;
|
|
|
+
|
|
|
+ padding: var(--tile-block-padding) 0.5ch;
|
|
|
+ border-radius: var(--tile-border-radius);
|
|
|
+ background-color: var(--highlight);
|
|
|
+ color: var(--background);
|
|
|
+}
|
|
|
+
|
|
|
+.pkmn-tile .cluster-info {
|
|
|
+ inset: 50% 105% auto auto;
|
|
|
+ transform: translateY(-50%);
|
|
|
+}
|
|
|
+
|
|
|
+.pkmn-tile .total-info {
|
|
|
+ inset: 50% auto auto 50%;
|
|
|
+ z-index: 20;
|
|
|
+ transform: translateY(-25%);
|
|
|
+}
|
|
|
+
|
|
|
+.pkmn-tile button:hover + :is(.cluster-info, .total-info),
|
|
|
+:is(.cluster-info, .total-info):hover {
|
|
|
+ visibility: visible;
|
|
|
+ opacity: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+@media not (prefers-reduced-motion) {
|
|
|
+ .pkmn-tile:hover {
|
|
|
+ transform: scale(105%) translateX(-3%) translateY(-5%);
|
|
|
+ z-index: 10;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pkmn-tile button:hover + .total-info {
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .pkmn-tile button:hover + .cluster-info:nth-child(2) {
|
|
|
+ transform: translateY(-80%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .pkmn-tile button:hover + .cluster-info:nth-child(4) {
|
|
|
+ transform: translateY(-60%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .pkmn-tile button:hover + .cluster-info:nth-child(6) {
|
|
|
+ transform: translateY(-40%);
|
|
|
+ }
|
|
|
+
|
|
|
+ .pkmn-tile button:hover + .cluster-info:nth-child(8) {
|
|
|
+ transform: translateY(-20%);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* Sort Function Controls */
|