_tom-select.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. $select-color-dropdown: #fff;
  2. $select-color-dropdown-border-top: red;
  3. $input-border-width: 1px;
  4. @import "tom-select/src/scss/tom-select.bootstrap5.scss";
  5. :root {
  6. --ts-pr-clear-button: 0rem;
  7. --ts-pr-caret: 0rem;
  8. }
  9. .ts-input {
  10. color: inherit;
  11. }
  12. .ts-control {
  13. color: inherit;
  14. .dropdown-menu {
  15. width: 100%;
  16. height: auto;
  17. }
  18. }
  19. .ts-wrapper {
  20. .form-control,
  21. .form-select,
  22. &.form-control,
  23. &.form-select {
  24. box-shadow: $input-box-shadow;
  25. }
  26. &.is-invalid,
  27. &.is-valid {
  28. .ts-control {
  29. --ts-pr-clear-button: 1.5rem;
  30. }
  31. }
  32. }
  33. .ts-dropdown {
  34. background: var(--#{$prefix}bg-surface);
  35. color: var(--#{$prefix}body-color);
  36. box-shadow: var(--#{$prefix}box-shadow-dropdown);
  37. .option {
  38. padding: $dropdown-item-padding-y $dropdown-item-padding-x;
  39. }
  40. }
  41. .ts-control,
  42. .ts-control input {
  43. color: var(--#{$prefix}body-color);
  44. }
  45. .ts-control input {
  46. &::placeholder{
  47. color: $input-placeholder-color;
  48. }
  49. }
  50. .ts-wrapper.multi .ts-control > div {
  51. background: var(--#{$prefix}bg-surface-secondary);
  52. border: 1px solid var(--#{$prefix}border-color);
  53. color: var(--#{$prefix}body-color);
  54. }