From 214290439f24614b66022eb2439aca67d3b5da39 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sun, 15 Sep 2019 23:42:16 +0200 Subject: [PATCH] Start adding drag&drop --- src/components/GameBoard/Zone.vue | 60 +++++++++++++++++++++++++++++++ src/views/Game.vue | 46 ++++++++++++++---------- 2 files changed, 87 insertions(+), 19 deletions(-) create mode 100644 src/components/GameBoard/Zone.vue diff --git a/src/components/GameBoard/Zone.vue b/src/components/GameBoard/Zone.vue new file mode 100644 index 0000000..742ed85 --- /dev/null +++ b/src/components/GameBoard/Zone.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/views/Game.vue b/src/views/Game.vue index 5914eaa..72fbc31 100644 --- a/src/views/Game.vue +++ b/src/views/Game.vue @@ -2,23 +2,28 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -83,7 +88,6 @@ $hand-max-height: 150px; grid-column: 1/4; } .problem-card { - border: 2px solid rgba(255, 255, 255, 0.2); grid-row: 2/5; grid-column: 2; } @@ -91,16 +95,6 @@ $hand-max-height: 150px; } } -.zone { - border: 2px solid rgba(255, 255, 255, 0.2); - margin: 2px; - padding: 2px; - border-radius: 5px; - display: flex; - flex-flow: column; - flex: 1; -} - .hand { grid-column: 2; grid-row: 3; @@ -121,6 +115,9 @@ $hand-max-height: 150px; &:hover { margin-top: $card-gap - 30px; } + &:active { + cursor: grabbing; + } } overflow: visible; } @@ -139,9 +136,12 @@ $hand-max-height: 150px;