navs.less 2.9 KB

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