From 2b334dd51ab49a8638572aa4f54c8f26a967abdc Mon Sep 17 00:00:00 2001 From: jenesius Date: Tue, 15 Aug 2023 23:36:07 +0300 Subject: [PATCH] fix: update calendar grid --- plugin/styles/main.css | 73 ---------------------- plugin/widgets/input-field.vue | 1 - project/pages/test/App.vue | 4 +- src/styles/main.css | 2 + src/widgets/form-field.vue | 1 + src/widgets/input-date/input-date.vue | 15 +++-- src/widgets/input-date/widget-calendar.vue | 60 ++++++++++-------- src/widgets/input-text/input-text.vue | 3 + 8 files changed, 52 insertions(+), 107 deletions(-) delete mode 100644 plugin/styles/main.css diff --git a/plugin/styles/main.css b/plugin/styles/main.css deleted file mode 100644 index 32740dc..0000000 --- a/plugin/styles/main.css +++ /dev/null @@ -1,73 +0,0 @@ -:root { - --vf-input-active: #4e74ff; - --vf-input-active-disabled: #bac7f8; - --vf-input-error: #fa5c5c; - --vf-input-white-light: #f6f6f6; - --vf-input-white-dark: #dadada; - --vf-input-gray-light: #c8c8c8; - --vf-input-gray-dark: #b2b2b2; - --vf-input-black-dark: #333333; - --vf-input-black-light: #646363; - --vf-input-color: #1c1c1c; - --vf-input-background: #ffffff; - --vf-input-background-disabled: #e9e9e9; - - --vf-input-border-color: var(--vf-input-gray-light); - --vf-input-border-color-focus: var(--vf-input-gray-dark); - - --vf-input-font-size: 13.333px; - --vf-input-border-radius: 4px; - - --vf-input-height: 35px; - --vf-input-select-option-height: 240px; - - - --vf-input-border: 1px solid var(--vf-input-border-color); - --vf-input-border-error: 1px solid var(--vf-input-error); - --vf-input-border-focus: 1px solid var(--vf-input-border-color-focus); - --vf-input-label-color: var(--vf-input-black-dark); - --vf-input-transtion-fast: 0.1s; -} -.vf-input_clean { - border: 0; - outline: none; - background-color: transparent; - font-family: inherit; -} -.vf-grid-center { - display: grid; - place-content: center; -} -.vf-input-label { - color: var(--vf-input-label-color); - font-size: 13px; -} - - - -.vf-arrow { - border: solid var(--vf-input-gray-dark); - border-width: 0 2px 2px 0; - display: inline-block; - padding: 3px; - transition: transform 150ms, background-color 0.2s; -} -.vf-arrow_down { - transform: rotate(45deg); - -webkit-transform: rotate(45deg); -} - -.vf-arrow_up { - transform: rotate(-135deg); - -webkit-transform: rotate(-135deg); -} - -.slide-enter-from, -.slide-leave-to { - transform: translateY(20px); - opacity: 0; -} -.slide-enter-active, -.slide-leave-active { - transition: 0.2s; -} \ No newline at end of file diff --git a/plugin/widgets/input-field.vue b/plugin/widgets/input-field.vue index 2c6ad4c..b9e1eb0 100644 --- a/plugin/widgets/input-field.vue +++ b/plugin/widgets/input-field.vue @@ -104,7 +104,6 @@ function handleInput(v: any) { diff --git a/project/pages/test/App.vue b/project/pages/test/App.vue index b3bbecd..f3cb191 100644 --- a/project/pages/test/App.vue +++ b/project/pages/test/App.vue @@ -1,12 +1,12 @@