header.less 3.3 KB

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