Use better coloring [1/2]
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/yukari/trunk@143 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
parent
0950c02269
commit
9d49ddacad
2
rc.d/yukari.yml
Normal file
2
rc.d/yukari.yml
Normal file
@ -0,0 +1,2 @@
|
||||
cmd: /usr/local/bin/yukari
|
||||
user: www
|
43
yukari.go
43
yukari.go
@ -219,32 +219,33 @@ var HTML_HEAD_CONTENT_TYPE string = `<meta http-equiv="Content-Type" content="te
|
||||
|
||||
var YUKARI_HTML_PAGE_START string = `<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>YukariSukima</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
|
||||
<style>
|
||||
html { height: 100%; }
|
||||
body { min-height : 100%; display: flex; flex-direction:column; font-family: 'Garamond', 'Georgia', serif; text-align: center; color: #444; background: #FAFAFA; margin: 0; padding: 0; font-size: 1.1em; }
|
||||
input { border: 1px solid #888; padding: 0.3em; color: #444; background: #FFF; font-size: 1.1em; }
|
||||
input[placeholder] { width:80%; }
|
||||
a { text-decoration: none; #2980b9; }
|
||||
h1, h2 { font-weight: 200; margin-bottom: 2rem; }
|
||||
h1 { font-size: 3em; }
|
||||
.container { flex:1; min-height: 100%; margin-bottom: 1em; }
|
||||
.footer { margin: 1em; }
|
||||
.footer p { font-size: 0.8em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<title>Yukari's Gap</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
|
||||
<style>
|
||||
html { height: 100%; }
|
||||
body { min-height : 100%; display: flex; flex-direction:column; font-family: 'Garamond', 'Georgia', serif; text-align: center; color: #BC4BFC; background: #FAFAFA; margin: 0;
|
||||
padding: 0; font-size: 1.1em; }
|
||||
input { border: 1px solid #888; padding: 0.3em; color: #BC4BFC; background: #FFF; font-size: 1.1em; }
|
||||
input[placeholder] { width:80%; }
|
||||
a { text-decoration: none; #2980b9; }
|
||||
h1, h2 { font-weight: 200; margin-bottom: 2rem; }
|
||||
h1 { font-size: 3em; }
|
||||
.container { flex:1; min-height: 100%; margin-bottom: 1em; }
|
||||
.footer { margin: 1em; }
|
||||
.footer p { font-size: 0.8em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>YukariSukima</h1>
|
||||
<h1>Yukari's Gap</h1>
|
||||
`
|
||||
|
||||
var YUKARI_HTML_PAGE_END string = `
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>Yukari rewrites web pages to exclude malicious HTML tags and CSS/HTML attributes. It also replaces external resource references to prevent third-party information leaks.<br />
|
||||
<a href="https://marisa.chaotic.ninja/yukari">view on github</a>
|
||||
<a href="https://git.chaotic.ninja/yakumo.izuru/yukari">view on 「混沌とした 忍者」Git</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
@ -269,7 +270,7 @@ func init() {
|
||||
<label for="yukaritoggle">hide</label>
|
||||
<span><a href="/">Yukari's Gap</a></span>
|
||||
<input type="url" value="{{.BaseURL}}" name="{{.URLParamName}}" {{if .HasYukariKey }}readonly="true"{{end}} />
|
||||
This is a <a href="https://marisa.chaotic.ninja/yukari">proxified and sanitized</a> view of the page, visit <a href="{{.BaseURL}}" rel="noreferrer">original site</a>.
|
||||
This is a <a href="https://git.chaotic.ninja/yakumo.izuru/yukari">proxified and sanitized</a> view of the page, visit <a href="{{.BaseURL}}" rel="noreferrer">original site</a>.
|
||||
</form>
|
||||
</div>
|
||||
<style>
|
||||
@ -277,7 +278,7 @@ body{ position: absolute !important; top: 42px !important; left: 0 !important; r
|
||||
#yukariheader { position: fixed; margin: 0; box-sizing: border-box; -webkit-box-sizing: border-box; top: 0; left: 0; right: 0; z-index: 2147483647 !important; font-size: 12px; line-height: normal; border-width: 0px 0px 2px 0; border-style: solid; border-color: #AAAAAA; background: #FFF; padding: 4px; color: #444; height: 42px; }
|
||||
#yukariheader * { padding: 0; margin: 0; }
|
||||
#yukariheader p { padding: 0 0 0.7em 0; display: block; }
|
||||
#yukariheader a { color: #3498db; font-weight: bold; display: inline; }
|
||||
#yukariheader a { color: #8934DB; font-weight: bold; display: inline; }
|
||||
#yukariheader label { text-align: right; cursor: pointer; position: fixed; right: 4px; top: 4px; display: block; color: #444; }
|
||||
#yukariheader > form > span { font-size: 24px; font-weight: bold; margin-right: 20px; margin-left: 20px; }
|
||||
input[type=checkbox]#yukaritoggle { display: none; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user