ui-select.less 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: inset 0 1px 1px rgba(0, 0, 0, 0.075),
  34. 0 0 8px fade(@input-border-focus, 60%);
  35. padding-top: @input-suggestion-v-offset;
  36. }
  37. }
  38. > .btn {
  39. color: @input-color;
  40. background-color: @input-bg;
  41. border: 1px solid @input-border;
  42. padding-top: @input-suggestion-v-offset;
  43. &[disabled] {
  44. cursor: not-allowed;
  45. background-color: @input-bg-disabled;
  46. opacity: 1;
  47. }
  48. }
  49. }
  50. }
  51. .ui-select-container[tagging] {
  52. .ui-select-toggle {
  53. cursor: text;
  54. padding-top: @input-suggestion-v-offset;
  55. > i.caret.pull-right {
  56. display: none;
  57. }
  58. }
  59. }