navbar.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // Forum Navbar
  3. // --------------------------------------------------
  4. .navbar-default {
  5. .navbar-brand {
  6. font-size: @font-size-large * 1.6;
  7. }
  8. .navbar-nav-user {
  9. .user-toggle {
  10. overflow: auto;
  11. img {
  12. border-radius: @border-radius-base;
  13. height: 32px;
  14. }
  15. }
  16. }
  17. }
  18. /* On big displays */
  19. @media (min-width: @screen-sm-min) {
  20. .navbar-nav-user {
  21. .user-toggle {
  22. padding-left: 0px;
  23. padding-right: 0px;
  24. img {
  25. float: right;
  26. height: 32px;
  27. margin: -6px 0px;
  28. margin-left: 8px;
  29. }
  30. }
  31. .dropdown-menu {
  32. border: none;
  33. border-radius: @border-radius-base !important;
  34. box-shadow: 0px 0px 0px 6px @dropdown-shadow;
  35. width: 256px;
  36. &:after {
  37. border: solid transparent;
  38. border-bottom-color: @dropdown-bg;
  39. border-width: 6px;
  40. content: "";
  41. height: 0;
  42. position: absolute;
  43. pointer-events: none;
  44. right: 10px;
  45. top: -11px;
  46. width: 0;
  47. }
  48. a {
  49. .glyphicon, .fa {
  50. display: inline-block;
  51. width: 16px;
  52. text-align: center;
  53. }
  54. .badge {
  55. border-radius: @border-radius-small;
  56. position: relative;
  57. top: 1px;
  58. }
  59. &:link, &:visited {
  60. .badge {
  61. background-color: @brand-danger;
  62. color: @dropdown-bg;
  63. }
  64. }
  65. &:hover, &:active {
  66. .badge {
  67. background-color: @dropdown-bg;
  68. color: @brand-danger;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }