From 965133d6e2470eb46bc6f42db2d493d89296ad2e Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sun, 15 Dec 2019 05:29:03 +0530 Subject: [PATCH] :art: Styled select input --- assets/css/styles.scss | 22 ++++- components/collections/editRequest.vue | 64 ++++++++------ components/collections/saveRequestAs.vue | 107 +++++++++++++---------- pages/index.vue | 55 +++++++----- 4 files changed, 153 insertions(+), 95 deletions(-) diff --git a/assets/css/styles.scss b/assets/css/styles.scss index 069350987..3285d6874 100644 --- a/assets/css/styles.scss +++ b/assets/css/styles.scss @@ -550,11 +550,31 @@ code { border-radius: 8px; } +.select-wrapper { + position: relative; + + &:after { + display: inline-block; + position: absolute; + pointer-events: none; + content: "\e313"; + font-family: "Material Icons"; + top: 14px; + right: 14px; + } +} + select { height: 37px; - line-height: 37px; background-color: var(--bg-dark-color); cursor: pointer; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + + &::-ms-expand { + display: none; + } } option { diff --git a/components/collections/editRequest.vue b/components/collections/editRequest.vue index 8e3e6de69..46323d10e 100644 --- a/components/collections/editRequest.vue +++ b/components/collections/editRequest.vue @@ -26,35 +26,47 @@ :placeholder="request.name" /> - - - + + + + - - + + + + diff --git a/components/collections/saveRequestAs.vue b/components/collections/saveRequestAs.vue index 03af8ef41..c3b5042a1 100644 --- a/components/collections/saveRequestAs.vue +++ b/components/collections/saveRequestAs.vue @@ -26,49 +26,64 @@ @keyup.enter="saveRequestAs" /> - - - + + + + - - + + + + - - + + + + @@ -121,11 +136,13 @@ export default { const userSelectedAnyCollection = this.$data.requestData.collectionIndex !== undefined; if (!userSelectedAnyCollection) return []; - - const noCollectionAvailable = - this.$store.state.postwoman.collections[this.$data.requestData.collectionIndex] !== undefined; + + const noCollectionAvailable = + this.$store.state.postwoman.collections[ + this.$data.requestData.collectionIndex + ] !== undefined; if (!noCollectionAvailable) return []; - + return this.$store.state.postwoman.collections[ this.$data.requestData.collectionIndex ].folders; @@ -148,8 +165,10 @@ export default { const collection = this.$store.state.postwoman.collections[ this.$data.requestData.collectionIndex ]; - const noCollectionAvailable = - this.$store.state.postwoman.collections[this.$data.requestData.collectionIndex] !== undefined; + const noCollectionAvailable = + this.$store.state.postwoman.collections[ + this.$data.requestData.collectionIndex + ] !== undefined; if (!noCollectionAvailable) return []; const requests = collection.requests; diff --git a/pages/index.vue b/pages/index.vue index 4cf1cc54f..5a2ba82bd 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -44,17 +44,19 @@