dropdowns.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // Dropdowns
  3. // --------------------------------------------------
  4. // Dropdowns style
  5. .dropdown-menu {
  6. border-radius: @dropdown-border-radius;
  7. .box-shadow(@dropdown-shadow);
  8. }
  9. .dropdown-menu > li > a > .badge {
  10. float: right;
  11. }
  12. .dropdown-space {
  13. padding: 7px 20px;
  14. }
  15. .dropdown-footer {
  16. background: @dropdown-footer-bg;
  17. border-top: 1px solid @dropdown-footer-border;
  18. border-radius: 0px 0px @dropdown-border-radius @dropdown-border-radius;
  19. padding: 7px 20px;
  20. }
  21. // Upscale dropdown on small display
  22. @media (max-width: @screen-sm-max) {
  23. .dropdown-menu {
  24. &>li>a {
  25. padding-top: @padding-large-vertical;
  26. padding-bottom: @padding-large-vertical;
  27. }
  28. }
  29. }
  30. // User dropdown
  31. .user-dropdown {
  32. width: 300px;
  33. padding: 0px;
  34. .user-preview, .guest-preview {
  35. border-bottom: 1px solid @dropdown-divider-bg;
  36. margin-bottom: 8px;
  37. padding: 12px 20px;
  38. .editable-avatar {
  39. margin-right: 4px;
  40. }
  41. .row {
  42. margin-top: @line-height-computed * 1.3;
  43. div:first-child {
  44. padding-right: 4px;
  45. }
  46. div:last-child {
  47. padding-left: 4px;
  48. }
  49. }
  50. }
  51. .guest-preview {
  52. border-bottom: 0px;
  53. margin-bottom: 4px;
  54. }
  55. .dropdown-footer {
  56. margin-top: 8px;
  57. }
  58. }