-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnyaa.si-customization.user.css
238 lines (200 loc) · 6.52 KB
/
nyaa.si-customization.user.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/* ==UserStyle==
@name nyaa.si - Customization
@description Provides some extra customization options.
@version 2024.04.02.18.22
@author MetalTxus
@namespace https://github.com/jesuscc1993/
@license CC BY-SA 4.0
@preprocessor stylus
@var text cell-padding "Cell padding" 4px
@var checkbox bigger-icons "Bigger download icons" 0
@var checkbox wide-search "Wide searchbar" 0
@var checkbox custom-style "Alternative style" 0
@var checkbox custom-categories "Custom category icons (live action excluded)" 0
@var checkbox text-categories "Display categories as text" 0
@var checkbox hide-categories "Hide categories" 0
==/UserStyle== */
@-moz-document regexp("https?:\\/\\/\\S*nyaa.(si|at)\\S*") {
if (custom-style) {
/* main */
.container {
min-width: 75%;
border-color: transparent;
background: none;
}
/* round table */
.table-bordered,
.table-bordered * {
border-color: transparent !important;
}
.table-bordered {
border-collapse: separate;
border-spacing: 0 3px;
}
.table-bordered td:first-child {
border-radius: 6px 0 0 6px;
border-left: 1px solid transparent;
}
.table-bordered td:last-child {
border-radius: 0 6px 6px 0;
border-right: 1px solid transparent;
}
.tlisticon,
.tlistsn,
.tlistsize,
.tlistdownload,
.tlistmn {
border-width: 1px !important;
}
/* theme colors */
.table .danger td {
background-color: #d03e001f !important;
}
.table .success td {
background-color: #00a0501f !important;
}
body.dark {
a:focus,
a:hover {
color: #63aae3;
text-decoration: underline;
}
.table {
background-color: transparent;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #ffffff04;
}
.table-hover > tbody > tr:hover {
background-color: #ffffff12;
}
}
}
/* cell-padding */
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td,
table.torrent-list td:first-child {
padding: cell-padding;
}
table.torrent-list thead th.sorting:after,
table.torrent-list thead th.sorting_asc:after,
table.torrent-list thead th.sorting_desc:after {
top: 4px;
right: 4px;
padding: cell-padding;
}
/* */
/* bigger-icons */
if (bigger-icons) {
table.torrent-list .fa.fa-download,
table.torrent-list .fa.fa-magnet {
font-size: 18px;
position: relative;
top: 2px;
}
}
/* custom-categories */
if (custom-categories) {
img[src^="/static/img/icons/nyaa/1_"],
img[src^="/static/img/icons/nyaa/2_"],
img[src^="/static/img/icons/nyaa/3_"],
img[src^="/static/img/icons/nyaa/5_"],
img[src^="/static/img/icons/nyaa/6_"] {
height: 0;
width: 80px;
padding-top: 28px;
background-size: cover;
}
img[src="/static/img/icons/nyaa/1_1.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_1.png");
}
img[src="/static/img/icons/nyaa/1_2.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_2.png");
}
img[src="/static/img/icons/nyaa/1_3.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_3.png");
}
img[src="/static/img/icons/nyaa/1_4.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/1_4.png");
}
img[src="/static/img/icons/nyaa/2_1.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/2_1.png");
}
img[src="/static/img/icons/nyaa/2_2.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/2_2.png");
}
img[src="/static/img/icons/nyaa/3_1.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_1.png");
}
img[src="/static/img/icons/nyaa/3_2.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_2.png");
}
img[src="/static/img/icons/nyaa/3_3.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/3_3.png");
}
img[src="/static/img/icons/nyaa/5_1.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/5_1.png");
}
img[src="/static/img/icons/nyaa/5_2.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/5_2.png");
}
img[src="/static/img/icons/nyaa/6_1.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/6_1.png");
}
img[src="/static/img/icons/nyaa/6_2.png"] {
background-image: url("https://raw.githubusercontent.com/jesuscc1993/user-css/develop/_resources/images/6_2.png");
}
}
/* text-categories */
if (text-categories) {
.torrent-list td:first-child a img {
display: none;
}
.torrent-list td:first-child a:after {
content: attr(title);
display: inline-block;
font-size: 10px;
line-height: 18px;
}
}
/* hide-categories */
if (hide-categories) {
.torrent-list th:first-child,
.torrent-list td:first-child:not([colspan]) {
display: none;
}
if (custom-style) {
/* round table */
.table-bordered td:nth-child(2) {
border-radius: 6px 0 0 6px;
border-left: 1px solid transparent;
}
}
}
/* wide-search */
if (wide-search) {
@media (min-width: 992px) {
.navbar-right:first-of-type {
margin-top: 0;
padding: 0;
width: 100%;
}
.navbar-right:first-of-type .btn-group {
width: 144px !important;
}
.navbar-form .input-group {
display: inline-flex;
flex-direction: row;
vertical-align: middle;
width: 100%;
}
.navbar-form .input-group .search-btn {
height: auto;
}
}
}
}