From db027cde772eb62e19561cfb7666f0fa3b7002e7 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 20 Dec 2020 17:36:01 -0700 Subject: [PATCH] Make discard hand component have proper UI. --- web/src/components/DiscardHandButton.vue | 116 +++++++++++++++++++++-- 1 file changed, 109 insertions(+), 7 deletions(-) diff --git a/web/src/components/DiscardHandButton.vue b/web/src/components/DiscardHandButton.vue index 1e77928..20eb35c 100644 --- a/web/src/components/DiscardHandButton.vue +++ b/web/src/components/DiscardHandButton.vue @@ -1,19 +1,75 @@ @@ -23,13 +79,59 @@ export default { @import "../css/style.css"; #DiscardHandButton { - background-color: var(--background3); - border-radius: 100% 0 0 0; height: var(--size); width: var(--size); - position: fixed; + position: absolute; --size: 120px; bottom: 0; right: 0; } + +button { + outline: none; +} + +.discard-hand { + background-color: var(--background3); + border-radius: 100% 0 0 0; + position: relative; + border-style: none; + height: 100%; + width: 100%; + padding: 0; +} + +.icon { + position: absolute; + bottom: 15px; + right: 15px; + width: 60px; +} + +.buttons { + justify-content: space-evenly; + display: flex; +} + +.modal-button { + border-radius: 7px; + border-style: none; + font-size: larger; + padding: 7px; + margin: 5px; +} + +.confirm { + background-color: var(--confirm-background); + color: var(--confirm-text); +} +.confirm:hover { background-color: var(--confirm-background-darken); } +.confirm:focus { background-color: var(--confirm-background-lighten); } + +.cancel { + background-color: var(--cancel-background); + color: var(--cancel-text); +} +.cancel:hover { background-color: var(--cancel-background-darken); } +.cancel:focus { background-color: var(--cancel-background-lighten); } \ No newline at end of file