From 3d2d5d7fe149852bc37f8da9cf13f3646dee0162 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Jun 2022 15:59:49 +0900 Subject: [PATCH] chore(client): refactor and style tweaks --- packages/client/src/components/form/input.vue | 257 ++++++---------- .../client/src/components/form/select.vue | 288 ++++++++---------- .../client/src/components/poll-editor.vue | 18 +- packages/client/src/pages/settings/theme.vue | 45 ++- 4 files changed, 250 insertions(+), 358 deletions(-) diff --git a/packages/client/src/components/form/input.vue b/packages/client/src/components/form/input.vue index 5065e2889..ec1ad20de 100644 --- a/packages/client/src/components/form/input.vue +++ b/packages/client/src/components/form/input.vue @@ -33,176 +33,118 @@ - @@ -229,14 +171,13 @@ export default defineComponent({ } > .input { - $height: 42px; position: relative; > input { appearance: none; -webkit-appearance: none; display: block; - height: $height; + height: v-bind("height + 'px'"); width: 100%; margin: 0; padding: 0 12px; @@ -266,7 +207,7 @@ export default defineComponent({ top: 0; padding: 0 12px; font-size: 1em; - height: $height; + height: v-bind("height + 'px'"); pointer-events: none; &:empty { diff --git a/packages/client/src/components/form/select.vue b/packages/client/src/components/form/select.vue index 7f5f8784b..05e95a091 100644 --- a/packages/client/src/components/form/select.vue +++ b/packages/client/src/components/form/select.vue @@ -26,178 +26,139 @@ -