From 1a989d0661b9558c1e26ff09759279d4ca78ef89 Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 9 Jun 2019 22:33:25 +0300 Subject: [PATCH] polish the poll form --- src/App.scss | 9 ++ src/components/poll/poll_form/poll_form.vue | 152 ++++++++++++------ .../post_status_form/post_status_form.js | 21 +-- .../post_status_form/post_status_form.vue | 16 +- src/i18n/en.json | 13 +- src/main.js | 2 - src/modules/instance.js | 2 +- src/modules/poll.js | 49 ------ 8 files changed, 144 insertions(+), 120 deletions(-) delete mode 100644 src/modules/poll.js diff --git a/src/App.scss b/src/App.scss index cc00ec31..0bdb686b 100644 --- a/src/App.scss +++ b/src/App.scss @@ -264,6 +264,15 @@ option { background-color: var(--bg, $fallback--bg); } +.hide-number-spinner { + -moz-appearance: textfield; + &[type=number]::-webkit-inner-spin-button, + &[type=number]::-webkit-outer-spin-button { + opacity: 0; + display: none; + } +} + i[class*=icon-] { color: $fallback--icon; color: var(--icon, $fallback--icon) diff --git a/src/components/poll/poll_form/poll_form.vue b/src/components/poll/poll_form/poll_form.vue index f6f9fe4b..523145a9 100644 --- a/src/components/poll/poll_form/poll_form.vue +++ b/src/components/poll/poll_form/poll_form.vue @@ -1,6 +1,5 @@