page-header.less 2.8 KB

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