From 867bd808fbd48b70b267010e93df8636b5ffa6c4 Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 19 Jul 2017 01:52:15 +0200 Subject: [PATCH 1/5] Pixels (#1235) * Update main.css * slightly less visibility for .hidden --- public/css/main.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index 6abffb13..bddca94d 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -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; } From c482568965057237dc79a602a350b736fe4832ba Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 19 Jul 2017 09:53:57 +0200 Subject: [PATCH 2/5] Pixel 2: the return (#1237) * Update main.css * fix css rule that did not apply * better flag position with mod tools on --- public/css/main.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index bddca94d..f7dda1e3 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -453,18 +453,18 @@ html, body { width: 100%; height: auto; } - .tr-cat { width: 73px; } + .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; } + 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; } } .up-input { @@ -754,6 +754,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) */ From c437cab28770f27a6da126f9db6d45cd64dcbe73 Mon Sep 17 00:00:00 2001 From: Myrmece Date: Wed, 19 Jul 2017 09:54:07 +0200 Subject: [PATCH 3/5] Updated translation. (#1238) --- translations/fr-fr.all.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/translations/fr-fr.all.json b/translations/fr-fr.all.json index 028d16f1..afc349b1 100644 --- a/translations/fr-fr.all.json +++ b/translations/fr-fr.all.json @@ -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." From a5986cc543e462a47e7d2d657b4774d246b5c78a Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 19 Jul 2017 14:24:04 +0200 Subject: [PATCH 4/5] Fix padding of torrent list on mobile & torrent preview stuff (#1239) * Update main.css * Update main.css * Update main.css * Add two example torrents * only keep previewed torrent when updating with newer ones * Update upload.jet.html * wrong class here * Update main.css * rollback * Update upload.jet.html * Update kilo.js * Update upload.jet.html --- public/css/main.css | 25 ++++++++++++++----------- public/js/kilo.js | 2 +- templates/site/torrents/upload.jet.html | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index f7dda1e3..d97db8a9 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -278,7 +278,7 @@ select.form-input { padding: 10px 5px; } -.results { padding: 0 } +.results { padding: 0!important; } table { border-collapse:collapse; @@ -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; } + .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 (max-width: 520px) { .form-input.language { width: 281px; } .form-input.refine { display: none; } + .tr-links { width: 44px; } } .up-input { @@ -997,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; @@ -1026,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; } diff --git a/public/js/kilo.js b/public/js/kilo.js index 47d138e5..71d99e26 100644 --- a/public/js/kilo.js +++ b/public/js/kilo.js @@ -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] }) } } diff --git a/templates/site/torrents/upload.jet.html b/templates/site/torrents/upload.jet.html index ec5319a1..92c5e9b6 100644 --- a/templates/site/torrents/upload.jet.html +++ b/templates/site/torrents/upload.jet.html @@ -38,6 +38,16 @@ + + + + + + + + + +
@@ -57,6 +67,16 @@ 0 Jul 12, 2017 + + + + + + + + + +
From 3604f3d933834066093465f1dc333ec97a4e9ecb Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 19 Jul 2017 15:07:39 +0200 Subject: [PATCH 5/5] Fix css missing ; & wrong class position in html (#1240) * Update main.css * fix wrong class --- public/css/main.css | 2 +- templates/site/torrents/upload.jet.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index d97db8a9..dbfc99be 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -999,7 +999,7 @@ input.nav-btn { display: flex; user-select: none; vertical-align: bottom; - width: 429px + width: 429px; max-width: 100%; } .rules-drop > summary { diff --git a/templates/site/torrents/upload.jet.html b/templates/site/torrents/upload.jet.html index 92c5e9b6..c5450474 100644 --- a/templates/site/torrents/upload.jet.html +++ b/templates/site/torrents/upload.jet.html @@ -5,8 +5,8 @@ {{block title()}}{{ T("upload")}}{{end}} {{block content_body()}}
-
- {{ T("rules")}} +
+ {{ T("rules")}}
  • {{ T("no_cp")}}
  • @@ -46,7 +46,7 @@ - +