page-header.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. .status-icon {
  100. width: 18px;
  101. height: 18px;
  102. margin-right: 4px;
  103. position: relative;
  104. bottom: 1px;
  105. font-size: 18px;
  106. line-height: 18px;
  107. }
  108. &>.material-icon, &>.icon-legend {
  109. float: left;
  110. }
  111. &>.material-icon {
  112. margin-right: 4px;
  113. position: relative;
  114. top: 3px;
  115. }
  116. }
  117. @media screen and (max-width: @screen-sm-max) {
  118. .header-stats .list-inline {
  119. font-size: @font-size-small;
  120. li>.material-icon {
  121. top: 2px;
  122. }
  123. }
  124. }
  125. // Tabs
  126. .page-header .page-tabs {
  127. margin-top: @line-height-computed;
  128. margin-bottom: @line-height-computed * -2;
  129. }
  130. .page-header .page-tabs .nav {
  131. &>li {
  132. margin: 0px;
  133. &>a {
  134. border-radius: 0px;
  135. }
  136. }
  137. }
  138. .page-tabs {
  139. ul {
  140. display: block;
  141. overflow-x: auto;
  142. white-space: nowrap;
  143. li, a {
  144. display: inline-block;
  145. float: none;
  146. white-space: nowrap;
  147. .material-icon {
  148. margin-right: @padding-base-horizontal / 2;
  149. }
  150. }
  151. }
  152. @media screen and (max-width: @screen-xs-max) {
  153. .container {
  154. padding-left: 0px;
  155. padding-right: 0px;
  156. }
  157. li a {
  158. padding-left: @line-height-computed * 1.33;
  159. padding-right: @line-height-computed * 1.33;
  160. }
  161. }
  162. }
  163. // Insert blank space between tabs and details on smallest displays
  164. @media screen and (max-width: @screen-xs-max) {
  165. .header-stats + .page-tabs {
  166. margin-top: @line-height-computed * 1.5;
  167. }
  168. }
  169. // Title edit form
  170. .title-edit-form {
  171. margin-bottom: @line-height-computed / 2 + 2px;
  172. }