Skip to content

Commit

Permalink
moves vselect placement CSS to vendor SCSS file
Browse files Browse the repository at this point in the history
  • Loading branch information
13twelve committed Dec 11, 2024
1 parent a958441 commit 52b981b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frontend/js/components/VSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@
</div>
</template>

<style>
.vs__dropdown-menu {
transition: none;
}
.vs__dropdown-menu[data-popper-placement='top'] {
border-radius: 4px 4px 0 0;
border-top-style: solid;
border-bottom-style: none;
box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.15);
}
</style>

<script>
import debounce from 'lodash/debounce'
import { createPopper } from '@popperjs/core'
Expand Down
8 changes: 8 additions & 0 deletions frontend/scss/vendor/_vselect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ $multiSelectHeight: 45px;
box-shadow: 0px 1px 3.5px 0px rgba(0, 0, 0, 0.30);
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
transition: none;

&[data-popper-placement='top'] {
border-radius: 2px 2px 0 0;
border-top: 0 none;
border-bottom: 1px solid $color__border--light;
box-shadow: 0px -1px 3.5px 0px rgba(0, 0, 0, 0.30);
}

li.vs__no-options {
color:$color__text--light;
Expand Down

0 comments on commit 52b981b

Please sign in to comment.