Merge branch 'refactor' of https://github.com/NyaaPantsu/nyaa into refactor
Cette révision appartient à :
révision
e5a3974a94
4 fichiers modifiés avec 48 ajouts et 20 suppressions
|
@ -278,7 +278,7 @@ select.form-input {
|
|||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
.results { padding: 0 }
|
||||
.results { padding: 0!important; }
|
||||
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
|
@ -327,11 +327,11 @@ th, .home-td { border-bottom: 1px solid; }
|
|||
|
||||
th { border-bottom-width: 2px; }
|
||||
|
||||
.hidden { opacity: 0.5; }
|
||||
.hidden { opacity: 0.475; }
|
||||
.tr-cat { width: 90px; text-align: center; }
|
||||
.tr-flag { white-space: initial!important; }
|
||||
.tr-name { width: auto; text-align: left; white-space: normal; word-break: break-word; font-weight: bold; }
|
||||
.tr-links { width: 51px; overflow:initial; text-align: left; padding: 0 2px!important; }
|
||||
.tr-links { width: 48px; overflow:initial; text-align: left; padding: 0 2px!important; }
|
||||
.tr-cs { width: 15px; overflow: initial; text-overflow: initial; padding: 0; }
|
||||
.tr-cs .comment-icon { margin-bottom: 4px; }
|
||||
.tr-size { width: 90px; }
|
||||
|
@ -339,7 +339,7 @@ th { border-bottom-width: 2px; }
|
|||
.tr-se, .tr-le, .tr-dl { width: 50px; }
|
||||
.tr-date { width: 124px; }
|
||||
|
||||
.tr-links >a > div { width: 17.63px; }
|
||||
.tr-links >a > div { width: 18px; }
|
||||
.tr-se > a > .sort-arrows,
|
||||
.tr-le > a > .sort-arrows,
|
||||
.tr-dl > a > .sort-arrows { margin-left: 0; }
|
||||
|
@ -410,18 +410,16 @@ html, body {
|
|||
|
||||
/* hide the username */
|
||||
@media (max-width: 1100px) {
|
||||
.header .h-user { width: 58px; padding-left: 0px; }
|
||||
.header .h-user { width: 58px; }
|
||||
.header .h-user .user-menu { right: 100px; }
|
||||
.header .h-user .user-info { display: none; }
|
||||
.header .h-user .nav-btn { padding: 0px; }
|
||||
.header .h-user .nav-btn { padding: 0px; width: 46px; }
|
||||
}
|
||||
|
||||
@media (min-width: 960px) { .visible-md { display: none } }
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.hide-md {
|
||||
display: none;
|
||||
}
|
||||
.hide-md { display: none; }
|
||||
.visible-md { display: block }
|
||||
}
|
||||
|
||||
|
@ -453,18 +451,21 @@ html, body {
|
|||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.tr-cat { width: 73px; }
|
||||
.header .h-user { width: 46px; }
|
||||
.box { padding: 7px; }
|
||||
.tr-cat { width: 71px; }
|
||||
.torrent-preview-table .tr-cat { width: 74px; }
|
||||
.tr-links { width: 48px; }
|
||||
.header .h-search input { width: 90px !important; }
|
||||
.header .h-search input:focus { width: 150px !important; }
|
||||
.box { padding: 9px; }
|
||||
.box { padding: 8px; }
|
||||
th, .home-td, .user-td { padding: 2px 2px; }
|
||||
}
|
||||
|
||||
@media (maw-width: 520px) {
|
||||
@media (max-width: 520px) {
|
||||
.form-input.language { width: 281px; }
|
||||
.form-input.refine { display: none; }
|
||||
th, .home-td, .user-td { padding: 2px 3px; }
|
||||
.tr-links { width: 44px; }
|
||||
}
|
||||
|
||||
.up-input {
|
||||
|
@ -754,6 +755,7 @@ input.filelist-checkbox:checked + table.table-filelist {
|
|||
.modtools #show_actions { margin-top: 4px; }
|
||||
.mod-open .tr-cat { width: 73px; }
|
||||
.mod-open .th, .mod-open .home-td, .mod-open .user-td { padding: 2px 2px; }
|
||||
.mod-open .tr-cat .nyaa-cat img { left: 4px; }
|
||||
|
||||
/* Modal box */
|
||||
/* The Modal (background) */
|
||||
|
@ -996,14 +998,16 @@ input.nav-btn {
|
|||
.rules-drop {
|
||||
display: flex;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
vertical-align: bottom;
|
||||
width: 432px;
|
||||
width: 429px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.rules-drop > summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
.rules-drop > div {
|
||||
display: inline-block;
|
||||
height: auto;
|
||||
width: 429px;
|
||||
border: 1px solid black;
|
||||
padding: 0;
|
||||
border-top: none;
|
||||
|
@ -1025,7 +1029,7 @@ summary:after {
|
|||
}
|
||||
details[open] summary:after {
|
||||
content: "-";
|
||||
margin: -4px 5px 0 0;
|
||||
margin: -5px 5px 0 0;
|
||||
}
|
||||
.torrent-preview-table > table { border: 3px solid #dfdeeb; }
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ var Kilo = function (params) {
|
|||
for (var i = 0; i < l; i++) {
|
||||
torrentHTML.push(Templates.Render('torrents.item', torrents[i]))
|
||||
}
|
||||
document.getElementById("torrentListResults").innerHTML = torrentHTML[0] + document.getElementById("torrentListResults").innerHTML + torrentHTML[1]
|
||||
document.getElementById("torrentListResults").innerHTML = torrentHTML[0] + document.getElementsByName("torrent-info tr")[0].outerHTML + torrentHTML[1]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{{block title()}}{{ T("upload")}}{{end}}
|
||||
{{block content_body()}}
|
||||
<div style="text-align: left;" class="box">
|
||||
<details>
|
||||
<summary class="form-input rules-drop">{{ T("rules")}}</summary>
|
||||
<details class="rules-drop">
|
||||
<summary class="form-input">{{ T("rules")}}</summary>
|
||||
<div class="form-input">
|
||||
<ul>
|
||||
<li>{{ T("no_cp")}}</li>
|
||||
|
@ -38,6 +38,16 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody id="torrentListResults">
|
||||
<tr class="torrent-info hidden">
|
||||
<td class="tr-cat home-td"></td>
|
||||
<td class="tr-name home-td" colspan="2"><a></a></td>
|
||||
<td class="tr-links home-td"></td>
|
||||
<td class="tr-size home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-xs"></td>
|
||||
<td class="tr-le home-td hide-xs"></td>
|
||||
<td class="tr-dl home-td hide-xs"></td>
|
||||
<td class="hide-xs"></td>
|
||||
</tr>
|
||||
<tr name="torrent-info tr" class="torrent-info{{ if User.IsTrusted() }} trusted{{end}}">
|
||||
<td class="tr-cat home-td">
|
||||
<div class="nyaa-cat table-torrent-category">
|
||||
|
@ -57,6 +67,16 @@
|
|||
<td class="tr-dl home-td hide-xs">0</td>
|
||||
<td class="tr-date home-td date-short hide-xs table-torrent-date" title="2017-07-12T16:58:29Z">Jul 12, 2017</td>
|
||||
</tr>
|
||||
<tr class="torrent-info hidden">
|
||||
<td class="tr-cat home-td"></td>
|
||||
<td class="tr-name home-td" colspan="2"><a></a></td>
|
||||
<td class="tr-links home-td"></td>
|
||||
<td class="tr-size home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-xs"></td>
|
||||
<td class="tr-le home-td hide-xs"></td>
|
||||
<td class="tr-dl home-td hide-xs"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
"id": "rules_spam",
|
||||
"translation": "Spam interdit"
|
||||
},
|
||||
{
|
||||
"id": "rules_sukebei",
|
||||
"translation": "Contenu NSFW strictement réservé à sukebei.pantsu.cat"
|
||||
},
|
||||
{
|
||||
"id": "verify_email_title",
|
||||
"translation": "Vérifiez votre adresse email pour Pantsu."
|
||||
|
|
Référencer dans un nouveau ticket