summaryrefslogtreecommitdiff
path: root/sw-ui/src/components/game/Hand.css
diff options
context:
space:
mode:
Diffstat (limited to 'sw-ui/src/components/game/Hand.css')
-rw-r--r--sw-ui/src/components/game/Hand.css50
1 files changed, 50 insertions, 0 deletions
diff --git a/sw-ui/src/components/game/Hand.css b/sw-ui/src/components/game/Hand.css
new file mode 100644
index 00000000..8e7d93c5
--- /dev/null
+++ b/sw-ui/src/components/game/Hand.css
@@ -0,0 +1,50 @@
+.hand {
+ align-items: center;
+ bottom: 0;
+ display: flex;
+ height: 345px; /* can hold enhanced cards */
+ left: 50%;
+ max-height: 25vw;
+ position: absolute;
+ transform: translate(-50%, 55%);
+ transition: 0.5s;
+ z-index: 30;
+}
+.hand:hover {
+ bottom: 4rem;
+ transform: translate(-50%, 0%);
+}
+
+.hand-card {
+ align-items: flex-end;
+ display: grid;
+ margin: 0.2rem;
+}
+
+.hand-card .hand-card-img {
+ grid-row: 1;
+ grid-column: 1;
+ max-width: 13vw;
+ max-height: 60vh;
+ transition: 0.1s;
+ width: 11rem;
+}
+.hand-card.unplayable .hand-card-img {
+ filter: grayscale(50%) contrast(50%);
+}
+.hand-card:hover .hand-card-img {
+ box-shadow: 0 10px 40px black;
+ width: 14rem;
+ max-width: 15vw;
+ max-height: 90vh;
+}
+
+.hand-card .action-buttons {
+ align-items: flex-end;
+ display: none;
+ grid-row: 1;
+ grid-column: 1;
+}
+.hand-card:hover .action-buttons {
+ display: flex;
+}
bgstack15