Fix vue-select styling

pull/389/head
MattIPv4 2022-10-02 17:23:15 +01:00
parent 043316b533
commit 0e625ea41c
4 changed files with 8 additions and 8 deletions

View File

@ -26,6 +26,7 @@ THE SOFTWARE.
// Load in the app // Load in the app
import './scss/style.scss'; import './scss/style.scss';
import 'vue-select/dist/vue-select.css';
import { createApp } from 'vue'; import { createApp } from 'vue';
import './util/prism_bundle'; import './util/prism_bundle';
import { getI18n } from './i18n/setup'; import { getI18n } from './i18n/setup';

View File

@ -33,7 +33,7 @@ THE SOFTWARE.
&.floating { &.floating {
bottom: 0; bottom: 0;
box-shadow: inset 0 0 0 $border-size $border-color; box-shadow: inset 0 0 0 $border-size $border;
max-width: calc(100% - 1rem); max-width: calc(100% - 1rem);
position: fixed; position: fixed;
right: 0; right: 0;

View File

@ -26,6 +26,11 @@ THE SOFTWARE.
// stylelint-disable selector-class-pattern // stylelint-disable selector-class-pattern
.v-select { .v-select {
--vs-border-color: #{$border};
--vs-border-radius: #{$border-radius};
--vs-dropdown-box-shadow: 0 2px 4px #{rgba($dark-blue, .06)};
--vs-dropdown-option--active-bg: #{$primary}; // stylelint-disable-line custom-property-pattern
&.vs--open { &.vs--open {
> ul { > ul {
opacity: 1; opacity: 1;
@ -100,6 +105,7 @@ THE SOFTWARE.
.vs__dropdown-menu { .vs__dropdown-menu {
.vs__dropdown-option { .vs__dropdown-option {
padding: .25rem 1.25rem;
white-space: normal; white-space: normal;
} }
} }

View File

@ -38,13 +38,6 @@ $callout: #f3f5f9;
@import "~pretty-checkbox/src/pretty-checkbox"; @import "~pretty-checkbox/src/pretty-checkbox";
$vs-border-color: $border;
$vs-border-radius: $border-radius;
$vs-dropdown-box-shadow: 0 2px 4px rgba($dark-blue, .06);
$vs-state-active-bg: $primary;
@import "~vue-select/src/scss/vue-select";
// Local imports // Local imports
@import "header"; @import "header";
@import "tabs"; @import "tabs";