Skip to content

Commit 42d1e07

Browse files
committed
merge theme
2 parents b6200a8 + 5367b9e commit 42d1e07

File tree

5 files changed

+44
-5
lines changed

5 files changed

+44
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ bindata_assetfs.go
2929
assets_vfsdata.go
3030
*.un~
3131
*.swp
32+
33+
dist/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
**Binaries** can be downloaded from [this repo releases](https://github.com/codeskyblue/gohttpserver/releases/)
1414

1515
## Requirements
16-
Tested with go-1.10, go-1.11
16+
Tested with go-1.16
1717

1818
## Screenshots
1919
![screen](testdata/filetypes/gohttpserver.gif)

assets/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
7+
<meta name="theme-color" content="#000000">
78
<title>[[.Title]]</title>
89
<link rel="shortcut icon" type="image/png" href="/-/assets/favicon.png" />
910
<link rel="stylesheet" type="text/css" href="/-/assets/bootstrap-3.3.5/css/bootstrap.min.css">
@@ -256,7 +257,7 @@ <h4 class="modal-title">
256257
<div class="col-md-12">
257258
<div id="footer" class="pull-right" style="margin: 2em 1em">
258259
<a href="https://github.com/codeskyblue/gohttpserver">gohttpserver (ver:{{version}})</a>, written by <a href="https://github.com/codeskyblue">codeskyblue</a>.
259-
Copyright 2016-2018. go1.10
260+
Copyright 2016-2021. go1.16
260261
</div>
261262
</div>
262263
</div>
@@ -273,6 +274,11 @@ <h4 class="modal-title">
273274
<script src="/-/assets/bootstrap-3.3.5/js/bootstrap.min.js"></script>
274275
<script src='/-/assets/[["js/index.js" | urlhash ]]'></script>
275276
<!-- <script src="/-/assets/js/index.js"></script> -->
277+
<!--Sync status bar color with border-color on mobile platforms.-->
278+
<script>
279+
var META = document.getElementsByTagName("meta");
280+
META[2]["content"]=$('.navbar').css('border-color');
281+
</script>
276282
[[if .GoogleTrackerID ]]
277283
<script>
278284
(function (i, s, o, g, r, a, m) {
@@ -292,4 +298,4 @@ <h4 class="modal-title">
292298
</script> [[ end ]]
293299
</body>
294300

295-
</html>
301+
</html>

assets/themes/cyan.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
body {}
2+
3+
td>a:hover {
4+
color: #4cc0cf;
5+
font-weight: normal;
6+
}
7+
8+
td>a {
9+
color: rgb(51, 51, 51);
10+
}
11+
12+
a:hover {
13+
font-weight: bold;
14+
}
15+
16+
.navbar {
17+
background-color: #00BCD4;
18+
border-color: #0097A7;
19+
}
20+
21+
.navbar .navbar-brand {
22+
color: white;
23+
}
24+
25+
.navbar {
26+
border-radius: 0px;
27+
}
28+
29+
.navbar-default ul.navbar-nav>li>a {
30+
color: white;
31+
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/codeskyblue/gohttpserver
22

3+
go 1.16
4+
35
require (
46
github.com/alecthomas/kingpin v2.2.6+incompatible
57
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
@@ -23,5 +25,3 @@ require (
2325
golang.org/x/tools v0.1.0 // indirect
2426
howett.net/plist v0.0.0-20201203080718-1454fab16a06 // indirect
2527
)
26-
27-
go 1.13

0 commit comments

Comments
 (0)