page-header.less 3.3 KB

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