navs.less 2.9 KB

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