-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilelist.css
58 lines (54 loc) · 2.31 KB
/
filelist.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
/* Filelist extension, https://github.com/GiovanniSalmeri/yellow-filelist */
/* General */
ul.filelist {
list-style-type: disc;
}
ul.filelist li span.filelist-extension {
font-size: 80%;
text-transform: uppercase;
color: red;
}
/* Collapsible */
ul.filelist-collapsible {
padding-inline-start: 20px;
}
ul.filelist-collapsible li {
list-style-type: none;
}
ul.filelist-collapsible li.filelist-directory > button {
font: inherit;
color: inherit;
cursor: pointer;
text-align: inherit;
border: 0;
margin: 0;
padding: 0;
background: none;
box-shadow: none;
}
ul.filelist-collapsible li > span.filelist-basename::before,
ul.filelist-collapsible li > button::before {
padding-inline-end: 8px;
}
ul.filelist-collapsible li.filelist-file > span.filelist-basename::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 154 154' height='0.8em' width='0.8em'%3E%3Crect x='7' y='7' rx='30' ry='30' width='140' height='140' stroke-width='14' stroke='%23b4b4b4' fill='%23f3f3f3' /%3E%3C/svg%3E");
}
ul.filelist-collapsible li.filelist-directory > button[aria-expanded="true"]::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 154 154' height='0.8em' width='0.8em'%3E%3Crect x='7' y='7' rx='30' ry='30' width='140' height='140' stroke-width='14' stroke='%23b4b4b4' fill='%23f3f3f3' /%3E%3Cg stroke='%23000' stroke-width='14'%3E%3Cline x1='30' y1='75' x2='120' y2='75' /%3E%3C/g%3E%3C/svg%3E");
}
ul.filelist-collapsible li.filelist-directory > button[aria-expanded="false"]::before {
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 154 154' height='0.8em' width='0.8em'%3E%3Crect x='7' y='7' rx='30' ry='30' width='140' height='140' stroke-width='14' stroke='%23b4b4b4' fill='%23f3f3f3' /%3E%3Cg stroke='%23000' stroke-width='14'%3E%3Cline x1='30' y1='75' x2='120' y2='75' /%3E%3Cline x1='75' y1='30' x2='75' y2='120' /%3E%3C/g%3E%3C/svg%3E");
}
ul.filelist-collapsible ul {
transition: 0.3s ease-in-out;
overflow: hidden;
}
ul.filelist-collapsible ul[aria-hidden="true"],
ul.filelist-collapsible ul[aria-hidden="true"] ul {
visibility: hidden;
opacity: 0;
}
ul.filelist-collapsible ul[aria-hidden="false"] {
visibility: visible;
opacity: 1;
}