page-header.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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.33;
  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. li>.material-icon {
  114. top: 2px;
  115. }
  116. }
  117. }
  118. // Tabs
  119. .page-header .page-tabs .nav {
  120. &>li {
  121. margin: 0px;
  122. &>a {
  123. border-radius: 0px;
  124. }
  125. }
  126. }
  127. @media screen and (max-width: @screen-xs-max) {
  128. .page-header .page-tabs {
  129. margin-top: ((@line-height-computed / 2) - 1);
  130. margin-bottom: ((@line-height-computed / 2) - 1) * -1;
  131. }
  132. .page-header .page-tabs .container {
  133. padding: 0px;
  134. width: 100%;
  135. ul li {
  136. display: block;
  137. float: none;
  138. }
  139. }
  140. }
  141. @media screen and (min-width: @screen-sm-min) {
  142. .page-header.tabbed {
  143. padding-bottom: 0px;
  144. }
  145. }
  146. // Title edit form
  147. .title-edit-form {
  148. margin-bottom: @line-height-computed / 2 + 2px;
  149. }
  150. // Next header
  151. .page-header-followup {
  152. margin-top: @line-height-computed * -0.5;
  153. }