page-header.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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 * 2 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. .container>.row {
  25. h1 {
  26. margin-top: -3px;
  27. }
  28. .row {
  29. margin-top: @padding-small-vertical;
  30. }
  31. }
  32. }
  33. }
  34. // Small displays
  35. @media screen and (max-width: @screen-sm-max) {
  36. .container {
  37. h1 {
  38. font-size: @font-size-large * 1.25;
  39. }
  40. .btn-icon {
  41. .material-icon {
  42. width: 24px;
  43. height: 24px;
  44. margin: -3px 0px;
  45. font-size: 24px;
  46. line-height: 24px;
  47. }
  48. }
  49. }
  50. }
  51. // Breadcrumbs
  52. .page-breadcrumbs {
  53. margin-bottom: @line-height-computed;
  54. }
  55. .page-breadcrumbs .breadcrumb {
  56. background: none;
  57. margin: 0px;
  58. margin-top: @line-height-computed * -1;
  59. padding: 0px;
  60. overflow: auto;
  61. }
  62. .page-breadcrumbs .breadcrumb li {
  63. &, &:before {
  64. display: block;
  65. float: left;
  66. }
  67. &:before {
  68. margin-left: 4px;
  69. }
  70. }
  71. // Small go back button
  72. .go-back-sm {
  73. margin-top: @line-height-computed * -1;
  74. margin-bottom: @line-height-computed;
  75. .material-icon {
  76. height: @font-size-large;
  77. width: @font-size-large;
  78. font-size: @font-size-large;
  79. line-height: @font-size-large;
  80. position: relative;
  81. top: -1px;
  82. }
  83. }
  84. .page-breadcrumbs .go-back-sm {
  85. margin-bottom: 0px;
  86. }
  87. // Stats
  88. .header-stats {
  89. margin-top: @line-height-computed;
  90. margin-bottom: @line-height-computed * -1;
  91. }
  92. .header-stats .list-inline {
  93. margin-bottom: 0px;
  94. }
  95. .header-stats .list-inline li {
  96. margin-bottom: 0px;
  97. margin-right: 8px;
  98. overflow: auto;
  99. vertical-align: top; // fix #834
  100. .status-icon {
  101. width: 18px;
  102. height: 18px;
  103. margin-right: 4px;
  104. position: relative;
  105. bottom: 1px;
  106. font-size: 18px;
  107. line-height: 18px;
  108. }
  109. &>.material-icon, &>.icon-legend {
  110. float: left;
  111. }
  112. &>.material-icon {
  113. margin-right: 4px;
  114. position: relative;
  115. top: 3px;
  116. }
  117. }
  118. @media screen and (max-width: @screen-sm-max) {
  119. .header-stats .list-inline {
  120. font-size: @font-size-small;
  121. li>.material-icon {
  122. top: 2px;
  123. }
  124. }
  125. }
  126. // Tabs
  127. .page-header .page-tabs {
  128. margin-top: @line-height-computed;
  129. margin-bottom: @line-height-computed * -2;
  130. }
  131. .page-header .page-tabs .nav {
  132. &>li {
  133. margin: 0px;
  134. &>a {
  135. border-radius: 0px;
  136. }
  137. }
  138. }
  139. .page-tabs {
  140. ul {
  141. display: block;
  142. overflow-x: auto;
  143. white-space: nowrap;
  144. li, a {
  145. display: inline-block;
  146. float: none;
  147. white-space: nowrap;
  148. .material-icon {
  149. margin-right: @padding-base-horizontal / 2;
  150. }
  151. }
  152. }
  153. @media screen and (max-width: @screen-xs-max) {
  154. .container {
  155. padding-left: 0px;
  156. padding-right: 0px;
  157. }
  158. li a {
  159. padding-left: @line-height-computed * 1.33;
  160. padding-right: @line-height-computed * 1.33;
  161. }
  162. }
  163. }
  164. // Insert blank space between tabs and details on smallest displays
  165. @media screen and (max-width: @screen-xs-max) {
  166. .header-stats + .page-tabs {
  167. margin-top: @line-height-computed * 1.5;
  168. }
  169. }
  170. // Title edit form
  171. .title-edit-form {
  172. margin-bottom: @line-height-computed / 2 + 2px;
  173. }