page-header.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Common styles
  5. .page-header-bg {
  6. margin-bottom: @line-height-computed;
  7. }
  8. .page-header {
  9. margin: 0px;
  10. padding: @line-height-computed 0px;
  11. h1 {
  12. margin: 0px;
  13. word-wrap: break-word;
  14. }
  15. .btn-aligned {
  16. float: right;
  17. margin-left: 8px;
  18. &.pull-left {
  19. margin-left: 0px;
  20. margin-right: 8px;
  21. }
  22. }
  23. @media screen and (min-width: @screen-md-min) {
  24. &.page-header-tall {
  25. padding: @line-height-computed * 2 0px;
  26. }
  27. .container>.row {
  28. h1 {
  29. margin-top: -3px;
  30. }
  31. .row {
  32. margin-top: @padding-small-vertical;
  33. }
  34. }
  35. }
  36. }
  37. // Small displays
  38. @media screen and (max-width: @screen-sm-max) {
  39. .page-header .row .btn-aligned {
  40. margin-top: @line-height-computed / 10;
  41. }
  42. .container {
  43. h1 {
  44. font-size: @font-size-large * 1.25;
  45. }
  46. .btn-icon {
  47. .material-icon {
  48. width: 24px;
  49. height: 24px;
  50. font-size: 24px;
  51. line-height: 24px;
  52. }
  53. }
  54. }
  55. }
  56. // Breadcrumbs
  57. .page-breadcrumbs {
  58. margin-bottom: @line-height-computed;
  59. }
  60. .page-breadcrumbs .breadcrumb {
  61. background: none;
  62. margin: 0px;
  63. padding: 0px;
  64. overflow: auto;
  65. }
  66. .page-breadcrumbs .breadcrumb li {
  67. &, &:before {
  68. display: block;
  69. float: left;
  70. }
  71. &:before {
  72. margin-left: 4px;
  73. }
  74. }
  75. // Small go back button
  76. .go-back-sm {
  77. margin-bottom: @line-height-computed;
  78. .material-icon {
  79. height: @font-size-large;
  80. width: @font-size-large;
  81. font-size: @font-size-large;
  82. line-height: @font-size-large;
  83. position: relative;
  84. top: -1px;
  85. }
  86. }
  87. .page-breadcrumbs .go-back-sm {
  88. margin-bottom: 0px;
  89. }
  90. // Stats
  91. .header-stats {
  92. margin-top: @line-height-computed;
  93. }
  94. .header-stats .list-inline {
  95. margin-bottom: 0px;
  96. }
  97. .header-stats .list-inline li {
  98. margin-bottom: 0px;
  99. margin-right: 8px;
  100. overflow: auto;
  101. .status-icon {
  102. width: 18px;
  103. height: 18px;
  104. margin-right: 4px;
  105. position: relative;
  106. bottom: 1px;
  107. font-size: 18px;
  108. line-height: 18px;
  109. }
  110. &>.material-icon, &>.icon-legend {
  111. float: left;
  112. }
  113. &>.material-icon {
  114. margin-right: 4px;
  115. position: relative;
  116. top: 3px;
  117. }
  118. }
  119. @media screen and (max-width: @screen-sm-max) {
  120. .header-stats .list-inline {
  121. font-size: @font-size-small;
  122. li>.material-icon {
  123. top: 2px;
  124. }
  125. }
  126. }
  127. // Tabs
  128. .page-header .page-tabs {
  129. margin-top: @line-height-computed;
  130. margin-bottom: @line-height-computed * -1;
  131. }
  132. @media screen and (min-width: @screen-md-min) {
  133. .page-header-tall .page-tabs {
  134. margin-top: @line-height-computed * 2;
  135. margin-bottom: @line-height-computed * -2;
  136. }
  137. }
  138. .page-header .page-tabs .nav {
  139. &>li {
  140. margin: 0px;
  141. &>a {
  142. border-radius: 0px;
  143. }
  144. }
  145. }
  146. @media screen and (max-width: @screen-xs-max) {
  147. .page-header .page-tabs .container {
  148. padding: 0px;
  149. width: 100%;
  150. ul li {
  151. display: block;
  152. float: none;
  153. }
  154. }
  155. }
  156. // Title edit form
  157. .title-edit-form {
  158. margin-bottom: @line-height-computed / 2 + 2px;
  159. }
  160. // Next header
  161. .page-header-followup {
  162. margin-top: @line-height-computed * -0.5;
  163. }