header.less 3.5 KB

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