page-header.less 3.0 KB

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