Skip to content

Commit d32561c

Browse files
committed
Add styles
1 parent 414459e commit d32561c

File tree

1 file changed

+109
-0
lines changed

1 file changed

+109
-0
lines changed

Source-Code/FAQApplication/style.css

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
font-family: "Times New Roman", Times, serif;
9+
background: linear-gradient(to right, #26265a, #2f1532);
10+
color: white;
11+
background-attachment: fixed;
12+
-ms-overflow-style: none; /* IE and Edge */
13+
scrollbar-width: none; /* Firefox */
14+
}
15+
16+
section {
17+
justify-items: center;
18+
display: flex;
19+
flex-direction: column;
20+
align-items: center;
21+
margin: auto;
22+
padding: auto;
23+
}
24+
25+
.title {
26+
font-size: 35px;
27+
margin: 40px 0;
28+
color: rgb(234, 209, 231);
29+
}
30+
31+
.faq {
32+
max-width: 700px;
33+
margin-top: 20px;
34+
padding: 20px;
35+
border: 2px solid greenyellow;
36+
cursor: pointer;
37+
border-radius: 15px;
38+
}
39+
40+
.question {
41+
display: flex;
42+
justify-content: space-between;
43+
align-items: center;
44+
}
45+
46+
h3 {
47+
font-size: 25px;
48+
color: rgb(234, 209, 231);
49+
}
50+
51+
.answer {
52+
max-height: 0;
53+
overflow: hidden;
54+
transition: max-height 1.4s ease;
55+
color: rgb(191, 253, 233);
56+
}
57+
58+
.answer p {
59+
padding-top: 20px;
60+
line-height: 1.6;
61+
font-size: 20px;
62+
}
63+
64+
.faq.active .answer {
65+
max-height: 300px;
66+
animation: fade 1s ease-in-out;
67+
}
68+
69+
i {
70+
transition: transform 0.5s ease-in;
71+
color: yellow;
72+
}
73+
74+
.faq.active i {
75+
transform: rotate(180deg);
76+
}
77+
78+
@keyframes fade {
79+
from {
80+
opacity: 0;
81+
transform: translateY(-10px);
82+
}
83+
84+
to {
85+
opacity: 1;
86+
transform: translateY(0);
87+
}
88+
}
89+
90+
/* @media screen and (max-width: 768px) {
91+
section {
92+
margin: 0 auto;
93+
}
94+
}
95+
96+
@media screen and (max-width: 1024px) {
97+
section {
98+
margin: 0 auto;
99+
}
100+
} */
101+
102+
::-webkit-scrollbar {
103+
width: 0;
104+
height: 0;
105+
}
106+
107+
body::-webkit-scrollbar {
108+
display: none; /* Safari and Chrome */
109+
}

0 commit comments

Comments
 (0)