-
Notifications
You must be signed in to change notification settings - Fork 77
/
style.css
161 lines (139 loc) · 3.06 KB
/
style.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
:root {
--color-bg: white;
--color-text: #404040;
--color-table-bg: white;
--color-table-bg--head: #efefef;
--color-table-bg--even: whitesmoke;
--color-table-text: #222222;
--color-link-text: #3498db;
--color-link-text--visited: #8e44ad;
--color-search-text: #8e44ad;
--color-search-bg: white;
--color-search-border: rgba(0, 0, 0, .15);
--color-search-border--focus: #8e44ad;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #222222;
--color-text: #bbb;
--color-table-bg: #222222;
--color-table-bg--head: #181818;
--color-table-bg--even: #333;
--color-table-text: #ccc;
--color-link-text: #3096d5;
--color-link-text--visited: #9e4ebf;
--color-search-text: #9e4ebf;
--color-search-bg: #181818;
--color-search-border: rgba(255, 255, 255, .15);
--color-search-border--focus: #9e4ebf;
}
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-weight: 300;
color: var(--color-text);
background-color: var(--color-bg);
}
table {
width: 100%;
background: var(--color-table-bg);
border: 0;
table-layout: auto;
}
table thead {
background: var(--color-table-bg--head);
}
table tr th,
table tr td {
padding: 0.5625rem 0.625rem;
font-size: 0.875rem;
color: var(--color-table-text);
text-align: left;
line-height: 1.125rem;
}
table thead tr th {
padding: 0.5rem 0.625rem 0.625rem;
font-weight: bold;
}
table tr.even {
background: var(--color-table-bg--even);
}
a {
text-decoration: none;
color: var(--color-link-text);
}
a:hover {
text-decoration: underline;
}
a:visited {
color: var(--color-link-text--visited);
}
.img-wrap {
vertical-align: middle;
display: inline-block;
margin-right: 8px;
width: 16px;
height: 16px;
}
.img-wrap img {
display: block;
width: 100%;
height: 100%;
max-width: none;
object-fit: contain;
}
.img-wrap + a {
display: inline-block;
vertical-align: middle;
}
.hidden {
display: none;
}
#page-header {
display: flex;
align-items: center;
margin-left: 0.625rem;
margin-right: 0.625rem;
}
#search {
display: block;
padding: 0.5rem 0.75rem;
font-size: 1rem;
line-height: 1.25;
color: var(--color-search-text);
background-color: var(--color-search-bg);
background-image: none;
background-clip: padding-box;
border: 1px solid var(--color-search-border);
border-radius: 0.25rem;
margin-left: 1rem;
-webkit-appearance: textfield;
}
#search:focus {
border-color: var(--color-search-border--focus);
outline: 0;
}
/* Hide extra columns so they don't squash file names */
@media (max-width: 600px) {
.indexcollastmod, .indexcoldesc, .indexcolsize {
display: none;
}
h1 {
font-size: 1.5em;
}
#page-header {
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
margin-bottom: 1em
}
#search {
margin-left: 0;
}
}
@media (max-width: 400px) {
h1 {
font-size: 1.375em;
}
}