Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Small changes (#743)

* Update upload.html

* Update _captcha.html

* Update view.html

* Update main.css

* Update home.html

* Update main.css

* Update main.css

* Update view.html

* Update main.css

* Update main.css
Cette révision appartient à :
MMP0 2017-05-25 21:29:39 +09:00 révisé par ewhal
Parent 03bb953bc0
révision 60dafbda04
5 fichiers modifiés avec 81 ajouts et 79 suppressions

Voir le fichier

@ -4,14 +4,14 @@
a { text-decoration: none; }
.header, .pagination {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
body {
font-size: 14px;
font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
font-family: 'Noto Sans', Arial, sans-serif;
}
#mascot {
@ -94,11 +94,10 @@ float: right; }
select.form-input {
-webkit-appearance: none;
-moz-appearance: none;
padding-right: 1.5rem;
background-color: white;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath fill='%23676767' d='M24 34l18-20H6'/%3E%3C/svg%3E");
background-position-x: right;
-moz-appearance: none;
padding-right: 1.5rem;
background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 48"><path fill="#676767" d="M24 34l18-20H6"/></svg>');
background-position-x: right;
background-position-y: center;
background-repeat: no-repeat;
background-size: auto 40%;
@ -113,15 +112,14 @@ select.form-input {
.form-input.search-box { margin-right: -20px; }
.form-input.search-box + .search-icon {
left: -5px;
left: -5px;
position: relative;
padding: 0px;
width: 20px;
padding: 0;
width: 16px;
box-shadow: none;
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAQAAAADpb+tAAAAjUlEQVQIHQXBoU1DYQCAwXviUQw4LHlYJAnBYQmqW3wdpkk3wLAEAxCSCkLSFSowBIFCIH7uQCfd9dgCALrvr9Fo9NopoItG21ZNLR17A/TcHqCl0RXopw1AU6MH0KEdQKtGN6B1o0ugbb/NoKmXRrs27Rt9dw5oat2hr5667r3PzgAANPfREQAAzd3yD3GyOPKUaUBTAAAAAElFTkSuQmCC")
no-repeat
center center;
border: none;
background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>')
no-repeat center center;
border: none;
vertical-align: middle;
}
@ -156,12 +154,12 @@ select.form-input {
border-radius: 0 0 5px 5px;
}
.header .h-user .user-menu .nav-btn {
float: none;
display: block;
padding: 0px 10px;
height: 43px;
line-height: 40px;
text-align: left;
float: none;
display: block;
padding: 0px 10px;
height: 43px;
line-height: 40px;
text-align: left;
}
.header .h-user .nav-btn:focus + .user-menu,
@ -245,7 +243,8 @@ th { border-bottom-width: 2px; }
.tr-name { width: auto; text-align: left; white-space: normal; font-weight: bold; }
.tr-links { width: 66px; }
.tr-size { width: 90px; }
.tr-se, .tr-le, .tr-dl { width: 60px; }
.tr-se, .tr-le { font-weight: bold; }
.tr-se, .tr-le, .tr-dl { width: 50px; }
.tr-date { width: 90px; }
.sort-arrows { margin-left: 0.2rem; }
@ -255,7 +254,7 @@ th { border-bottom-width: 2px; }
}
.sort-arrows .sortarrowdim { opacity: 0.25; }
.sort-arrows a:hover { opacity: 0.8; }
.sort-arrows .active { opacity: 1; }
.sort-arrows .active { opacity: 1; }
.pagination {
text-align: center;
@ -264,15 +263,14 @@ th { border-bottom-width: 2px; }
.pagination li {
border: 1px solid;
display: inline-block;
padding: 0.5rem 0.8rem;
margin-right: -4px;
padding: 0.4rem 0.5rem;
border-right-width: 0;
list-style-type: none;
text-align: center;
}
.pagination li:first-child { border-radius: 3px 0 0 3px; }
.pagination li:last-child { border-radius: 0 3px 3px 0; border-right-width: 1px !important}
.pagination li:nth-last-child(2) { border-radius: 0 3px 3px 0; border-right-width: 1px !important}
#footer { width: 100%; bottom: 0; left: 0; margin-top: 40px;}
@ -339,13 +337,13 @@ html, body {
/* Default Theme */
body { color: #5C7886; background: #ededed; }
body { color: #333; background: #ededed; }
.header, .box, .pagination li, .user-menu { box-shadow: 1px 3px 4px rgba(0,0,0,0.1) }
#mascot { background: url('/img/renchon.svg') no-repeat right bottom transparent; }
a { color: #36896B; }
a { color: #196759; }
a:hover { color: #238BC7; }
.header {
@ -365,7 +363,7 @@ a:hover { color: #238BC7; }
.form-input { border-color: #BBC9CF !important; background: #fafafa; color: #666; }
.form-input.btn:hover { background: #efefef; }
.form-input.btn:hover { background: rgba(192,192,192,0.2); }
.form-input:focus { box-shadow: 0 0 5px #fff; }
@ -412,15 +410,14 @@ td.tr-le { color: #E84C4C; }
.sukebei #mascot { background-image: url('/img/mafuyu.svg'); }
.up-input {
margin-top: 1em;
margin-bottom: 1em;
width: 100%;
}
.input-label {
font-size: large;
font-weight: bold;
}
.up-btn {
font-size: large;
margin: 10px 0;
}
.profile-sidebar {

Voir le fichier

@ -2,10 +2,10 @@
{{/* unset if user doesn't need captcha */}}
{{if ne .CaptchaID ""}}
<div class="form-group captcha-container">
<label class="up-label input-label" for="solution">{{call $.T "captcha"}}</label> <br>
<h3>{{call $.T "captcha"}}</h3>
<input type="text" name="captchaID" value="{{.CaptchaID}}" hidden>
<img src="/captcha/{{.CaptchaID}}.png"><br>
<input class="form-input up-input" type="text" name="solution" id="solution" class="form-control" placeholder="{{call $.T "captcha"}}" autocomplete="off" required>
<input class="form-input up-input" type="text" name="solution" id="solution" class="form-control" style="width: 240px;" placeholder="{{call $.T "captcha"}}" autocomplete="off" required>
</div>
{{end}}
{{end}}

Voir le fichier

@ -60,11 +60,11 @@ Your browser does not support the audio element.
</td>
-->
<td class="tr-links home-td">
<a href="{{.Magnet}}" title="Magnet link">
<a href="{{.Magnet}}" title="{{ call $.T "magnet_link" }}">
<div class="magnet-icon"></div>
</a>
{{if ne .TorrentLink ""}}
<a href="{{.TorrentLink}}" title="Torrent file">
<a href="{{.TorrentLink}}" title="{{ call $.T "torrent_file" }}">
<div class="download-icon"></div>
</a>
{{end}}

Voir le fichier

@ -1,41 +1,46 @@
{{define "title"}}Upload magnet{{end}}
{{define "content"}}
{{with .Upload}}
<div style="text-align: left;" class="box">
<form enctype="multipart/form-data" role="upload" method="POST">
{{ range (index $.FormErrors "errors")}}
<div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
{{end}}
<label class="input-label" for="name">{{call $.T "name"}}</label> <br>
<input type="text" name="name" id="name" class="form-input up-input" placeholder="{{call $.T "file_name"}}" value="{{.Name}}" autofocus required> <br>
<label class="input-label" for="torrent">{{call $.T "torrent_file"}}</label> <br>
<input type="file" name="torrent" id="torrent" class="form-input up-input" accept=".torrent">
<i>{{call $.T "uploading_file_prefills_fields"}}</i><br>
<label class="input-label" for="magnet">{{call $.T "magnet_link"}}</label><br>
<input type="text" name="magnet" id="magnet" class="form-input up-input"
style="width:30rem" placeholder="{{call $.T "magnet_link"}}" value="{{.Magnet}}">
<i>{{ call $.T "please_include_our_tracker" }}</i> <br>
{{with .Upload}}
<div style="text-align: left;" class="box">
<form enctype="multipart/form-data" role="upload" method="POST">
{{ range (index $.FormErrors "errors")}}
<div class="alert alert-danger"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-exclamation-sign"></i> {{ . }}</div>
{{end}}
<label class="input-label" for="c">{{call $.T "category"}}</label> <br>
<select name="c" id="c" class="form-input up-input" required>
<option value="">{{call $.T "select_a_torrent_category"}}</option>
{{ range $name_cat, $id_cat := (GetCategories false) }}
<option value="{{ $id_cat }}" {{if eq $.Upload.Category $id_cat }}selected{{end}}>{{call $.T $name_cat }}</option>
{{ end }}
</select>
<input type="checkbox" name="remake" id="remake" >
<label for="remake">{{call $.T "mark_as_remake"}}</label> <br>
<h3>{{call $.T "name"}}</h3>
<input type="text" name="name" id="name" class="form-input up-input" placeholder="{{call $.T "file_name"}}" value="{{.Name}}" autofocus required>
<label class="input-label" for="website_link">{{call $.T "website_link"}}</label> <br>
<input name="website_link" id="website_link" class="form-input up-input" type="text" value="{{.WebsiteLink}}"> <br>
<label class="input-label" for="desc">{{call $.T "torrent_description"}}</label>
<i>{{call $.T "description_markdown_notice"}}</i> <br>
<textarea name="desc" id="desc" class="form-input up-input" rows="50" cols="50">{{.Description}}</textarea> <br>
<h3>{{call $.T "torrent_file"}}</h3>
<input type="file" name="torrent" id="torrent" class="up-input" accept=".torrent">
<p>{{call $.T "uploading_file_prefills_fields"}}</p>
{{block "captcha" (makeCaptchaData .CaptchaID $.T)}}{{end}}
<h3>{{call $.T "magnet_link"}}</h3>
<input type="text" name="magnet" id="magnet" class="form-input up-input" placeholder="{{call $.T "magnet_link"}}" value="{{.Magnet}}">
<p>{{ call $.T "please_include_our_tracker" }}</p>
<button type="submit" class="form-input up-btn">{{call $.T "upload"}}</button>
</form>
</div>
{{end}}
<h3>{{call $.T "category"}}</h3>
<select name="c" id="c" class="form-input up-input" required>
<option value="">{{call $.T "select_a_torrent_category"}}</option>
{{ range $name_cat, $id_cat := (GetCategories false) }}
<option value="{{ $id_cat }}" {{if eq $.Upload.Category $id_cat }}selected{{end}}>{{call $.T $name_cat }}</option>
{{ end }}
</select>
<p>
<input type="checkbox" name="remake" id="remake" >
<label for="remake">{{call $.T "mark_as_remake"}}</label>
</p>
<h3>{{call $.T "website_link"}}</h3>
<input name="website_link" id="website_link" class="form-input up-input" type="text" value="{{.WebsiteLink}}">
<h3>{{call $.T "torrent_description"}}</h3>
<p>{{call $.T "description_markdown_notice"}}</p>
<textarea name="desc" id="desc" class="form-input up-input" style="height: 10rem;">{{.Description}}</textarea>
{{block "captcha" (makeCaptchaData .CaptchaID $.T)}}{{end}}
<button type="submit" class="form-input up-btn">{{call $.T "upload"}}</button>
</form>
</div>
{{end}}
{{end}}

Voir le fichier

@ -47,10 +47,10 @@
<h4>{{ call $.T "report_torrent_number" (print $.Torrent.ID) }}</h4>
<b>{{ call $.T "report_type" }}:</b>
<form method="post" action="/report/{{$.Torrent.ID}}">
<input type="radio" name="report_type" value="illegal" required> {{ call $.T "illegal_content" }}<br />
<input type="radio" name="report_type" value="spam" required> {{ call $.T "spam_garbage" }}<br />
<input type="radio" name="report_type" value="wrongcat" required> {{ call $.T "wrong_category" }}<br />
<input type="radio" name="report_type" value="dup" required> {{ call $.T "duplicate_deprecated" }}<br />
<input type="radio" name="report_type" value="illegal" id="illegal" required> <label for="illegal">{{ call $.T "illegal_content" }}</label><br />
<input type="radio" name="report_type" value="spam" id="spam" required> <label for="spam">{{ call $.T "spam_garbage" }}</label><br />
<input type="radio" name="report_type" value="wrongcat" id="wrongcat" required> <label for="wrongcat">{{ call $.T "wrong_category" }}</label><br />
<input type="radio" name="report_type" value="dup" id="dup" required> <label for="dup">{{ call $.T "duplicate_deprecated" }}</label><br />
<button type="submit" class="btn btn-default">{{ call $.T "report_btn" }}</button>
</form> <br />
`
@ -122,12 +122,12 @@
<form method="post">
<div class="comment-form">
<div class="comment-text">
<label style="margin-top: 5px; margin-left: 5px;" class="input-label" for="comment">Submit a comment!</label> <br>
<textarea style="width: 80%;" placeholder="サンキュー" name="comment" class="form-input" rows="50"></textarea>
</div><br />
<h3>{{ if gt .User.ID 0}} {{call $.T "submit_a_comment_as_username" .User.Username}} {{else}} {{call $.T "submit_a_comment_as_anonymous"}} {{end}}</h3>
<textarea style="height: 10rem;" placeholder="サンキュー" name="comment" class="form-input up-input"></textarea>
</div>
<div class="comment-captcha">
{{block "captcha" (makeCaptchaData .CaptchaID $.T)}}{{end}}
<button type="submit" class="form-input">{{call $.T "submit" }}</button>
<button type="submit" class="form-input up-btn">{{call $.T "submit" }}</button>
</div>
</div>
</form>