-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr.css
92 lines (78 loc) · 1.62 KB
/
r.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
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
:root {
--accent-color: #a876aa;
}
body {
font-family: "Poppins", sans-serif;
background-color: #eee;
color: #444;
}
h1 {
margin: 50px 0 30px;
text-align: center;
color: var(--accent-color);
}
.faq-container {
max-width: 600px;
margin: 0 auto;
border-radius: 10px;
background-color: #fff;
overflow: hidden;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.faq {
box-sizing: border-box;
background: transparent;
padding: 30px;
position: relative;
overflow: hidden;
}
.faq:not(:first-child) {
border-top: 1px solid #e6e6e6;
}
.faq-title {
margin: 0 35px 0 0;
}
.faq-text {
margin: 30px 0 0;
display: none;
line-height: 1.5rem;
}
.faq.active {
background-color: #f8f8f8;
box-shadow: inset 4px 0px 0px 0px var(--accent-color);
}
.faq.active .faq-title {
color: var(--accent-color);
}
.faq.active .faq-text {
display: block;
}
.faq-toggle {
background-color: transparent;
border: 1px solid #e6e6e6;
color: inherit;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
padding-top: 3px;
position: absolute;
top: 30px;
right: 30px;
height: 30px;
width: 30px;
transition: 0.3s ease;
}
.faq-toggle:focus {
outline: none;
}
.faq.active .faq-toggle {
transform: rotate(180deg);
background-color: var(--accent-color);
border-color: var(--accent-color);
color: #fff;
}