-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (110 loc) · 2.07 KB
/
Copy pathstyle.css
File metadata and controls
129 lines (110 loc) · 2.07 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
:root{
--main_color: #fff;
--orange: #f27a1a;
--text: #666666;
--header: #2a2a2a;
--bg_one: #94c5e3;
--bg_two: #78c271;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
font-size: 10px;
}
body{
background-color: var(--main_color);
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
padding-bottom: 3rem;
}
.container{
width: 60%;
min-height: 100vh;
margin: 3rem auto;
}
h1{
background-color: var(--header);
color: white;
text-align: center;
font-size: 4rem;
padding: 3rem 0;
margin: 0;
}
@media (max-width: 700px){.container{width:calc(100% - 28px);}.faq h2{font-size:1.7rem;padding-right:2rem;}h1{font-size:2.8rem;padding:2.2rem 1rem;}}
.faq{
border: 1px solid var(--text);
border-radius: 10px;
padding: 1.5rem;
margin-bottom: 2rem;
width: 100%;
position: relative;
overflow: hidden;
}
.faq h2{
font-size: 2rem;
color: var(--header);
}
.faq p{
font-size: 1.5rem;
word-spacing: 1.5px;
letter-spacing: .3px;
display: none;
color: var(--text);
margin-top: 1rem;
}
.faq.active p{
display: block;
}
.faq.active h2{
color: var(--orange);
}
.faq.active{
border-color: var(--orange);
}
.btn{
background-color: transparent;
border: none;
outline: none;
font-size: 2rem;
color: var(--text);
position: absolute;
top: 18px;
right: 20px;
cursor:pointer;
}
.faq button i.fa-solid.fa-chevron-up{
display: none;
}
.faq.active button i.fa-solid.fa-chevron-down{
display: none;
}
.faq.active button i.fa-solid.fa-chevron-up{
display: block;
color: var(--orange);
}
.faq::before,
.faq::after{
content: '\f075';
font-family: 'Font Awsome 6 Free';
font-size: 10rem;
position: absolute;
top: 10px;
left: 10px;
color: var(--bg_one);
opacity: .3;
z-index: -1;
display: none;
}
.faq::before{
color: var(--bg_two);
top: -30px;
left: -30px;
transform: rotateY(180deg);
}
.faq.active::before,
.faq.active::after{
display: block;
}