page-header.less 3.4 KB

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