暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*--------------------------------------------------------------
  2. 12. Tab
  3. ----------------------------------------------------------------*/
  4. .cs_tab_links.cs_style_1 {
  5. display: flex;
  6. align-items: center;
  7. justify-content: space-around;
  8. flex-wrap: wrap;
  9. border: 1px solid $border;
  10. padding: 12px 0px;
  11. border-left: 0;
  12. border-right: 0;
  13. margin-bottom: 50px;
  14. gap: 10px 20px;
  15. @media (max-width: 991px) {
  16. margin-bottom: 35px;
  17. }
  18. @media (max-width: 767px) {
  19. justify-content: center;
  20. gap: 5px 30px;
  21. }
  22. li {
  23. &.active,
  24. &:hover a {
  25. color: $primary;
  26. }
  27. }
  28. }
  29. .cs_tab_links.cs_style_2 {
  30. display: flex;
  31. align-items: center;
  32. flex-wrap: wrap;
  33. gap: 45px;
  34. margin: 60px 0 30px;
  35. @media (max-width: 991px) {
  36. gap: 5px 25px;
  37. font-size: 16px;
  38. line-height: 1.4em;
  39. }
  40. li {
  41. a {
  42. display: inline-block;
  43. position: relative;
  44. padding-bottom: 5px;
  45. color: $primary;
  46. &::before {
  47. content: '';
  48. position: absolute;
  49. height: 1px;
  50. width: 100%;
  51. background-color: $primary;
  52. bottom: 0;
  53. transform: scaleX(0);
  54. transform-origin: right center;
  55. transition: transform 0.3s ease;
  56. }
  57. }
  58. &.active {
  59. a {
  60. &::before {
  61. transform: scaleX(1);
  62. transform-origin: left center;
  63. }
  64. }
  65. }
  66. }
  67. }
  68. /*-------------------------------------
  69. Tab content design
  70. ---------------------------------------*/
  71. .cs_tabs_fade {
  72. .cs_tab {
  73. display: none;
  74. &.active {
  75. display: block;
  76. }
  77. }
  78. }
  79. //For both tab and slider
  80. .cs_tabs {
  81. position: relative;
  82. .cs_tab {
  83. opacity: 0;
  84. visibility: hidden;
  85. position: absolute;
  86. pointer-events: none;
  87. top: 0;
  88. width: 100%;
  89. transition: all 0.5s ease;
  90. &.active {
  91. opacity: 1;
  92. visibility: visible;
  93. position: initial;
  94. pointer-events: initial;
  95. top: 0;
  96. }
  97. }
  98. }