page-header.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. //
  2. // Page Header
  3. // --------------------------------------------------
  4. // Common styles
  5. .page-header {
  6. margin: 0px;
  7. margin-bottom: @line-height-computed;
  8. .btn-aligned {
  9. float: right;
  10. margin-top: @line-height-computed + 3px;
  11. margin-left: 8px;
  12. &.pull-left {
  13. margin-left: 0px;
  14. margin-right: 8px;
  15. }
  16. }
  17. @media screen and (min-width: @screen-md-min) {
  18. .row {
  19. margin-top: @line-height-computed * 1.25;
  20. h1 {
  21. margin-top: -3px;
  22. }
  23. }
  24. }
  25. }
  26. // Small displays
  27. @media screen and (max-width: @screen-sm-max) {
  28. .container {
  29. h1 {
  30. font-size: @font-size-large * 1.25;
  31. }
  32. .btn-aligned {
  33. float: right;
  34. margin-top: @line-height-computed - 7px;
  35. }
  36. .btn-icon {
  37. .material-icon {
  38. width: 24px;
  39. height: 24px;
  40. font-size: 24px;
  41. line-height: 24px;
  42. }
  43. }
  44. }
  45. }
  46. // Breadcrumbs
  47. .page-breadcrumbs .breadcrumb {
  48. background: none;
  49. padding-left: 0px;
  50. padding-right: 0px;
  51. margin-bottom: @line-height-computed * -.5;
  52. overflow: auto;
  53. }
  54. .page-breadcrumbs .breadcrumb li {
  55. &, &:before {
  56. display: block;
  57. float: left;
  58. }
  59. &:before {
  60. margin-left: 4px;
  61. }
  62. }
  63. // Stats
  64. .header-stats .list-inline li {
  65. margin-right: 8px;
  66. overflow: auto;
  67. .status-icon {
  68. width: 18px;
  69. height: 18px;
  70. margin-right: 4px;
  71. position: relative;
  72. bottom: 1px;
  73. font-size: 18px;
  74. line-height: 18px;
  75. }
  76. &>.material-icon, &>.icon-legend {
  77. float: left;
  78. }
  79. &>.material-icon {
  80. margin-right: 4px;
  81. position: relative;
  82. top: 3px;
  83. }
  84. }
  85. @media screen and (max-width: @screen-sm-max) {
  86. .header-stats .list-inline {
  87. margin-top: @line-height-computed / 2;
  88. margin-bottom: 0px;
  89. font-size: @font-size-small;
  90. }
  91. }
  92. // Tabs
  93. .page-header .page-tabs .nav {
  94. &>li {
  95. margin: 0px;
  96. &>a {
  97. border-radius: 0px;
  98. }
  99. }
  100. }
  101. @media screen and (max-width: @screen-sm-max) {
  102. .page-header .page-tabs {
  103. margin-top: ((@line-height-computed / 2) - 1);
  104. margin-bottom: ((@line-height-computed / 2) - 1) * -1;
  105. }
  106. .page-header .page-tabs .container {
  107. padding: 0px;
  108. width: 100%;
  109. .nav-pills {
  110. li {
  111. display: block;
  112. float: inherit;
  113. width: auto;
  114. }
  115. }
  116. }
  117. }
  118. @media screen and (min-width: @screen-md-min) {
  119. .page-header.tabbed {
  120. padding-bottom: 0px;
  121. }
  122. }
  123. // Edit title
  124. .title-editable {
  125. overflow: auto;
  126. h1, .btn {
  127. float: left;
  128. }
  129. .btn {
  130. position: relative;
  131. top: @line-height-computed;
  132. }
  133. .material-icon {
  134. width: 14px;
  135. height: 14px;
  136. font-size: 14px;
  137. line-height:14px;
  138. }
  139. }
  140. .title-edit-form {
  141. background: @body-bg;
  142. border: 1px solid @gray-lighter;
  143. border-radius: 3px;
  144. float: none;
  145. margin: 0px;
  146. margin-top: 16px;
  147. margin-bottom: 8px;
  148. padding: 1px;
  149. position: relative;
  150. overflow: auto;
  151. white-space: nowrap;
  152. input, button {
  153. display: inline-block;
  154. margin: 3px;
  155. }
  156. input {
  157. border: none;
  158. width: 400px;
  159. &, &:focus, &:active {
  160. .box-shadow(none);
  161. }
  162. }
  163. .btn-default {
  164. padding: 2px;
  165. padding-right: 0px;
  166. padding-bottom: 1px;
  167. color: darken(@gray-lighter, 5%);
  168. &, &:hover, &:focus, &:active {
  169. background: transparent;
  170. border-color: transparent;
  171. .box-shadow(none);
  172. }
  173. &:hover, &:focus {
  174. color: @gray-darker;
  175. }
  176. &:active {
  177. color: @gray;
  178. }
  179. .material-icon {
  180. top: 0px;
  181. left: 1px;
  182. height: 28px;
  183. width: 28px;
  184. font-size: 28px;
  185. line-height: 28px;
  186. }
  187. }
  188. }