navbar.less 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. // Admin sections and user navbar
  2. // -------------------------
  3. .navbar-sections {
  4. // Style brand
  5. .brand {
  6. margin-right: -10px;
  7. color: @grayDark;
  8. font-size: 200%;
  9. span {
  10. color: @grayLight;
  11. font-size: 50%;
  12. line-height: 50%;
  13. }
  14. }
  15. // Signed-in administrator profile
  16. .user-profile {
  17. padding: ((@navbarHeight - @baseLineHeight) / 2)-15px 10px ((@navbarHeight - @baseLineHeight) / 2)-15px 3px;
  18. margin: 15px 5px;
  19. color: @grayDarker;
  20. font-weight: bold;
  21. }
  22. // Make links look better
  23. .nav {
  24. // Drop side margins so we fit 1024px clients
  25. margin-left: 0px;
  26. margin-right: 0px;
  27. li {
  28. a, a:link, a:visited, a:active {
  29. .opacity(50);
  30. padding: ((@navbarHeight - @baseLineHeight) / 2) 10px ((@navbarHeight - @baseLineHeight) / 2);
  31. margin: 0px 5px;
  32. font-weight: bold;
  33. text-shadow: 0px 1px 0px @white;
  34. }
  35. a:focus, a:hover {
  36. background-color: @navbarLinkBackgroundHover;
  37. .border-radius(4px);
  38. padding: ((@navbarHeight - @baseLineHeight) / 2)-15px 10px ((@navbarHeight - @baseLineHeight) / 2)-15px;
  39. margin: 15px 5px;
  40. .opacity(100);
  41. }
  42. form {
  43. margin: 0px;
  44. padding: 0px;
  45. }
  46. }
  47. li.active {
  48. a, a:link, a:active, a:visited, a:hover {
  49. background-color: @navbarLinkBackgroundActive;
  50. .border-radius(4px);
  51. .box-shadow(none);
  52. padding: ((@navbarHeight - @baseLineHeight) / 2)-15px 10px ((@navbarHeight - @baseLineHeight) / 2)-15px;
  53. margin: 15px 0px;
  54. .opacity(100);
  55. text-shadow: 0px 1px 0px darken(@navbarLinkBackgroundActive, 5%);
  56. i {
  57. background-image: url("@{iconWhiteSpritePath}");
  58. .opacity(100);
  59. }
  60. }
  61. }
  62. }
  63. // Sign-out button
  64. .btn-link, .btn-link:link, .btn-link:visited {
  65. .border-radius(4px);
  66. padding: ((@navbarHeight - @baseLineHeight) / 2)-15px 8px ((@navbarHeight - @baseLineHeight) / 2)-15px;
  67. margin: 15px 0px;
  68. .opacity(60);
  69. color: @textColor;
  70. font-weight: bold;
  71. font-size: 100%;
  72. i {
  73. .opacity(100);
  74. }
  75. }
  76. .btn-link:active, .btn-link:hover {
  77. background: @navbarLinkBackgroundHover;
  78. .opacity(100);
  79. color: @textColor;
  80. }
  81. }
  82. // Admin section actions navbar
  83. // -------------------------
  84. .navbar-actions {
  85. border-bottom: 1px solid @navbarInverseBorder;
  86. // Fix inverse navbar height
  87. .navbar-inner {
  88. min-height: @navbarInverseHeight;
  89. }
  90. .nav {
  91. li {
  92. a, a:link, a:active, a:visited {
  93. .opacity(50);
  94. padding: ((@navbarInverseHeight - @baseLineHeight) / 2) 15px ((@navbarInverseHeight - @baseLineHeight) / 2);
  95. color: @black;
  96. font-weight: bold;
  97. text-shadow: 0px 1px 0px @grayLighter;
  98. }
  99. a:hover {
  100. .opacity(100);
  101. }
  102. form {
  103. margin: 0px;
  104. padding: 0px;
  105. }
  106. }
  107. li.active {
  108. a, a:link, a:active, a:visited, a:hover {
  109. border-bottom: 4px solid @linkColor;
  110. .box-shadow(none);
  111. .opacity(100);
  112. padding-bottom: ((@navbarInverseHeight - @baseLineHeight) / 2) - 3px;
  113. margin-bottom: -1px;
  114. color: @grayDark;
  115. text-shadow: 0px 1px 0px @white;
  116. i {
  117. background-image: url("@{iconSpritePath}");
  118. .opacity(100);
  119. }
  120. }
  121. }
  122. }
  123. }
  124. // Both Navbars
  125. // -------------------------
  126. .navbar {
  127. // Inner style
  128. .navbar-inner {
  129. border: none;
  130. background: none;
  131. background-color: @navbarBackground;
  132. .box-shadow(none);
  133. }
  134. // And black navbar style
  135. &.navbar-inverse {
  136. font-size: 90%;
  137. // Inner style
  138. .navbar-inner {
  139. background: none;
  140. background-color: @navbarInverseBackground;
  141. }
  142. }
  143. }