ui-select.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .ui-select-bootstrap > .ui-select-choices,
  2. .ui-select-bootstrap > .ui-select-no-choice {
  3. width: auto;
  4. max-width: 400px;
  5. }
  6. .dropdown-menu .ui-select-choices-row {
  7. padding: 4px 0;
  8. > .ui-select-choices-row-inner {
  9. overflow: hidden;
  10. text-overflow: ellipsis;
  11. }
  12. }
  13. .ui-select-placeholder,
  14. .ui-select-match-text {
  15. overflow: hidden;
  16. text-overflow: ellipsis;
  17. font-weight: normal;
  18. }
  19. .ui-select-bootstrap {
  20. &:focus {
  21. outline: none;
  22. }
  23. > .ui-select-match {
  24. &:focus {
  25. outline: none;
  26. }
  27. &.btn-default-focus {
  28. outline: 0;
  29. box-shadow: none;
  30. background-color: transparent;
  31. > .btn {
  32. border-color: @input-border-focus;
  33. box-shadow:
  34. inset 0 1px 1px rgba(0, 0, 0, 0.075),
  35. 0 0 8px fade(@input-border-focus, 60%);
  36. padding-top: @input-suggestion-v-offset;
  37. }
  38. }
  39. > .btn {
  40. color: @input-color;
  41. background-color: @input-bg;
  42. border: 1px solid @input-border;
  43. padding-top: @input-suggestion-v-offset;
  44. &[disabled] {
  45. cursor: not-allowed;
  46. background-color: @input-bg-disabled;
  47. opacity: 1;
  48. }
  49. }
  50. }
  51. }
  52. .ui-select-container[tagging] {
  53. .ui-select-toggle {
  54. cursor: text;
  55. padding-top: @input-suggestion-v-offset;
  56. > i.caret.pull-right {
  57. display: none;
  58. }
  59. }
  60. }