-
Notifications
You must be signed in to change notification settings - Fork 17
/
windex.css
83 lines (70 loc) · 1.29 KB
/
windex.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
/* Windex directory listing
------------------------- */
body {
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
color: #333;
background: #EEE;
padding-bottom: 120px;
}
.container {
max-width: 600px;
margin: 0 auto;
}
a {
text-decoration: none;
color: #15E;
}
a:visited { color: #818;}
a:hover { color: #038;}
/* table */
table {
width: 100%;
border-collapse: collapse;
}
/* hide header row */
tr:first-child { display: none; }
/* icon */
td:nth-child(1) {
width: 24px;
vertical-align: middle;
}
td:nth-child(1) a { display: block; }
/* file name */
td:nth-child(2) {
width: 100%;
}
td:nth-child(2) a {
display: block;
padding: 8px 10px;
border-radius: 4px;
position: relative;
}
/* pointer for folders */
td:nth-child(2) a[href$="/"]:after {
content: '';
display: block;
width: 9px;
height: 9px;
position: absolute;
right: 15px;
top: 11px;
transform: rotate(45deg);
border-style: solid;
border-width: 3px 3px 0 0;
border-color: #08F;
}
/* Parent directory */
/* select href="/folder/" but not "folder/" */
td:nth-child(2) a[href^="/"][href$="/"]:after {
border-width: 0 0 3px 3px;
border-color: #AAA;
right: 11px
}
td:nth-child(2) a:hover {
background: #CDF;
}
/* size */
td:nth-child(3) {
color: #888;
font-size: 0.9rem;
}