major refactoring
This commit is contained in:
parent
91aa8371e9
commit
78b5e5f796
14 changed files with 712 additions and 576 deletions
115
pkg/srv/templates/head.html
Normal file
115
pkg/srv/templates/head.html
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#222222">
|
||||
<meta name="description" content="cachefs">
|
||||
<style>
|
||||
body {
|
||||
font: 20px Helvetica, sans-serif;
|
||||
background-color: #111;
|
||||
color: #e6e6e6;
|
||||
margin: 0px;
|
||||
padding: 0 150px 0 150px;
|
||||
}
|
||||
@media only screen and (max-width: 800px) {
|
||||
body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
article {
|
||||
background-color: #222;
|
||||
}
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 10px 0 14px 0;
|
||||
}
|
||||
a:link {
|
||||
color: #e6e6e6;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
color: #e6e6e6;
|
||||
}
|
||||
.listpath a:visited {
|
||||
color: #b2b2b2;
|
||||
}
|
||||
.up a:visited {
|
||||
color: #e6e6e6;
|
||||
}
|
||||
a:hover, .listpath a:hover {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:active {
|
||||
color: #a6a6a6;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
td {
|
||||
padding: 0;
|
||||
}
|
||||
.listitem {
|
||||
background-color: #303030;
|
||||
}
|
||||
.listitem:hover {
|
||||
background-color: #404040;
|
||||
}
|
||||
.listitem:active {
|
||||
background-color: #363636;
|
||||
}
|
||||
.listpath {
|
||||
white-space: normal;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
.listpath a {
|
||||
display: block;
|
||||
min-height: 45px;
|
||||
padding: 0.55em 0 0 5px;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
word-break: break-all;
|
||||
}
|
||||
.listoptions {
|
||||
padding-right: 5px;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
}
|
||||
.listoptions span, .listoptions a {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.spacer {
|
||||
height: 3px;
|
||||
}
|
||||
.red {
|
||||
background-color: #e74c3c;
|
||||
}
|
||||
.yellow {
|
||||
background-color: #f39c12;
|
||||
}
|
||||
.green {
|
||||
background-color: #4caf50;
|
||||
}
|
||||
.status-yellow {
|
||||
color: #f39c12;
|
||||
}
|
||||
.status-green {
|
||||
color: #4caf50;
|
||||
}
|
||||
span {
|
||||
color: #b2b2b2;
|
||||
font-size: 15px;
|
||||
}
|
||||
</style>
|
||||
<title>cachefs | {{.Paths.Base}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<article>
|
||||
{{template "body" .}}
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue