navs.less 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * Component: Nav
  3. * --------------
  4. */
  5. .nav {
  6. > li > a:hover,
  7. > li > a:active,
  8. > li > a:focus {
  9. color: #444;
  10. background: #f7f7f7;
  11. }
  12. }
  13. /* NAV PILLS */
  14. .nav-pills {
  15. > li > a {
  16. .border-radius(0);
  17. border-top: 3px solid transparent;
  18. color: #444;
  19. > .fa,
  20. > .glyphicon,
  21. > .ion {
  22. margin-right: 5px;
  23. }
  24. }
  25. > li.active > a,
  26. > li.active > a:hover,
  27. > li.active > a:focus {
  28. border-top-color: @light-blue;
  29. }
  30. > li.active > a {
  31. font-weight: 600;
  32. }
  33. }
  34. /* NAV STACKED */
  35. .nav-stacked {
  36. > li > a {
  37. .border-radius(0);
  38. border-top: 0;
  39. border-left: 3px solid transparent;
  40. color: #444;
  41. }
  42. > li.active > a,
  43. > li.active > a:hover {
  44. background: transparent;
  45. color: #444;
  46. border-top: 0;
  47. border-left-color: @light-blue;
  48. }
  49. > li.header {
  50. border-bottom: 1px solid #ddd;
  51. color: #777;
  52. margin-bottom: 10px;
  53. padding: 5px 10px;
  54. text-transform: uppercase;
  55. }
  56. }
  57. /* NAV TABS */
  58. .nav-tabs-custom {
  59. margin-bottom: 20px;
  60. background: #fff;
  61. box-shadow: @box-boxshadow;
  62. border-radius: @box-border-radius;
  63. > .nav-tabs {
  64. margin: 0;
  65. border-bottom-color: #f4f4f4;
  66. .border-top-radius(@box-border-radius);
  67. > li {
  68. border-top: 3px solid transparent;
  69. margin-bottom: -2px;
  70. > a {
  71. color: #444;
  72. .border-radius(0);
  73. &.text-muted {
  74. color: #999;
  75. }
  76. &,
  77. &:hover {
  78. background: transparent;
  79. margin: 0;
  80. }
  81. &:hover {
  82. color: #999;
  83. }
  84. }
  85. &:not(.active) {
  86. > a:hover,
  87. > a:focus,
  88. > a:active {
  89. border-color: transparent;
  90. }
  91. }
  92. margin-right: 5px;
  93. }
  94. > li.active {
  95. border-top-color: @light-blue;
  96. & > a,
  97. &:hover > a {
  98. background-color: #fff;
  99. color: #444;
  100. }
  101. > a {
  102. border-top-color: transparent;
  103. border-left-color: #f4f4f4;
  104. border-right-color: #f4f4f4;
  105. }
  106. }
  107. > li:first-of-type {
  108. margin-left: 0;
  109. &.active {
  110. > a {
  111. border-left-color: transparent;
  112. }
  113. }
  114. }
  115. //Pulled to the right
  116. &.pull-right {
  117. float: none!important;
  118. > li {
  119. float: right;
  120. }
  121. > li:first-of-type {
  122. margin-right: 0;
  123. > a {
  124. border-left-width: 1px;
  125. }
  126. &.active {
  127. > a {
  128. border-left-color: #f4f4f4;
  129. border-right-color: transparent;
  130. }
  131. }
  132. }
  133. }
  134. > li.header {
  135. line-height: 35px;
  136. padding: 0 10px;
  137. font-size: 20px;
  138. color: #444;
  139. > .fa,
  140. > .glyphicon,
  141. > .ion {
  142. margin-right: 5px;
  143. }
  144. }
  145. }
  146. > .tab-content {
  147. background: #fff;
  148. padding: 10px;
  149. .border-bottom-radius(@box-border-radius);
  150. }
  151. .dropdown.open > a {
  152. &:active,
  153. &:focus {
  154. background: transparent;
  155. color: #999;
  156. }
  157. }
  158. }
  159. /* PAGINATION */
  160. .pagination {
  161. > li > a {
  162. background: #fafafa;
  163. color: #666;
  164. }
  165. &.pagination-flat {
  166. > li > a {
  167. .border-radius(0)!important;
  168. }
  169. }
  170. }