Blame view

frontend/web/css/new-style/faq.scss 1.84 KB
d33ff9db   Виталий   new index header ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
  .section-question {
    padding-top: 74px;
    padding-bottom: 64px;
  }
  .faq {
    &__items {
      margin-top: 39px;
    }
    &__item {
      cursor: pointer;
      margin-top: 6px;
      background: #f6f6f6;
      border-radius: 4px;
      padding: 21px 67px 21px 25px;
      position: relative;
  
      &_close {
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 100%;
        right: 12px;
        top: 12px;
        cursor: pointer;
        transition: 0.2s;
  
        &:before, &:after {
          content: '';
          position: absolute;
          background: #8e8f90;
          top: 50%;
          left: 50%;
        }
        &:before {
          width: 24px;
          height: 2px;
          margin-left: -12px;
          margin-top: -1px;
        }
        &:after {
          width: 2px;
          height: 24px;
          margin-left: -1px;
          margin-top: -12px;
        }
      }
      &_title {
        font-size: 18px;
        line-height: 22px;
        font-weight: 700;
  
      }
      &_text {
        font-size: 15px;
        line-height: 23px;
        height: 0;
        overflow: hidden;
        p {
          margin-top: 10px;
          &:last-child {
            margin-bottom: 4px;
          }
        }
      }
      &.active {
        cursor: default;
        .faq__item {
          &_close {
            background: #ffffff;
            transform: rotate(45deg);
  
          }
          &_text {
            height: auto;
          }
        }
      }
    }
  }
  @media (max-width: 991px) {
    .section-question {
      padding-top: 29px;
      padding-bottom: 32px;
    }
    .faq__items {
      margin-top: 26px;
    }
  
  }
  @media (max-width: 767px) {
    .faq {
      &__items {
        margin-top: 12px;
      }
      &__item {
        padding: 21px 47px 20px 15px;
        &_title {
          font-size: 15px;
          line-height: 19px;
  
        }
        &_close {
          right: 10px;
        }
      }
    }
    .section-question {
      padding-top: 29px;
      padding-bottom: 32px;
    }
  }