header.less 4.0 KB

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