summaryrefslogtreecommitdiff
path: root/web/static/style.css
blob: 965406b59ab1108880f513a6d684f52e31f7f04a (plain) (blame)
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
:root {
  font: 14px/1.45 sans-serif;
  color: #333;
  background: white;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 22px 3%; }
a { color: #07539b; text-decoration: none; }
a:hover { text-decoration: underline; }
header { padding: 0 8px 17px; }
.brand { font-size: 30px; font-weight: bold; color: #222; letter-spacing: -1px; }
.description { color: #777; margin-top: 1px; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 3px solid #ccc;
  padding: 0 7px;
}
.toolbar > a, .toolbar > button {
  padding: 5px 14px;
  color: #555;
  background: none;
  border: 0;
  font-size: 15px;
}
.toolbar .selected { background: #ccc; color: #111; }
button, input, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer;
  border: 1px solid #aaa;
  padding: 2px 9px;
  background: #f5f5f5;
  border-radius: 0;
}
button:hover:enabled { background: #e8e8e8; }
button:disabled { color: #999; cursor: default; }
#path-form { margin-left: auto; display: flex; align-items: center; gap: 6px; padding-bottom: 5px; }
#path-form label { color: #777; font-size: 12px; }
#path { width: 250px; border: 1px solid #bbb; padding: 2px 5px; font: 13px/1.5 monospace; }
main { padding: 0 8px; }
#breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 0 5px; font-family: monospace; overflow-wrap: anywhere; }
#breadcrumbs .separator { color: #999; }
#breadcrumbs [aria-current] { color: #333; font-weight: bold; }
.summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 13px; font-size: 12px; }
#status { color: #777; margin: 0; min-height: 18px; }
#status.error { color: #a22; }
#up { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #eee; padding: 4px 8px; font-weight: bold; border-bottom: 1px solid #ccc; }
td { padding: 3px 8px; vertical-align: top; }
tbody tr:nth-child(even) { background: #f7f7f7; }
tbody tr:hover { background: #edf3f8; }
.mode { width: 120px; color: #777; font: 12px/1.7 monospace; white-space: nowrap; }
.entry { font-family: monospace; overflow-wrap: anywhere; }
.entry.directory { font-weight: bold; }
.size { width: 110px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.size { color: #666; font-size: 12px; }
#empty { color: #777; padding: 4px 8px; }
.file-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; padding: 6px 8px; background: #eee; border-bottom: 1px solid #ccc; }
h1 { font: bold 14px monospace; margin: 0; overflow-wrap: anywhere; }
#file-mode, #file-size { color: #666; font: 12px monospace; }
#download { margin-left: auto; font-size: 12px; }
textarea { display: block; width: 100%; min-height: 420px; resize: vertical; border: 1px solid #ddd; border-top: 0; padding: 10px; font: 13px/1.6 monospace; tab-size: 4; white-space: pre; overflow: auto; }
#binary { color: #777; padding: 16px 8px; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; }
#edit-status { color: #777; }
.layout { display: flex; align-items: flex-start; gap: 16px; }
#sidebar { flex: 0 0 220px; border-right: 1px solid #e2e2e2; padding: 8px 10px 0 0; min-width: 0; }
.tree-head { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 4px; }
#filetree, #filetree ul { list-style: none; margin: 0; padding: 0; }
#filetree ul { margin-left: 12px; }
#filetree li { line-height: 1.7; white-space: nowrap; }
#filetree .node { cursor: pointer; font-family: monospace; overflow-wrap: anywhere; }
#filetree .node.dir { font-weight: bold; }
#filetree .node.current { background: #ccc; }
#filetree .twist { display: inline-block; width: 12px; color: #999; }
.layout main { flex: 1 1 auto; min-width: 0; }
#stat-panel { margin-top: 18px; border-top: 1px solid #eee; padding-top: 8px; }
#stat-panel h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #999; margin: 0 0 6px; }
#stat { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font: 12px monospace; margin: 0; }
#stat dt { color: #888; }
#stat dd { margin: 0; overflow-wrap: anywhere; }
#stream { display: block; width: 100%; min-height: 300px; max-height: 60vh; overflow: auto; border: 1px solid #ddd; border-top: 0; padding: 10px; margin: 0; font: 13px/1.5 monospace; background: #fbfbfb; white-space: pre-wrap; }
#follow { margin-left: auto; font-size: 12px; }
#follow.active { background: #ccc; color: #111; }
#follow + #download { margin-left: 0; }
footer { margin: 30px 8px 0; padding-top: 7px; border-top: 1px solid #ddd; text-align: right; color: #999; font-size: 11px; }
a:focus-visible, button:focus-visible { outline: 2px solid #07539b; outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  body { padding: 14px 10px; }
  header { padding-left: 3px; }
  .brand { font-size: 26px; }
  .toolbar { flex-wrap: wrap; padding: 0; }
  .toolbar > a, .toolbar > button { padding: 5px 10px; }
  #path-form { order: -1; width: 100%; margin: 0 0 6px; }
  #path { width: auto; min-width: 0; flex: 1; }
  main { padding: 0; }
  th, td { padding-left: 5px; padding-right: 5px; }
  .mode { width: 86px; font-size: 10px; }
  .size { width: 65px; }
  .summary { align-items: start; }
  .file-heading { gap: 7px 12px; }
  textarea { min-height: 350px; }
  .layout { flex-direction: column; }
  #sidebar { flex: none; width: 100%; border-right: 0; border-bottom: 1px solid #e2e2e2; max-height: 180px; overflow: auto; padding: 0 0 6px; }
}