Merge branch 'master' of https://github.com/ewhal/nyaa
Cette révision appartient à :
révision
33dcce266b
4 fichiers modifiés avec 24 ajouts et 157 suppressions
|
@ -1,8 +1,4 @@
|
||||||
/* Night mode switcher */
|
/*Don't make changes to layout here, only colours*/
|
||||||
.nightswitch > img {
|
|
||||||
width: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Torrent status colors */
|
/* Torrent status colors */
|
||||||
.remake {
|
.remake {
|
||||||
background-color: #795c46;
|
background-color: #795c46;
|
||||||
|
@ -14,13 +10,10 @@
|
||||||
background-color: #487589;
|
background-color: #487589;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* modified copy of NyaaTorrent theme */
|
|
||||||
#mainmenu {
|
#mainmenu {
|
||||||
background: #263238;
|
background: #263238;
|
||||||
position: fixed;
|
|
||||||
color: #f2f2f2;
|
color: #f2f2f2;
|
||||||
width: 100%;
|
|
||||||
z-index: 4;
|
|
||||||
border: 0px solid #263238;
|
border: 0px solid #263238;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +22,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
padding-top: 1.25em;
|
|
||||||
background-color: #29363d;
|
background-color: #29363d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,14 +36,8 @@
|
||||||
body {
|
body {
|
||||||
background-color:#282A2E;
|
background-color:#282A2E;
|
||||||
color: #eff5f5;
|
color: #eff5f5;
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.torrentNav {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination > .active > a {
|
.pagination > .active > a {
|
||||||
background: #ececec;
|
background: #ececec;
|
||||||
|
@ -62,7 +48,6 @@ body {
|
||||||
/* Links, Text */
|
/* Links, Text */
|
||||||
a {
|
a {
|
||||||
color: #81a2be;
|
color: #81a2be;
|
||||||
text-decoration : none;
|
|
||||||
}
|
}
|
||||||
.btn-success {
|
.btn-success {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
@ -70,138 +55,18 @@ a {
|
||||||
border-color: #b294bb;
|
border-color: #b294bb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-btn {
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-borderless > tbody > tr > td,
|
|
||||||
.table-borderless > tbody > tr > th,
|
|
||||||
.table-borderless > tfoot > tr > td,
|
|
||||||
.table-borderless > tfoot > tr > th,
|
|
||||||
.table-borderless > thead > tr > td,
|
|
||||||
.table-borderless > thead > tr > th {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.torrent-info .name {
|
|
||||||
font-weight: bold;
|
|
||||||
overflow: hidden;
|
|
||||||
padding-bottom: 3px;
|
|
||||||
padding-top: 3px;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
.torrent-hash {
|
|
||||||
font-family: monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.torrent-info .filesize {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-row td:first-of-type {
|
|
||||||
vertical-align: top;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Table style & fixes */
|
|
||||||
.table > tbody > tr > td {
|
|
||||||
/* fix bootstrap uglyness */
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table > tbody > tr > th, .table > tbody > tr > td {
|
|
||||||
padding: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.captcha-container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-rows: auto;
|
|
||||||
grid-template-columns: 240px;
|
|
||||||
}
|
|
||||||
|
|
||||||
tr.torrent-info td.date {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.custom-table-hover > tbody > tr:hover {
|
|
||||||
opacity: 0.82;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-row {
|
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.container div.blockBody:nth-of-type(2) table{table-layout:fixed;}
|
|
||||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:first-of-type, div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(5){width:10%;}
|
|
||||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(3){width:15%;}
|
|
||||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(4){width:19%;}
|
|
||||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-type{width:6%;}
|
|
||||||
|
|
||||||
/* Mobile-friendly main table */
|
|
||||||
@media only screen and (max-width: 700px) {
|
|
||||||
table, thead, tbody, tr {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
th {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
td:nth-of-type(1), td:nth-of-type(2) {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table > tbody > tr > td {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Credit to bootsnipp.com for the css for the color graph */
|
|
||||||
.colorgraph {
|
|
||||||
height: 5px;
|
|
||||||
border-top: 0;
|
|
||||||
background: #c4e17f;
|
|
||||||
border-radius: 5px;
|
|
||||||
background-image: -webkit-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
|
|
||||||
background-image: -moz-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
|
|
||||||
background-image: -o-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
|
|
||||||
background-image: linear-gradient(to right, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.center-image {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 80vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* the curved edges triggered my autism */
|
|
||||||
.navbar {
|
|
||||||
border-radius: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
:target {
|
:target {
|
||||||
background-color: #585b4f;
|
background-color: #585b4f;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainmenu button .search_text {
|
/* style the dropdown member menu */
|
||||||
display: none;
|
.nav > .dropdown.open, .profile-image[aria-expanded="true"], .nav ul.dropdown-menu {
|
||||||
|
background: #282A2E;
|
||||||
}
|
}
|
||||||
#mainmenu .navbar-form select.form-control
|
.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
|
||||||
{
|
background: #263238;
|
||||||
width: 12rem;
|
|
||||||
}
|
}
|
||||||
.special-img
|
/* Night mode switcher */
|
||||||
{
|
#mainmenu a.nightswitch {
|
||||||
position: relative;
|
background-image: url(/img/moon.png);
|
||||||
top: -5px;
|
|
||||||
float: left;
|
|
||||||
left: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainmenu .badgemenu {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
/* Night mode switcher */
|
|
||||||
.nightswitch > img {
|
|
||||||
width: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Torrent status colors */
|
/* Torrent status colors */
|
||||||
.remake {
|
.remake {
|
||||||
|
@ -318,4 +315,12 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-typ
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
min-height: 460px;
|
min-height: 460px;
|
||||||
}
|
}
|
||||||
|
/* Night mode switcher */
|
||||||
|
#mainmenu a.nightswitch {
|
||||||
|
background: transparent url(/img/sun.png) no-repeat;
|
||||||
|
background-size: 24px;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-left: 3px;
|
||||||
|
width: 24px;
|
||||||
|
}
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
// Night mode
|
// Night mode
|
||||||
var night = localStorage.getItem("night");
|
var night = localStorage.getItem("night");
|
||||||
if (night == "true") {
|
if (night == "true") {
|
||||||
$("#style")[0].href = "/css/style-night.css";
|
$("head").append('<link id="style-dark" rel="stylesheet" type="text/css" href="/css/style-night.css">');
|
||||||
$("#nighticon")[0].src = "/img/sun.png";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleNightMode() {
|
function toggleNightMode() {
|
||||||
var night = localStorage.getItem("night");
|
var night = localStorage.getItem("night");
|
||||||
if(night == "true") {
|
if(night == "true") {
|
||||||
$("#style")[0].href = "/css/style.css";
|
$("#style-dark")[0].remove()
|
||||||
$("#nighticon")[0].src = "/img/moon.png";
|
|
||||||
} else {
|
} else {
|
||||||
$("#style")[0].href = "/css/style-night.css";
|
$("head").append('<link id="style-dark" rel="stylesheet" type="text/css" href="/css/style-night.css">');
|
||||||
$("#nighticon")[0].src = "/img/sun.png";
|
|
||||||
}
|
}
|
||||||
localStorage.setItem("night", (night == "true") ? "false" : "true");
|
localStorage.setItem("night", (night == "true") ? "false" : "true");
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="{{.URL.Parse "/"}}">Nyaa Pantsu</a>
|
<a class="navbar-brand" href="{{.URL.Parse "/"}}">Nyaa Pantsu</a>
|
||||||
<a class="navbar-brand hidden-md pull-right nightswitch" href="javascript:toggleNightMode();" ><img id="nighticon" src="/img/moon.png"></a>
|
<a class="navbar-brand hidden-md pull-right nightswitch" href="javascript:toggleNightMode();" ></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
Référencer dans un nouveau ticket