search-dropdown.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // Search Dropdown
  3. // --------------------------------------------------
  4. .dropdown-search-results {
  5. border-radius: 0px 0px @border-radius-base @border-radius-base;
  6. }
  7. .dropdown-search-message {
  8. border-top: 1px solid @gray-lighter;
  9. padding: @padding-large-vertical @padding-large-horizontal;
  10. color: @text-muted;
  11. }
  12. .dropdown-search-loader {
  13. border-top: 1px solid @gray-lighter;
  14. padding: @padding-large-vertical @padding-large-horizontal;
  15. }
  16. .dropdown-search-header {
  17. border-top: 1px solid @gray-lighter;
  18. padding: 8px 20px;
  19. color: @text-muted;
  20. font-weight: bold;
  21. }
  22. // result
  23. .dropdown-search-thread, .dropdown-search-user {
  24. small {
  25. color: @text-muted;
  26. }
  27. &:hover small, &:focus small {
  28. color: @dropdown-link-hover-color;
  29. }
  30. &:active small {
  31. color: @dropdown-link-active-color;
  32. }
  33. }
  34. .dropdown-search-thread {
  35. .dropdown-search-post-content {
  36. overflow: hidden;
  37. white-space: normal;
  38. max-height: 47px;
  39. }
  40. .dropdown-search-post-footer {
  41. white-space: nowrap;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. }
  45. }
  46. // footer
  47. .dropdown-search-footer {
  48. padding-bottom: @padding-small-vertical;
  49. &:last-child {
  50. padding-bottom: 0px;
  51. }
  52. }
  53. .dropdown-menu > li.dropdown-search-footer > a {
  54. font-size: small;
  55. }