_accrodion.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .faq-one {
  2. padding: 0 0 120px;
  3. position: relative;
  4. &__bg {
  5. position: absolute;
  6. bottom: 4%;
  7. right: 0;
  8. }
  9. .container {
  10. position: relative;
  11. @media (min-width: 992px) {
  12. max-width: 920px;
  13. }
  14. }
  15. }
  16. .faq-accrodion {
  17. .accrodion {
  18. position: relative;
  19. transition: all .4s ease;
  20. &:before {
  21. content: '';
  22. position: absolute;
  23. top: -2px;
  24. bottom: -2px;
  25. left: 0px;
  26. right: 0px;
  27. border-radius: 7px;
  28. transform: scaleX(0);
  29. background-image: linear-gradient(0deg, #ff4eb5 0%, #ffa065 100%);
  30. transition: transform .4s ease;
  31. }
  32. +.accrodion {
  33. margin-top: 20px;
  34. }
  35. &.active {
  36. box-shadow: 0px 20px 60px 0px rgba(244, 151, 190, 0.3);
  37. .accrodion-inner {
  38. margin: 0 2px;
  39. }
  40. &:before {
  41. transform: scaleX(1);
  42. }
  43. .accrodion-title:before {
  44. content: '\f068';
  45. color: #ff4eb5;
  46. }
  47. .accrodion-title {
  48. padding-bottom: 0;
  49. }
  50. .accrodion-title h4 {
  51. color: #ff4eb5;
  52. }
  53. }
  54. .accrodion-inner {
  55. background-color: #fff;
  56. padding: 32px 0;
  57. border-style: solid;
  58. border-width: 1px;
  59. border-color: rgb(239, 239, 239);
  60. border-radius: 7px;
  61. position: relative;
  62. transition: all .4s ease;
  63. }
  64. .accrodion-title {
  65. padding: 0px 40px;
  66. cursor: pointer;
  67. position: relative;
  68. transition: all .4s ease;
  69. @media(max-width: 375px) {
  70. padding-right: 50px;
  71. }
  72. &:before {
  73. content: '\f067';
  74. font-family: 'FontAwesome';
  75. font-size: 14px;
  76. color: $thm-black;
  77. text-align: center;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. position: absolute;
  82. top: 50%;
  83. right: 40px;
  84. transform: translateY(-50%);
  85. }
  86. h4 {
  87. margin: 0;
  88. color: $thm-black;
  89. font-size: 18px;
  90. font-weight: 500;
  91. @media(max-width: 375px) {
  92. line-height: 1.4em;
  93. }
  94. }
  95. }
  96. .accrodion-content {
  97. .inner {
  98. padding: 0 40px;
  99. padding-top: 25px;
  100. padding-bottom: 0px;
  101. }
  102. p {
  103. margin: 0;
  104. color: #74727a;
  105. font-size: 16px;
  106. line-height: 30px;
  107. }
  108. }
  109. }
  110. }