From 3cb68c945f5fa01e7df7bc0e8cf0dba792c3efc1 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 18 Oct 2021 14:20:16 +0200 Subject: [PATCH] feat: merge datepicker.scss styles with component --- src/components/input/datepicker.vue | 76 +++++++++++++++++++++++++++ src/styles/components/_index.scss | 1 - src/styles/components/datepicker.scss | 68 ------------------------ 3 files changed, 76 insertions(+), 69 deletions(-) delete mode 100644 src/styles/components/datepicker.scss diff --git a/src/components/input/datepicker.vue b/src/components/input/datepicker.vue index 724764c7..8fb7678c 100644 --- a/src/components/input/datepicker.vue +++ b/src/components/input/datepicker.vue @@ -243,3 +243,79 @@ export default { }, } + + \ No newline at end of file diff --git a/src/styles/components/_index.scss b/src/styles/components/_index.scss index cddca302..4bcf5247 100644 --- a/src/styles/components/_index.scss +++ b/src/styles/components/_index.scss @@ -15,6 +15,5 @@ @import "namespaces"; @import "legal"; @import "keyboard-shortcuts"; -@import "datepicker"; @import "notifications"; @import "quick-actions"; \ No newline at end of file diff --git a/src/styles/components/datepicker.scss b/src/styles/components/datepicker.scss deleted file mode 100644 index c4630b2c..00000000 --- a/src/styles/components/datepicker.scss +++ /dev/null @@ -1,68 +0,0 @@ -.datepicker { - input.input { - display: none; - } - - &.disabled a { - cursor: default; - } - - .datepicker-popup { - position: absolute; - z-index: 99; - width: 320px; - background: $white; - border-radius: $radius; - box-shadow: $card-shadow; - - a:not(.button) { - display: flex; - align-items: center; - padding: 0 .5rem; - width: 100%; - height: 2.25rem; - color: $text; - transition: all $transition; - - &:first-child { - border-radius: $radius $radius 0 0; - } - - &:hover { - background: $light; - } - - .text { - width: 100%; - font-size: .85rem; - display: flex; - justify-content: space-between; - padding-right: .25rem; - - .weekday { - color: $text-light; - text-transform: capitalize; - } - } - - .icon { - width: 2rem; - text-align: center; - } - } - - a.button { - margin: 1rem; - width: calc(100% - 2rem); - } - - .flatpickr-calendar { - margin: 0 auto 8px; - box-shadow: none; - } - - @media screen and (max-width: ($tablet)) { - width: calc(100vw - 5rem); - } - } -} \ No newline at end of file