Repository navigation
Expand file tree
/
Copy pathfaq-boxes.css
More file actions
108 lines (95 loc) · 1.94 KB
/
Copy pathfaq-boxes.css
File metadata and controls
108 lines (95 loc) · 1.94 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
/* Styles for FAQ boxes using <details> and <summary> elements */
/* Style the entire box */
details.faq-box {
border-radius: 8px;
padding: 1em;
margin: 1em 0;
background: #f9f9f9;
}
/* Move the arrow to the right */
details.faq-box summary {
list-style: none;
/* Remove default arrow */
cursor: pointer;
position: relative;
padding-right: 1.5em;
font-weight: bold;
}
/* Create a custom arrow on the right */
details.faq-box summary::after {
content: "▶";
/* right-pointing arrow */
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
font-size: 1em;
}
/* Rotate arrow when open */
details.faq-box[open] summary::after {
transform: translateY(-50%) rotate(90deg);
}
a img[src*="img.shields.io"] {
vertical-align: middle;
height: 20px;
margin-right: 6px;
}
.ayu {
details.faq-box {
background-color: #3a516e;
color: #FFFFFF;
}
details.faq-box[open]>*:not(summary) {
color: #dbdbdb;
/* black for the open content */
}
}
.navy {
details.faq-box {
background-color: #3a516e;
color: #FFFFFF;
}
details.faq-box[open]>*:not(summary) {
color: #DCE6F0;
a {
color: #0096cf;
}
}
}
.coal {
details.faq-box {
background-color: #3a516e;
color: #FFFFFF;
}
details.faq-box[open]>*:not(summary) {
color: #dbdbdb;
a {
color: #0096cf;
}
}
}
.rust {
details.faq-box {
background-color: #99908a;
color: #FFFFFF;
}
details.faq-box[open]>*:not(summary) {
color: #dbdbdb;
a {
color: #F5B971;
}
}
}
.light {
details.faq-box {
background-color: #D3D3D3;
color: #FFFFFF;
}
details.faq-box[open]>*:not(summary) {
color: #111111;
a {
color: #007BFF;
}
}
}