dropdowns.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // Dropdowns
  3. // --------------------------------------------------
  4. // Unify .btn-link appearance with anchors
  5. .dropdown-menu>li>a,
  6. .dropdown-menu>li>.btn-link {
  7. display: block;
  8. border: none;
  9. clear: both;
  10. float: none;
  11. padding: 4px 20px;
  12. width: 100%;
  13. color: @dropdown-link-color;
  14. font-weight: normal;
  15. line-height: @line-height-base;
  16. text-align: left;
  17. white-space: nowrap;
  18. &:hover, &:focus {
  19. background-color: @dropdown-link-hover-bg;
  20. color: @dropdown-link-hover-color;
  21. text-decoration: none;
  22. }
  23. // Set material icons in dropdown menus
  24. .material-icon {
  25. margin: -2px 0px;
  26. margin-right: @line-height-computed * .35;
  27. position: relative;
  28. bottom: 1px;
  29. font-size: 18px;
  30. }
  31. .badge {
  32. float: right;
  33. }
  34. }
  35. // Bump min dropdown width to 210px
  36. .dropdown-menu {
  37. width: 210px;
  38. }
  39. // Dropdown footer
  40. .dropdown-menu .dropdown-footer {
  41. padding: 6px 20px;
  42. }
  43. // Always displayed on mobile dropdown
  44. .mobile-dropdown, .compact-nav {
  45. position: static;
  46. margin: 0px;
  47. overflow: auto;
  48. &.open {
  49. margin-top: @line-height-computed * -1;
  50. margin-bottom: @line-height-computed;
  51. }
  52. }
  53. .mobile-dropdown.open>.dropdown-menu, .compact-nav.open>.dropdown-menu {
  54. border: none;
  55. border-radius: 0;
  56. .box-shadow(none);
  57. display: block;
  58. margin: 0px;
  59. width: 100%;
  60. position: static;
  61. }
  62. // Guest menu
  63. .user-dropdown .guest-preview {
  64. text-align: center;
  65. .row {
  66. margin: 0px;
  67. }
  68. }
  69. // User menu
  70. .navbar .user-dropdown {
  71. width: 240px;
  72. }
  73. .user-dropdown .dropdown-header {
  74. padding: 6px 20px;
  75. font-size: @font-size-large;
  76. strong {
  77. font-weight: normal;
  78. }
  79. }