From 8de8de76696ca2627dd17d7da5ccd1067729eebc Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Dec 2021 16:07:50 +0900 Subject: [PATCH] client: tweak ui --- .../client/src/components/global/spacer.vue | 2 +- packages/client/src/components/poll.vue | 137 ++++++++---------- 2 files changed, 64 insertions(+), 75 deletions(-) diff --git a/packages/client/src/components/global/spacer.vue b/packages/client/src/components/global/spacer.vue index 45481a2c8d..e2f1d1aec7 100644 --- a/packages/client/src/components/global/spacer.vue +++ b/packages/client/src/components/global/spacer.vue @@ -24,7 +24,7 @@ export default defineComponent({ marginMax: { type: Number, required: false, - default: 32, + default: 24, }, }, diff --git a/packages/client/src/components/poll.vue b/packages/client/src/components/poll.vue index 20a9900258..171b4a4770 100644 --- a/packages/client/src/components/poll.vue +++ b/packages/client/src/components/poll.vue @@ -1,7 +1,7 @@ @@ -118,38 +115,38 @@ export default defineComponent({ display: block; position: relative; margin: 4px 0; - padding: 4px 8px; - border: solid 0.5px var(--divider); + padding: 4px; + //border: solid 0.5px var(--divider); + background: var(--accentedBg); border-radius: 4px; overflow: hidden; cursor: pointer; - &:hover { - background: rgba(#000, 0.05); - } - - &:active { - background: rgba(#000, 0.1); - } - > .backdrop { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent); + background: linear-gradient(90deg,var(--buttonGradateA),var(--buttonGradateB)); transition: width 1s ease; } > span { position: relative; + display: inline-block; + padding: 3px 5px; + background: var(--panel); + border-radius: 3px; > i { margin-right: 4px; + color: var(--accent); } > .votes { margin-left: 4px; + opacity: 0.7; } } } @@ -166,14 +163,6 @@ export default defineComponent({ &.done { > ul > li { cursor: default; - - &:hover { - background: transparent; - } - - &:active { - background: transparent; - } } } }