header.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Generic spacing and stuff
  5. //
  6. //##
  7. .page-header {
  8. border-bottom-width: 1px;
  9. margin: 0px;
  10. margin-top: @line-height-computed * -1;
  11. margin-bottom: @line-height-computed;
  12. padding: @line-height-computed 0px;
  13. &.append-tabs {
  14. border-bottom: 0px;
  15. padding-bottom: @line-height-computed / 2;
  16. }
  17. &>.container {
  18. h1 {
  19. margin: 0px;
  20. padding: 0px;
  21. overflow: visible;
  22. font-size: @font-size-large * 1.5;
  23. img {
  24. border-radius: @border-radius-base;
  25. margin-top: -7px;
  26. margin-bottom: -1px;
  27. width: 32px;
  28. }
  29. .main, .sub {
  30. float: left;
  31. font-weight: normal;
  32. }
  33. .main {
  34. a {
  35. color: @text-color;
  36. }
  37. a:active {
  38. color: @state-clicked;
  39. text-decoration: underline;
  40. }
  41. }
  42. .sub {
  43. margin-left: @line-height-computed / 2;
  44. color: lighten(@text-color, 25%);
  45. }
  46. }
  47. }
  48. }
  49. // Breadcrumb
  50. //
  51. //##
  52. .page-header {
  53. &>.container {
  54. .breadcrumb {
  55. margin-top: @line-height-computed * -0.8;
  56. margin-bottom: 0px;
  57. color: @breadcrumb-color;
  58. font-size: @font-size-small;
  59. &>li {
  60. + li:before {
  61. /* Tinysh hack to remove BS3's style */
  62. display: none;
  63. }
  64. a:link, a:visited {
  65. color: @state-default;
  66. }
  67. a:hover {
  68. color: @state-hover;
  69. }
  70. a:active, a:focus {
  71. color: @state-clicked;
  72. }
  73. span {
  74. margin: 0px 4px 0px 6px;
  75. }
  76. }
  77. }
  78. }
  79. }
  80. // Actions
  81. //
  82. //##
  83. .page-header {
  84. &>.container {
  85. .page-actions {
  86. float: right;
  87. margin: -3px 0px;
  88. &>form {
  89. margin: 0px;
  90. padding: 0px;
  91. }
  92. .pull-left {
  93. margin-left: @line-height-computed / 2;
  94. }
  95. &.path-fix {
  96. margin: -2px 0px;
  97. margin-bottom: -3px;
  98. }
  99. &.middle-fix {
  100. margin-top: (@line-height-computed * @headings-line-height) * -1 - (@line-height-computed * 1.5) + @padding-base-vertical - 1;
  101. }
  102. .dropdown-menu {
  103. left: auto;
  104. right: 0px;
  105. &:after {
  106. left: auto;
  107. right: 12px;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. /* Small displays */
  114. @media (max-width: @screen-sm-min) {
  115. .page-header {
  116. &>.container {
  117. .page-actions {
  118. clear: both;
  119. float: none;
  120. margin-top: @line-height-computed;
  121. .pull-left {
  122. margin-left: 0px;
  123. margin-right: @line-height-computed / 2;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. // Details
  130. //
  131. //##
  132. .page-header {
  133. &>.container {
  134. .page-details {
  135. display: block;
  136. clear: both;
  137. margin-bottom: 0;
  138. position: relative;
  139. top: @line-height-computed * 0.6;
  140. color: @text-muted;
  141. &>li {
  142. &>img {
  143. border-radius: @border-radius-small;
  144. position: relative;
  145. bottom: 1px;
  146. }
  147. &>button {
  148. background: none;
  149. border: none;
  150. }
  151. &>a:link, &>a:visited, &>button {
  152. color: @text-muted;
  153. }
  154. &>a:hover, &>button:hover {
  155. color: @state-hover;
  156. text-decoration: none;
  157. }
  158. &>a:active, &>button:active {
  159. color: @state-clicked;
  160. text-decoration: none;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. /* Small displays */
  167. @media (max-width: @screen-sm-min) {
  168. .page-header {
  169. &>.container {
  170. .page-details {
  171. margin-top: @line-height-computed;
  172. }
  173. }
  174. }
  175. }
  176. // Pills and Tabs
  177. //
  178. //##
  179. .page-pills {
  180. border-bottom: 1px solid @page-header-border-color;
  181. margin: @line-height-computed * -1 0px @line-height-computed;
  182. padding: (@line-height-computed / 2) 0px;
  183. .nav-pills {
  184. margin: 0px;
  185. }
  186. }
  187. .page-tabs {
  188. border-bottom: 3px solid @page-header-border-color;
  189. margin: @line-height-computed * -1 0px @line-height-computed;
  190. padding: 0px;
  191. &.solo-right {
  192. .nav-tabs {
  193. margin-top: @line-height-computed * -1.5;
  194. float: right;
  195. }
  196. }
  197. .nav-tabs {
  198. margin: 0px;
  199. margin-bottom: -3px;
  200. }
  201. }