Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Frontend small (#1040)

* Header isn't as WIDE on resolutions past 1920

* Turn down the fucking volume because it scares the shit out of me everytime

* Make clear the mascot is clickable

* Make torrent buttons not fuckhuge

* Just show N/A on no website

* search.html: Fix minor typo in refine box
Cette révision appartient à :
kipukun ;_ 2017-06-20 21:28:48 -04:00 révisé par ewhal
Parent 86d1f2fc9c
révision 121101fe1c
4 fichiers modifiés avec 14 ajouts et 5 suppressions

Voir le fichier

@ -26,6 +26,7 @@ body {
height: 60vh;
-webkit-tap-highlight-color: transparent;
pointer-events: auto;
cursor: pointer;
}
#mascot.custom-mascot {
@ -359,6 +360,14 @@ html, body {
.header .h-search input { width: 90px !important; }
.header .h-search input:focus { width: 150px !important; }
}
@media (min-width: 1920px) {
.h-left {
left: 15%;
}
.h-right {
right: 15%;
}
}
@media (max-width: 810px) {
@ -490,7 +499,6 @@ html, body {
.torrent-buttons {
margin-top: 20px;
margin-right: 10px;
font-size: large;
text-align: right;
}

Voir le fichier

@ -73,14 +73,15 @@ document.addEventListener("DOMContentLoaded", function(event) {
function playVoice() {
if (explosion) {
explosion.volume = 0.2;
explosion.play();
}
else if (kawaii) {
kawaii.volume = 0.7;
kawaii.volume = 0.2;
kawaii.play();
}
else {
nyanpassu.volume = 0.5;
nyanpassu.volume = 0.2;
nyanpassu.play();
}
}

Voir le fichier

@ -54,7 +54,7 @@
<option value="m"{{if eq .Search.SizeType "m"}} selected{{end}}>MiB</option>
<option value="g"{{if eq .Search.SizeType "g"}} selected{{end}}>GiB</option>
</select>
{{ call $.T "large"}}.
{{ call $.T "large"}}
</span>
<span class="form-refine">{{ call $.T "between"}} <input class="form-input" size="7" name="fromDate" type="text" value="{{.Search.FromDate}}"> {{ call $.T "and"}} <input class="form-input" size="7" name="toDate" type="text" value="{{.Search.ToDate}}">
<select name="dateType" class="form-input">

Voir le fichier

@ -54,7 +54,7 @@
<td class="torrent-info-td torrent-info-label">{{call $.T "seeders"}}:</td><td class="tr-se torrent-info-td">{{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Seeders}}{{end}}</td>
</tr>
<tr class="torrent-info-row">
<td class="torrent-info-td torrent-info-label">{{ call $.T "website_link" }}:</td><td class="torrent-view-td torrent-info-data">{{if ne .WebsiteLink ""}}<a href="{{.WebsiteLink}}">{{.WebsiteLink}}</a>{{else}}<a href="{{$.Config.WebAddress.Nyaa}}">{{GetHostname $.Config.WebAddress.Nyaa}}{{end}}</td>
<td class="torrent-info-td torrent-info-label">{{ call $.T "website_link" }}:</td><td class="torrent-view-td torrent-info-data">{{if ne .WebsiteLink ""}}<a href="{{.WebsiteLink}}">{{.WebsiteLink}}</a>{{else}}N/A{{end}}</td>
<td class="torrent-info-td torrent-info-label">{{call $.T "leechers"}}:</td><td class="tr-le torrent-info-td">{{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Leechers}}{{end}}</td>
</tr>
<tr class="torrent-info-row">