header.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. .thread-prefix {
  43. margin-left: 2px;
  44. position: relative;
  45. bottom: 1px;
  46. }
  47. &>a:not(.label) {
  48. color: @grayLight;
  49. &:hover, &:active {
  50. color: @textColor;
  51. }
  52. }
  53. &>i {
  54. .opacity(50);
  55. }
  56. &.stats-form {
  57. float: right;
  58. form {
  59. margin: 0px;
  60. margin-bottom: -12px;
  61. padding: 0px;
  62. button {
  63. position: relative;
  64. bottom: 12px;
  65. &>i {
  66. position: relative;
  67. top: 0px;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }
  74. .header-tabs {
  75. border-bottom: 0px;
  76. margin: 0px;
  77. margin-top: (@baseLineHeight * -0.5);
  78. position: relative;
  79. top: (@baseLineHeight * 0.5) - 1px;
  80. li {
  81. a {
  82. &:link, &:visited {
  83. background: none;
  84. border: none;
  85. border-radius: 0px;
  86. margin-bottom: 4px;
  87. padding: (@baseLineHeight / 3) (@baseLineHeight / 2);
  88. color: lighten(@gray, 20%);
  89. font-weight: bold;
  90. }
  91. &:hover, &:active, a:focus {
  92. background: none;
  93. border-bottom: 4px solid @gray;
  94. margin-bottom: 0px;
  95. color: @gray;
  96. }
  97. }
  98. &.active {
  99. a:link, a:visited, a:hover, a:active {
  100. background: none;
  101. border-bottom: 4px solid @red;
  102. margin-bottom: 0px;
  103. color: @textColor;
  104. }
  105. }
  106. .form-inline {
  107. margin: 0px;
  108. margin-left: @baseFontSize;
  109. margin-bottom: 7px;
  110. .btn-icon {
  111. padding-left: 7px;
  112. padding-right: 7px;
  113. }
  114. i {
  115. position: relative;
  116. top: 0px;
  117. }
  118. }
  119. & {
  120. a.btn {
  121. border: 1px solid @btnBorder;
  122. *border: 0; // Remove the border to prevent IE7's black border on input:focus
  123. border-radius: @baseBorderRadius;
  124. margin: 0px;
  125. padding: 4px 12px;
  126. i {
  127. position: relative;
  128. top: 0px;
  129. }
  130. &:visited, &:hover {
  131. background-color: @white;
  132. border-color: lighten(@grayLight, 5%);
  133. color: @grayDark;
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }