forked from Mikito-Coder/BisonBytes2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FAQ.css
137 lines (95 loc) · 1.8 KB
/
FAQ.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
.faq-section {
max-width: 600px;
margin: 20px auto;
padding: 30px;
}
.faq {
border: 2px solid #000000;
border-radius: 8px;
margin: 10px 0;
overflow: hidden; /* Ensures the border-radius applies to child elements */
outline: 5px solid;
margin-bottom: 30px;
font-weight: 900;
}
.faq summary {
padding: 15px;
background-color: #000000;
color: #333;
border-bottom: 2px solid;
list-style: none; /* Removes the default list marker */
cursor: pointer;
font-size:x-small;
line-height: 1.8;
color: white;
}
.faq summary:hover {
background-color: #395287c0;
}
.faq summary::marker {
display: none; /* Removes the default arrow marker */
}
.faq summary::after {
content: '+';
float: right;
font-size: 24px;
font-weight: 900;
}
.faq[open] summary::after {
content: '-';
font-weight: 900;
}
.faq p {
padding: 15px;
margin: 0;
background-color: white;
}
/* old */
/*
.card{
background-color: white;
width: 400px;
padding: 22px 30px;
border-radius: 5px;
line-height: 1.8;
}
#ch{
display: none;
}
#ch:checked ~ .content {
display: block;
}
#ch:checked ~ label {
display: none;
}
.content{
display: none;
}
label{
display: inline-block;
cursor: pointer;
color: #fff;
background-color: rgb(72, 113, 97);
padding: 3px 13px;
border-radius: 3px;
margin-top: 12px;
}
.extra_text{
display: none;
}
.faq:nth-of-type(1) summary {
border-top: 4px solid #ffd700;
}
.faq:nth-of-type(2) summary {
border-top: 4px solid #ffa500;
}
.faq:nth-of-type(3) summary {
border-top: 4px solid #ff69b4;
}
.faq:nth-of-type(4) summary {
border-top: 4px solid #6495ed;
}
.faq:nth-of-type(5) summary {
border-top: 4px solid #0000ff;
}
*/