navs.less 2.9 KB

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