diff --git a/src/components/hk-components/hk-roll.vue b/src/components/hk-components/hk-roll.vue index ddd3f5ae..29cbae95 100644 --- a/src/components/hk-components/hk-roll.vue +++ b/src/components/hk-components/hk-roll.vue @@ -8,7 +8,7 @@ @mousemove="checkAdvantage($event)" @mouseout="clearAdvantage()" v-touch-hold.mouse="!disabled ? showDialog : null" - @click.stop="disabled ? null : roll ? rollDice($event) : emit($event)" + @click.stop.prevent="disabled ? null : roll ? rollDice($event) : emit($event)" > diff --git a/src/components/npcs/Actions.vue b/src/components/npcs/Actions.vue index 0b0c61b5..73df0838 100644 --- a/src/components/npcs/Actions.vue +++ b/src/components/npcs/Actions.vue @@ -28,10 +28,10 @@ -
+
@@ -819,4 +853,35 @@ h3 { .disadvantage .roll-button:hover { background-image: url("../../assets/_img/logo/logo-icon-no-shield-red.svg"); } +.drag { + &-ghost { + opacity: 0.6; + } + &-handle { + color: $neutral-2; + cursor: grab; + } + &-dragging { + opacity: 1 !important; + cursor: grabbing; + margin-top: -42px !important; + margin-left: -40px !important; + box-shadow: 0 10px 15px $black; + background-color: $neutral-9; + + ::v-deep { + .q-item { + margin: 0 !important; + } + } + } +} +.action-list { + transition: transform 0.5s; +} +::v-deep { + .q-item { + user-select: none; + } +} diff --git a/src/css/styles.scss b/src/css/styles.scss index 03c2cd93..e81014c9 100644 --- a/src/css/styles.scss +++ b/src/css/styles.scss @@ -640,6 +640,95 @@ html body { } } } + .-m { + &-1 { + margin: -0.25rem !important; + } + &-2 { + margin: -0.5rem !important; + } + &-3 { + margin: -1rem !important; + } + &-4 { + margin: -1.5rem !important; + } + &-5 { + margin: -3rem !important; + } + &b, + &y { + &-1 { + margin-bottom: -0.25rem !important; + } + &-2 { + margin-bottom: -0.5rem !important; + } + &-3 { + margin-bottom: -1rem !important; + } + &-4 { + margin-bottom: -1.5rem !important; + } + &-5 { + margin-bottom: -3rem !important; + } + } + &t, + &y { + &-1 { + margin-top: -0.25rem !important; + } + &-2 { + margin-top: -0.5rem !important; + } + &-3 { + margin-top: -1rem !important; + } + &-4 { + margin-top: -1.5rem !important; + } + &-5 { + margin-top: -3rem !important; + } + } + &l, + &x { + &-1 { + margin-left: -0.25rem !important; + } + &-2 { + margin-left: -0.5rem !important; + } + &-3 { + margin-left: -1rem !important; + } + &-4 { + margin-left: -1.5rem !important; + } + &-5 { + margin-left: -3rem !important; + } + } + &r, + &x { + &-1 { + margin-right: -0.25rem !important; + } + &-2 { + margin-right: -0.5rem !important; + } + &-3 { + margin-right: -1rem !important; + } + &-4 { + margin-right: -1.5rem !important; + } + &-5 { + margin-right: -3rem !important; + } + } + } //PADDINGS .p {