page-header.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Common styles
  5. .page-header {
  6. margin: 0px;
  7. margin-bottom: @line-height-computed;
  8. h1 {
  9. word-wrap: break-word;
  10. }
  11. .btn-aligned {
  12. float: right;
  13. margin-top: @line-height-computed + 3px;
  14. margin-left: 8px;
  15. &.pull-left {
  16. margin-left: 0px;
  17. margin-right: 8px;
  18. }
  19. }
  20. @media screen and (min-width: @screen-md-min) {
  21. .container>.row {
  22. margin-top: @line-height-computed * 1.25;
  23. h1 {
  24. margin-top: -3px;
  25. }
  26. .row {
  27. margin-top: @padding-small-vertical;
  28. }
  29. }
  30. }
  31. }
  32. // Small displays
  33. @media screen and (max-width: @screen-sm-max) {
  34. .container {
  35. h1 {
  36. font-size: @font-size-large * 1.25;
  37. }
  38. .btn-aligned {
  39. float: right;
  40. margin-top: @line-height-computed - 7px;
  41. }
  42. .btn-icon {
  43. .material-icon {
  44. width: 24px;
  45. height: 24px;
  46. font-size: 24px;
  47. line-height: 24px;
  48. }
  49. }
  50. }
  51. }
  52. // Breadcrumbs
  53. .page-breadcrumbs .breadcrumb {
  54. background: none;
  55. padding-left: 0px;
  56. padding-right: 0px;
  57. margin-bottom: @line-height-computed * -.5;
  58. overflow: auto;
  59. }
  60. .page-breadcrumbs .breadcrumb li {
  61. &, &:before {
  62. display: block;
  63. float: left;
  64. }
  65. &:before {
  66. margin-left: 4px;
  67. }
  68. }
  69. // Stats
  70. .header-stats .list-inline li {
  71. margin-right: 8px;
  72. overflow: auto;
  73. .status-icon {
  74. width: 18px;
  75. height: 18px;
  76. margin-right: 4px;
  77. position: relative;
  78. bottom: 1px;
  79. font-size: 18px;
  80. line-height: 18px;
  81. }
  82. &>.material-icon, &>.icon-legend {
  83. float: left;
  84. }
  85. &>.material-icon {
  86. margin-right: 4px;
  87. position: relative;
  88. top: 3px;
  89. }
  90. }
  91. @media screen and (max-width: @screen-sm-max) {
  92. .header-stats .list-inline {
  93. margin-top: @line-height-computed / 2;
  94. margin-bottom: 0px;
  95. font-size: @font-size-small;
  96. }
  97. }
  98. // Tabs
  99. .page-header .page-tabs .nav {
  100. &>li {
  101. margin: 0px;
  102. &>a {
  103. border-radius: 0px;
  104. }
  105. }
  106. }
  107. @media screen and (max-width: @screen-sm-max) {
  108. .page-header .page-tabs {
  109. margin-top: ((@line-height-computed / 2) - 1);
  110. margin-bottom: ((@line-height-computed / 2) - 1) * -1;
  111. }
  112. .page-header .page-tabs .container {
  113. padding: 0px;
  114. width: 100%;
  115. ul li {
  116. display: block;
  117. float: none;
  118. }
  119. }
  120. }
  121. @media screen and (min-width: @screen-md-min) {
  122. .page-header.tabbed {
  123. padding-bottom: 0px;
  124. }
  125. }
  126. // Compact menu
  127. .menu-compact {
  128. margin-top: @line-height-computed;
  129. margin-bottom: @padding-large-vertical * -1 + 1px;
  130. position: static;
  131. height: auto;
  132. }
  133. .menu-compact .dropdown-toggle {
  134. background: transparent;
  135. border: 0px;
  136. border-top: 1px solid @gray-lighter;
  137. border-radius: 0px;
  138. margin-bottom: 0px;
  139. padding-top: @padding-large-vertical;
  140. padding-bottom: @padding-large-vertical;
  141. }
  142. .menu-compact.open .dropdown-toggle {
  143. border-top: 1px solid @gray-lighter;
  144. }
  145. .menu-compact.open .dropdown-menu {
  146. border-radius: 0px;
  147. border: none;
  148. .box-shadow(0px 0px 16px @gray-light);
  149. clear: both;
  150. top: auto;
  151. width: 100%;
  152. position: fixed;
  153. bottom: 0px;
  154. margin: 0px;
  155. padding: 0px;
  156. li {
  157. float: none;
  158. margin: 0px;
  159. clear: both;
  160. a {
  161. padding-top: @padding-large-vertical;
  162. padding-bottom: @padding-large-vertical;
  163. }
  164. }
  165. }
  166. // Edit title
  167. .title-editable {
  168. overflow: auto;
  169. position: relative;
  170. h1 {
  171. width: 100%;
  172. }
  173. .btn {
  174. position: absolute;
  175. top: 0;
  176. right: 0;
  177. padding: @padding-small-vertical @padding-small-vertical;
  178. .opacity(0.5);
  179. }
  180. &:hover .btn {
  181. .opacity(1);
  182. }
  183. .material-icon {
  184. width: 14px;
  185. height: 14px;
  186. font-size: 14px;
  187. line-height:14px;
  188. }
  189. }
  190. .title-edit-form {
  191. margin: 0px;
  192. margin-bottom: 12px;
  193. }