navs.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. border-top: 0;
  45. border-left-color: @light-blue;
  46. }
  47. > li.header {
  48. border-bottom: 1px solid #ddd;
  49. color: #777;
  50. margin-bottom: 10px;
  51. padding: 5px 10px;
  52. text-transform: uppercase;
  53. }
  54. }
  55. /* NAV TABS */
  56. .nav-tabs-custom {
  57. margin-bottom: 20px;
  58. background: #fff;
  59. box-shadow: @box-boxshadow;
  60. border-radius: @box-border-radius;
  61. > .nav-tabs {
  62. margin: 0;
  63. border-bottom-color: #f4f4f4;
  64. .border-top-radius(@box-border-radius);
  65. > li {
  66. border-top: 3px solid transparent;
  67. margin-bottom: -2px;
  68. > a {
  69. color: #444;
  70. .border-radius(0)!important;
  71. &,
  72. &:hover {
  73. background: transparent;
  74. margin: 0;
  75. }
  76. &:hover {
  77. color: #999;
  78. }
  79. }
  80. &:not(.active) {
  81. > a:hover,
  82. > a:focus,
  83. > a:active {
  84. border-color: transparent;
  85. }
  86. }
  87. margin-right: 5px;
  88. }
  89. > li.active {
  90. border-top-color: @light-blue;
  91. & > a,
  92. &:hover > a {
  93. background-color: #fff;
  94. color: #444;
  95. }
  96. > a {
  97. border-top-color: transparent;
  98. border-left-color: #f4f4f4;
  99. border-right-color: #f4f4f4;
  100. }
  101. }
  102. > li:first-of-type {
  103. margin-left: 0;
  104. &.active {
  105. > a {
  106. border-left-color: transparent;
  107. }
  108. }
  109. }
  110. //Pulled to the right
  111. &.pull-right {
  112. float: none!important;
  113. > li {
  114. float: right;
  115. }
  116. > li:first-of-type {
  117. margin-right: 0;
  118. > a {
  119. border-left-width: 1px;
  120. }
  121. &.active {
  122. > a {
  123. border-left-color: #f4f4f4;
  124. border-right-color: transparent;
  125. }
  126. }
  127. }
  128. }
  129. > li.header {
  130. line-height: 35px;
  131. padding: 0 10px;
  132. font-size: 20px;
  133. color: #444;
  134. > .fa,
  135. > .glyphicon,
  136. > .ion {
  137. margin-right: 5px;
  138. }
  139. }
  140. }
  141. > .tab-content {
  142. background: #fff;
  143. padding: 10px;
  144. .border-bottom-radius(@box-border-radius);
  145. }
  146. .dropdown.open > a {
  147. &:active,
  148. &:focus {
  149. background: transparent;
  150. color: #999;
  151. }
  152. }
  153. }
  154. /* PAGINATION */
  155. .pagination {
  156. > li > a {
  157. background: #fafafa;
  158. color: #666;
  159. .border-radius(0)!important;
  160. }
  161. }