tabs-accordions.less 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. @tabs-color: @themeColor;
  2. //Tabs Bars
  3. .@{brand}-tabsbar {
  4. margin-bottom: 15px;
  5. .nav-tabs {
  6. border: 1px solid @default-border-color;
  7. margin-bottom: 15px;
  8. li {
  9. height: 41px;
  10. padding: 1px;
  11. display: inline-block;
  12. margin-bottom: 0;
  13. border-right: 1px solid @default-border-color;
  14. a {
  15. border: 0 none;
  16. height: 39px;
  17. line-height: 39px;
  18. display: block;
  19. padding: 0 15px;
  20. color: @baseFontcolor;
  21. margin-right: 0;
  22. &:active, &:focus {
  23. outline:none !important;
  24. }
  25. &,&:focus {
  26. border-radius:0 !important;
  27. }
  28. &:hover {
  29. background-color: transparent;
  30. }
  31. .badge {
  32. margin-left: 4px;
  33. }
  34. &.active {
  35. background: @tabs-color;
  36. color: @white;
  37. border: 0 none;
  38. &:hover, &:focus {
  39. border: 0 none;
  40. }
  41. }
  42. &:first-child {
  43. border-left: 0 none;
  44. }
  45. }
  46. }
  47. }
  48. &.lg {
  49. @media (min-width: 768px) {
  50. .nav-tabs {
  51. li {
  52. height: 60px;
  53. padding: 3px;
  54. a {
  55. height: 54px;
  56. line-height: 54px;
  57. font-size: @baseFontSize + 1;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. &.arrow {
  64. .nav-tabs {
  65. li {
  66. a {
  67. &.active {
  68. &:after {
  69. width: 0; height: 0;
  70. z-index: 2;
  71. content: " ";
  72. display: block;
  73. border: 10px solid;
  74. border-color: @tabs-color transparent transparent transparent;
  75. margin: 0 auto -7px;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. @media (max-width: 767px) {
  84. .@{brand}-tabsbar {
  85. .nav-tabs {
  86. li {
  87. a {
  88. &.active {
  89. border-color: @tabs-color!important;
  90. }
  91. }
  92. }
  93. }
  94. &.arrow {
  95. .nav-tabs {
  96. li {
  97. a {
  98. &.active {
  99. &:after {
  100. display: none!important;
  101. }
  102. }
  103. }
  104. }
  105. }
  106. }
  107. &.tabs-primary {
  108. .nav-tabs {
  109. li {
  110. a {
  111. &.active {
  112. border-color: @brand-primary!important;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. .@{brand}-sub-menu {
  121. padding-top: 15px;
  122. border-bottom: 1px solid @default-border-color;
  123. ul {
  124. list-style: none;
  125. padding-left: 0; margin: 0;
  126. li {
  127. float: left;
  128. padding: 15px;
  129. position: relative;
  130. a {
  131. text-decoration: none!important;
  132. color: @baseFontcolor;
  133. font-weight: 700;
  134. }
  135. &.active {
  136. &:after {
  137. width: 100%;
  138. }
  139. }
  140. &:after {
  141. content: "";
  142. position: absolute;
  143. bottom: 0;
  144. width: 0;
  145. left: 0;
  146. height: 4px;
  147. background: @brand-secondary;
  148. transition: all cubic-bezier(0.215,0.61,0.355,1) 0.25s;
  149. }
  150. }
  151. }
  152. }
  153. // Accordion styles
  154. //------------------------------------
  155. .card-faqs-group {
  156. .card {
  157. .card-header {
  158. padding: 0;
  159. border-bottom: 0 none;
  160. background-color: transparent;
  161. .btn {
  162. display: flex;
  163. align-items: center;
  164. width: 100%;
  165. padding: @card-spacer-y @card-spacer-x;
  166. border: 0 none;
  167. .card-title {
  168. font-weight: 500;
  169. margin-right: auto;
  170. margin-bottom: 0;
  171. }
  172. .card-icon {
  173. [class*=" fa-"], [class^="fa-"] {
  174. font-size: 1.75rem;
  175. }
  176. }
  177. }
  178. .card-title {
  179. font-size: 1.125rem;
  180. font-weight: 500;
  181. margin-right: auto;
  182. margin-bottom: 0;
  183. }
  184. }
  185. &:last-child {
  186. margin-bottom: 0;
  187. }
  188. &:not(.accordion-active) {
  189. box-shadow: none;
  190. &:hover, &:focus {
  191. /* border: 1px solid var(--primary); */
  192. }
  193. }
  194. &.accordion-active {
  195. .card-header {
  196. .card-title {
  197. color: var(--primary);
  198. }
  199. }
  200. }
  201. }
  202. &:not(.accordion) {
  203. .card {
  204. margin-bottom: 1rem;
  205. }
  206. }
  207. &.accordion {
  208. .card {
  209. border: 0 none;
  210. box-shadow: none;
  211. background-color: transparent;
  212. .card-header {
  213. background-color: transparent;
  214. .btn {
  215. padding-left: 0;
  216. padding-right: 0;
  217. }
  218. }
  219. .card-body {
  220. padding-left: 0;
  221. padding-right: 0;
  222. padding-top: 0;
  223. }
  224. &:not(.accordion-active) {
  225. &:hover, &:focus {
  226. border: 0 none;
  227. }
  228. }
  229. }
  230. }
  231. }