header.less 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*
  2. * Component: Main Header
  3. * ----------------------
  4. */
  5. .main-header {
  6. position: relative;
  7. max-height: 100px;
  8. z-index: 1030;
  9. //Navbar
  10. > .navbar {
  11. margin-bottom: 0;
  12. margin-left: @sidebar-width;
  13. border: none;
  14. min-height: @navbar-height;
  15. border-radius: 0;
  16. }
  17. //Navbar Right Menu
  18. .navbar-custom-menu,
  19. .navbar-right {
  20. margin-right: 5px;
  21. float: right;
  22. @media (max-width: @screen-sm-max) {
  23. a {
  24. color: inherit;
  25. background: transparent;
  26. }
  27. }
  28. }
  29. .navbar-right {
  30. @media (max-width: @screen-header-collapse) {
  31. float: none;
  32. .navbar-collapse & {
  33. margin: 7.5px -15px;
  34. }
  35. > li {
  36. color: inherit;
  37. border: 0;
  38. }
  39. }
  40. }
  41. //Navbar toggle button
  42. .sidebar-toggle {
  43. float: left;
  44. background-color: transparent;
  45. background-image: none;
  46. padding: @navbar-padding-vertical @navbar-padding-horizontal;
  47. //Add the fontawesome bars icon
  48. font-family: fontAwesome;
  49. &:before {
  50. content: "\f0c9";
  51. }
  52. &:hover {
  53. color: #fff;
  54. }
  55. }
  56. .sidebar-toggle .icon-bar {
  57. display: none;
  58. }
  59. //Navbar User Menu
  60. .navbar .nav > li.user > a {
  61. > .fa,
  62. > .glyphicon,
  63. > .ion {
  64. margin-right: 5px;
  65. }
  66. }
  67. //Labels in navbar
  68. .navbar .nav > li > a > .label {
  69. position: absolute;
  70. top: 9px;
  71. right: 7px;
  72. text-align: center;
  73. font-size: 9px;
  74. padding: 2px 3px;
  75. line-height: .9;
  76. }
  77. //Logo bar
  78. .logo {
  79. display: block;
  80. float: left;
  81. height: 50px;
  82. font-size: 20px;
  83. line-height: 50px;
  84. text-align: center;
  85. width: @sidebar-width;
  86. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  87. padding: 0 15px;
  88. }
  89. }
  90. // Content Header
  91. .content-header {
  92. position: relative;
  93. padding: 15px 15px 0 15px;
  94. // Header Text
  95. > h1 {
  96. margin: 0;
  97. font-size: 24px;
  98. > small {
  99. font-size: 15px;
  100. display: inline-block;
  101. padding-left: 4px;
  102. font-weight: 300;
  103. }
  104. }
  105. > .breadcrumb {
  106. float: right;
  107. background: transparent;
  108. margin-top: 0px;
  109. margin-bottom: 0;
  110. font-size: 12px;
  111. padding: 7px 5px;
  112. position: absolute;
  113. top: 15px;
  114. right: 10px;
  115. .border-radius(2px);
  116. > li > a {
  117. color: #444;
  118. text-decoration: none;
  119. > .fa, > .glyphicon, > .ion {
  120. margin-right: 5px;
  121. }
  122. }
  123. > li + li:before {
  124. content: '>\00a0';
  125. }
  126. }
  127. @media (max-width: @screen-sm-max) {
  128. > .breadcrumb {
  129. position: relative;
  130. margin-top: 5px;
  131. top: 0;
  132. right: 0;
  133. float: none;
  134. background: @gray;
  135. padding-left: 10px;
  136. li:before {
  137. color: darken(@gray, 20%);
  138. }
  139. }
  140. }
  141. }
  142. .navbar-toggle {
  143. color: #fff;
  144. border: 0;
  145. margin: 0;
  146. padding: @navbar-padding-vertical @navbar-padding-horizontal;
  147. }
  148. //Control navbar scaffolding on x-small screens
  149. @media (max-width: @screen-sm-max) {
  150. .navbar-custom-menu .navbar-nav > li {
  151. float: left;
  152. }
  153. //Dont't let links get full width
  154. .navbar-custom-menu .navbar-nav {
  155. margin: 0;
  156. float: left;
  157. }
  158. .navbar-custom-menu .navbar-nav > li > a {
  159. padding-top: 15px;
  160. padding-bottom: 15px;
  161. line-height: 20px;
  162. }
  163. }
  164. // Collapse header
  165. @media (max-width: @screen-header-collapse) {
  166. .main-header {
  167. position: relative;
  168. .logo,
  169. .navbar {
  170. width: 100%;
  171. float: none;
  172. position: relative!important;
  173. }
  174. .navbar {
  175. margin: 0;
  176. }
  177. .navbar-custom-menu {
  178. float: right;
  179. }
  180. }
  181. .main-sidebar,
  182. .left-side {
  183. padding-top: 50px!important;
  184. margin-top: 0!important;
  185. }
  186. }