Skip to content

Commit

Permalink
merge theme
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Mar 26, 2021
2 parents b6200a8 + 5367b9e commit 42d1e07
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ bindata_assetfs.go
assets_vfsdata.go
*.un~
*.swp

dist/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
**Binaries** can be downloaded from [this repo releases](https://github.com/codeskyblue/gohttpserver/releases/)

## Requirements
Tested with go-1.10, go-1.11
Tested with go-1.16

## Screenshots
![screen](testdata/filetypes/gohttpserver.gif)
Expand Down
10 changes: 8 additions & 2 deletions assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="theme-color" content="#000000">
<title>[[.Title]]</title>
<link rel="shortcut icon" type="image/png" href="/-/assets/favicon.png" />
<link rel="stylesheet" type="text/css" href="/-/assets/bootstrap-3.3.5/css/bootstrap.min.css">
Expand Down Expand Up @@ -256,7 +257,7 @@ <h4 class="modal-title">
<div class="col-md-12">
<div id="footer" class="pull-right" style="margin: 2em 1em">
<a href="https://github.com/codeskyblue/gohttpserver">gohttpserver (ver:{{version}})</a>, written by <a href="https://github.com/codeskyblue">codeskyblue</a>.
Copyright 2016-2018. go1.10
Copyright 2016-2021. go1.16
</div>
</div>
</div>
Expand All @@ -273,6 +274,11 @@ <h4 class="modal-title">
<script src="/-/assets/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src='/-/assets/[["js/index.js" | urlhash ]]'></script>
<!-- <script src="/-/assets/js/index.js"></script> -->
<!--Sync status bar color with border-color on mobile platforms.-->
<script>
var META = document.getElementsByTagName("meta");
META[2]["content"]=$('.navbar').css('border-color');
</script>
[[if .GoogleTrackerID ]]
<script>
(function (i, s, o, g, r, a, m) {
Expand All @@ -292,4 +298,4 @@ <h4 class="modal-title">
</script> [[ end ]]
</body>

</html>
</html>
31 changes: 31 additions & 0 deletions assets/themes/cyan.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body {}

td>a:hover {
color: #4cc0cf;
font-weight: normal;
}

td>a {
color: rgb(51, 51, 51);
}

a:hover {
font-weight: bold;
}

.navbar {
background-color: #00BCD4;
border-color: #0097A7;
}

.navbar .navbar-brand {
color: white;
}

.navbar {
border-radius: 0px;
}

.navbar-default ul.navbar-nav>li>a {
color: white;
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/codeskyblue/gohttpserver

go 1.16

require (
github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
Expand All @@ -23,5 +25,3 @@ require (
golang.org/x/tools v0.1.0 // indirect
howett.net/plist v0.0.0-20201203080718-1454fab16a06 // indirect
)

go 1.13

0 comments on commit 42d1e07

Please sign in to comment.