vue-autosuggest.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Core variables and mixins
  2. @import '~@resources/scss/base/bootstrap-extended/include';
  3. // Overrides user variable
  4. @import '~@resources/scss/base/components/include';
  5. // customize the dropdown
  6. .autosuggest__results-container {
  7. position: relative;
  8. z-index: 999;
  9. .autosuggest__results {
  10. position: absolute;
  11. background-color: $white;
  12. width: 100%;
  13. margin-top: 1rem;
  14. overflow-y: auto;
  15. border-radius: 0.5rem;
  16. max-height: 40vh;
  17. box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.11), 0 5px 15px 0 rgba(0, 0, 0, 0.08) !important;
  18. ul {
  19. padding-left: 0;
  20. margin-bottom: 0;
  21. li {
  22. list-style: none;
  23. padding: 0.75rem 1rem;
  24. &:hover,
  25. &.autosuggest__results-item--highlighted {
  26. background: $gray-200;
  27. }
  28. .detail {
  29. line-height: 0.5;
  30. }
  31. }
  32. .autosuggest__results-before {
  33. color: $primary;
  34. font-weight: 600;
  35. }
  36. }
  37. }
  38. }
  39. //--------- dark layout ---------//
  40. body {
  41. &.dark-layout {
  42. .autosuggest__results-container {
  43. .autosuggest__results {
  44. background-color: $theme-dark-input-bg;
  45. color: $theme-dark-body-color;
  46. // on hover
  47. .autosuggest__results-item--highlighted,
  48. .autosuggest__results-item:hover,
  49. .autosuggest__results-before:hover {
  50. background-color: $theme-dark-table-hover-bg;
  51. }
  52. .my-suggestion-item {
  53. color: $theme-dark-body-color;
  54. }
  55. }
  56. }
  57. }
  58. }