page-header.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. .page-header .row .btn-aligned {
  37. margin-top: @line-height-computed / 10;
  38. }
  39. .container {
  40. h1 {
  41. font-size: @font-size-large * 1.25;
  42. }
  43. .btn-icon {
  44. .material-icon {
  45. width: 24px;
  46. height: 24px;
  47. font-size: 24px;
  48. line-height: 24px;
  49. }
  50. }
  51. }
  52. }
  53. // Breadcrumbs
  54. .page-breadcrumbs {
  55. margin-bottom: @line-height-computed;
  56. }
  57. .page-breadcrumbs .breadcrumb {
  58. background: none;
  59. margin: 0px;
  60. margin-top: @line-height-computed * -1;
  61. padding: 0px;
  62. overflow: auto;
  63. }
  64. .page-breadcrumbs .breadcrumb li {
  65. &, &:before {
  66. display: block;
  67. float: left;
  68. }
  69. &:before {
  70. margin-left: 4px;
  71. }
  72. }
  73. // Small go back button
  74. .go-back-sm {
  75. margin-top: @line-height-computed * -1;
  76. margin-bottom: @line-height-computed;
  77. .material-icon {
  78. height: @font-size-large;
  79. width: @font-size-large;
  80. font-size: @font-size-large;
  81. line-height: @font-size-large;
  82. position: relative;
  83. top: -1px;
  84. }
  85. }
  86. .page-breadcrumbs .go-back-sm {
  87. margin-bottom: 0px;
  88. }
  89. // Stats
  90. .header-stats {
  91. margin-top: @line-height-computed;
  92. margin-bottom: @line-height-computed * -1;
  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 * -2;
  131. }
  132. .page-header .page-tabs .nav {
  133. &>li {
  134. margin: 0px;
  135. &>a {
  136. border-radius: 0px;
  137. }
  138. }
  139. }
  140. .page-tabs {
  141. ul {
  142. display: block;
  143. overflow-x: auto;
  144. white-space: nowrap;
  145. li, a {
  146. display: inline-block;
  147. float: none;
  148. white-space: nowrap;
  149. .material-icon {
  150. margin-right: @padding-base-horizontal / 2;
  151. }
  152. }
  153. }
  154. @media screen and (max-width: @screen-xs-max) {
  155. .container {
  156. padding-left: 0px;
  157. padding-right: 0px;
  158. }
  159. li a {
  160. padding-left: @line-height-computed * 1.33;
  161. padding-right: @line-height-computed * 1.33;
  162. }
  163. }
  164. }
  165. // Title edit form
  166. .title-edit-form {
  167. margin-bottom: @line-height-computed / 2 + 2px;
  168. }