dropdowns.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. }
  32. // Dropdown footer
  33. .dropdown-menu .dropdown-footer {
  34. padding: 6px 20px;
  35. }
  36. // Always displayed on mobile dropdown
  37. .mobile-dropdown, .compact-nav {
  38. position: static;
  39. margin: 0px;
  40. overflow: auto;
  41. &.open {
  42. margin-top: @line-height-computed * -1;
  43. margin-bottom: @line-height-computed;
  44. }
  45. }
  46. .mobile-dropdown.open>.dropdown-menu, .compact-nav.open>.dropdown-menu {
  47. border: none;
  48. border-radius: 0;
  49. .box-shadow(none);
  50. display: block;
  51. margin: 0px;
  52. width: 100%;
  53. position: static;
  54. }
  55. // Guest menu
  56. .user-dropdown .guest-preview {
  57. text-align: center;
  58. .row {
  59. margin: 0px;
  60. }
  61. }
  62. // User menu
  63. .navbar .user-dropdown {
  64. width: 240px;
  65. }
  66. .user-dropdown .dropdown-header {
  67. padding: 6px 20px;
  68. font-size: @font-size-large;
  69. strong {
  70. font-weight: normal;
  71. }
  72. }