header.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // Primary header
  2. // -------------------------
  3. .header-primary {
  4. background-color: @pageHeaderBackground;
  5. border-bottom: 1px solid @pageHeaderBorder;
  6. margin: 0px;
  7. margin-top: 0px;
  8. padding-top: @baseLineHeight / 2;
  9. .breadcrumb {
  10. background: none;
  11. border: none;
  12. margin: 0px;
  13. margin-bottom: @fontSizeSmall * -0.5;
  14. padding: 0px;
  15. li {
  16. font-size: @fontSizeSmall;
  17. font-weight: bold;
  18. text-shadow: none;
  19. a:link, a:visited {
  20. color: @grayLight;
  21. }
  22. a:hover, a:active {
  23. color: @textColor;
  24. }
  25. .divider {
  26. color: @grayLight
  27. }
  28. }
  29. }
  30. h1 {
  31. color: @gray;
  32. font-size: @fontSizeLarge * 2;
  33. font-weight: normal;
  34. }
  35. .header-stats {
  36. overflow: visible;
  37. margin-bottom: 0px;
  38. color: @grayLight;
  39. li {
  40. float: left;
  41. margin-right: @baseFontSize;
  42. &>a {
  43. color: @grayLight;
  44. &:hover, &:active {
  45. color: @textColor;
  46. }
  47. }
  48. &>i {
  49. .opacity(50);
  50. }
  51. &.stats-form {
  52. float: right;
  53. form {
  54. margin: 0px;
  55. margin-bottom: -12px;
  56. padding: 0px;
  57. button {
  58. position: relative;
  59. bottom: 12px;
  60. &>i {
  61. position: relative;
  62. top: 0px;
  63. }
  64. }
  65. }
  66. }
  67. }
  68. }
  69. .header-tabs {
  70. border-bottom: 0px;
  71. margin: 0px;
  72. margin-top: (@baseLineHeight * -0.5);
  73. position: relative;
  74. top: (@baseLineHeight * 0.5) - 1px;
  75. li {
  76. a {
  77. &:link, &:visited {
  78. background: none;
  79. border: none;
  80. border-radius: 0px;
  81. margin-bottom: 4px;
  82. padding: (@baseLineHeight / 3) (@baseLineHeight / 2);
  83. color: lighten(@gray, 20%);
  84. font-weight: bold;
  85. }
  86. &:hover, &:active, a:focus {
  87. background: none;
  88. border-bottom: 4px solid @gray;
  89. margin-bottom: 0px;
  90. color: @gray;
  91. }
  92. }
  93. &.active {
  94. a:link, a:visited, a:hover, a:active {
  95. background: none;
  96. border-bottom: 4px solid @red;
  97. margin-bottom: 0px;
  98. color: @textColor;
  99. }
  100. }
  101. .form-inline {
  102. margin: 0px;
  103. margin-left: @baseFontSize;
  104. margin-bottom: 7px;
  105. .btn-icon {
  106. padding-left: 7px;
  107. padding-right: 7px;
  108. }
  109. i {
  110. position: relative;
  111. top: 0px;
  112. }
  113. }
  114. & {
  115. a.btn {
  116. border: 1px solid @btnBorder;
  117. *border: 0; // Remove the border to prevent IE7's black border on input:focus
  118. border-radius: @baseBorderRadius;
  119. margin: 0px;
  120. padding: 4px 12px;
  121. color: @textColor;
  122. i {
  123. position: relative;
  124. top: 0px;
  125. }
  126. &:visited, &:hover {
  127. background-color: @white;
  128. border-color: lighten(@grayLight, 5%);
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }