From db1d1c40738588cc3b33507331a87fed153ea413 Mon Sep 17 00:00:00 2001 From: BetaHuhn Date: Fri, 27 Aug 2021 16:24:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Select=20crate=20in=20popup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 7 +- package.json | 3 +- src/main.scss | 37 +++ src/popup/App.vue | 104 ++++++-- src/popup/emojis.js | 630 ++++++++++++++++++++++++++++++++++++++++++++ src/popup/index.js | 10 + 6 files changed, 774 insertions(+), 17 deletions(-) create mode 100644 src/popup/emojis.js diff --git a/package-lock.json b/package-lock.json index 842d90e..7f22930 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "webcrate-extension", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -12701,6 +12701,11 @@ "vue-style-loader": "^4.1.0" } }, + "vue-select": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/vue-select/-/vue-select-3.13.0.tgz", + "integrity": "sha512-+PcWtfA1i3WVtkVwBPQknnOZL6QWSD2XiAVbSn0xAQvjOrmGAg7z+o9HkezXhtGdEstloJOdM8SujrUVyphKqg==" + }, "vue-style-loader": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", diff --git a/package.json b/package.json index 43c7e49..5712a8b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ }, "dependencies": { "axios": "^0.21.1", - "vue": "^2.6.14" + "vue": "^2.6.14", + "vue-select": "^3.13.0" }, "devDependencies": { "@babel/core": "^7.14.8", diff --git a/src/main.scss b/src/main.scss index f8d28e7..a44872d 100644 --- a/src/main.scss +++ b/src/main.scss @@ -138,4 +138,41 @@ a { h1 { margin: 0; +} + +.dropdown { + $vs-dropdown-bg: var(--background-2nd); + $vs-selected-bg: var(--background); + $vs-state-active-color: var(--background); + $vs-controls-color: var(--text-light); + $vs-component-placeholder-color: var(--text); + $vs-border-radius: var(--border-radius); + @import "vue-select/src/scss/vue-select.scss"; + + .vs__search, + .vs__dropdown-toggle, + .vs__dropdown-menu { + color: var(--text); + background: var(--background-2nd); + border-radius: var(--border-radius); + border: 2px solid var(--background-2nd); + border-radius: var(--border-radius); + } + + .vs__selected { + color: var(--text); + } + + .dropdown .vs__dropdown-toggle { + background: var(--text); + } + + .vs__dropdown-option { + color: var(--text); + } + + .vs__dropdown-option--highlight { + background: var(--grey-light); + color: var(--text); + } } \ No newline at end of file diff --git a/src/popup/App.vue b/src/popup/App.vue index ac53f80..b1cb9bd 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -1,10 +1,28 @@