-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (95 loc) · 1.68 KB
/
style.css
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
@import url(reset.css);
@import url(config.css);
* {
font-size: var(--fs-default);
}
body {
background: var(--clr-bkg-violet);
display: grid;
place-items: center;
margin: 2rem;
}
.divider {
width: 100%;
color: var(--clr-divider);
}
.faq__img img:nth-child(2) {
position: relative;
top: -70px;
height: auto;
}
.faq {
background-color: whitesmoke;
max-width: 370px;
padding: 3rem;
border-radius: 1.5rem;
font-family: var(--ff-default);
display: flex;
flex-direction: column;
align-items: center;
margin: 2rem 0;
}
@media(min-width:900px) {
.faq {
display: grid;
grid-template-columns: 1fr 1fr;
max-width: 700px;
}
.faq__img {
width: 100%;
position: relative;
left: -70px;
}
.faq__questions h1{
display: flex;
}
}
.faq__questions h1 {
text-align: center;
font-size: 3rem;
}
.faq .label {
font-size: 1.3rem;
}
.faq .label::before {
content: url(/images/icon-arrow-down.svg);
color: var(--clr-text-red);
position: absolute;
top: 50%;
transform: translateY(-50%);
right: -2px;
font-size: 1.75rem;
font-weight: bolder;
}
.faq .content {
font-size: 1.1rem;
position: relative;
text-align: justify;
height: 0;
overflow: hidden;
transition: .5s;
width: 90%;
}
.faq__questions {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.faq__questions .container {
position: relative;
}
.faq__questions .label {
position: relative;
cursor: pointer;
}
.faq .container.active .content {
height: 60px;
}
.faq .label.active{
font-weight: var(--fw-bold);
}
.faq .container.active .label::before {
content: url(/images/icon-arrow-down.svg);
transform: rotate(180deg);
font-size: 1.75rem;
}