##// END OF EJS Templates
Made moderator panels less opaque in MD theme
neko259 -
r972:14f09a3c default
parent child Browse files
Show More
@@ -1,486 +1,491 b''
1 1 * {
2 2 text-decoration: none;
3 3 font-weight: inherit;
4 4 }
5 5
6 6 b, strong {
7 7 font-weight: bold;
8 8 }
9 9
10 10 html {
11 11 background: #555;
12 12 color: #ffffff;
13 13 }
14 14
15 15 body {
16 16 margin: 0;
17 17 }
18 18
19 19 #admin_panel {
20 20 background: #FF0000;
21 21 color: #00FF00
22 22 }
23 23
24 24 .input_field_error {
25 25 color: #FF0000;
26 26 }
27 27
28 28 .title {
29 29 font-weight: bold;
30 30 color: #ffcc00;
31 31 }
32 32
33 33 .link, a {
34 34 color: #afdcec;
35 35 }
36 36
37 37 .block {
38 38 display: inline-block;
39 39 vertical-align: top;
40 40 }
41 41
42 42 .tag {
43 43 color: #FFD37D;
44 44 }
45 45
46 46 .post_id {
47 47 color: #fff380;
48 48 }
49 49
50 50 .post, .dead_post, .archive_post, #posts-table {
51 51 background: #333;
52 52 padding: 10px;
53 53 clear: left;
54 54 word-wrap: break-word;
55 55 border-top: 1px solid #777;
56 56 border-bottom: 1px solid #777;
57 57 }
58 58
59 59 .post + .post {
60 60 border-top: none;
61 61 }
62 62
63 63 .dead_post + .dead_post {
64 64 border-top: none;
65 65 }
66 66
67 67 .archive_post + .archive_post {
68 68 border-top: none;
69 69 }
70 70
71 71 .metadata {
72 72 padding-top: 5px;
73 73 margin-top: 10px;
74 74 border-top: solid 1px #666;
75 75 color: #ddd;
76 76 }
77 77
78 78 .navigation_panel, .tag_info {
79 79 background: #222;
80 80 margin-bottom: 5px;
81 81 margin-top: 5px;
82 82 padding: 10px;
83 83 border-bottom: solid 1px #888;
84 84 border-top: solid 1px #888;
85 85 color: #eee;
86 86 }
87 87
88 88 .navigation_panel .link {
89 89 border-right: 1px solid #fff;
90 90 font-weight: bold;
91 91 margin-right: 1ex;
92 92 padding-right: 1ex;
93 93 }
94 94 .navigation_panel .link:last-child {
95 95 border-left: 1px solid #fff;
96 96 border-right: none;
97 97 float: right;
98 98 margin-left: 1ex;
99 99 margin-right: 0;
100 100 padding-left: 1ex;
101 101 padding-right: 0;
102 102 }
103 103
104 104 .navigation_panel::after, .post::after {
105 105 clear: both;
106 106 content: ".";
107 107 display: block;
108 108 height: 0;
109 109 line-height: 0;
110 110 visibility: hidden;
111 111 }
112 112
113 113 .header {
114 114 border-bottom: solid 2px #ccc;
115 115 margin-bottom: 5px;
116 116 border-top: none;
117 117 margin-top: 0;
118 118 }
119 119
120 120 .footer {
121 121 border-top: solid 2px #ccc;
122 122 margin-top: 5px;
123 123 border-bottom: none;
124 124 margin-bottom: 0;
125 125 }
126 126
127 127 p, .br {
128 128 margin-top: .5em;
129 129 margin-bottom: .5em;
130 130 }
131 131
132 132 .post-form-w {
133 133 background: #333344;
134 134 border-top: solid 1px #888;
135 135 border-bottom: solid 1px #888;
136 136 color: #fff;
137 137 padding: 10px;
138 138 margin-bottom: 5px;
139 139 margin-top: 5px;
140 140 }
141 141
142 142 .form-row {
143 143 width: 100%;
144 144 }
145 145
146 146 .form-label {
147 147 padding: .25em 1ex .25em 0;
148 148 vertical-align: top;
149 149 }
150 150
151 151 .form-input {
152 152 padding: .25em 0;
153 153 }
154 154
155 155 .form-errors {
156 156 font-weight: bolder;
157 157 vertical-align: middle;
158 158 }
159 159
160 160 .post-form input:not([name="image"]), .post-form textarea {
161 161 background: #333;
162 162 color: #fff;
163 163 border: solid 1px;
164 164 padding: 0;
165 165 font: medium sans-serif;
166 166 width: 100%;
167 167 }
168 168
169 169 .post-form textarea {
170 170 resize: vertical;
171 171 }
172 172
173 173 .form-submit {
174 174 display: table;
175 175 margin-bottom: 1ex;
176 176 margin-top: 1ex;
177 177 }
178 178
179 179 .form-title {
180 180 font-weight: bold;
181 181 font-size: 2ex;
182 182 margin-bottom: 0.5ex;
183 183 }
184 184
185 185 .post-form input[type="submit"], input[type="submit"] {
186 186 background: #222;
187 187 border: solid 2px #fff;
188 188 color: #fff;
189 189 padding: 0.5ex;
190 190 }
191 191
192 192 input[type="submit"]:hover {
193 193 background: #060;
194 194 }
195 195
196 196 blockquote {
197 197 border-left: solid 2px;
198 198 padding-left: 5px;
199 199 color: #B1FB17;
200 200 margin: 0;
201 201 }
202 202
203 203 .post > .image {
204 204 float: left;
205 205 margin: 0 1ex .5ex 0;
206 206 min-width: 1px;
207 207 text-align: center;
208 208 display: table-row;
209 209 }
210 210
211 211 .post > .metadata {
212 212 clear: left;
213 213 }
214 214
215 215 .get {
216 216 font-weight: bold;
217 217 color: #d55;
218 218 }
219 219
220 220 * {
221 221 text-decoration: none;
222 222 }
223 223
224 224 .dead_post {
225 225 background-color: #442222;
226 226 }
227 227
228 228 .archive_post {
229 229 background-color: #000;
230 230 }
231 231
232 232 .mark_btn {
233 233 border: 1px solid;
234 234 min-width: 2ex;
235 235 padding: 2px 2ex;
236 236 }
237 237
238 238 .mark_btn:hover {
239 239 background: #555;
240 240 }
241 241
242 242 .quote {
243 243 color: #92cf38;
244 244 font-style: italic;
245 245 }
246 246
247 247 .multiquote {
248 248 padding: 3px;
249 249 display: inline-block;
250 250 background: #222;
251 251 border-style: solid;
252 252 border-width: 1px 1px 1px 4px;
253 253 font-size: 0.9em;
254 254 }
255 255
256 256 .spoiler {
257 257 background: white;
258 258 color: white;
259 259 }
260 260
261 261 .spoiler:hover {
262 262 color: black;
263 263 }
264 264
265 265 .comment {
266 266 color: #eb2;
267 267 }
268 268
269 269 a:hover {
270 270 text-decoration: underline;
271 271 }
272 272
273 273 .last-replies {
274 274 margin-left: 3ex;
275 275 margin-right: 3ex;
276 276 border-left: solid 1px #777;
277 277 border-right: solid 1px #777;
278 278 }
279 279
280 280 .last-replies > .post:first-child {
281 281 border-top: none;
282 282 }
283 283
284 284 .thread {
285 285 margin-bottom: 3ex;
286 286 margin-top: 1ex;
287 287 }
288 288
289 289 .post:target {
290 290 border: solid 2px white;
291 291 }
292 292
293 293 pre{
294 294 white-space:pre-wrap
295 295 }
296 296
297 297 li {
298 298 list-style-position: inside;
299 299 }
300 300
301 301 .fancybox-skin {
302 302 position: relative;
303 303 background-color: #fff;
304 304 color: #ddd;
305 305 text-shadow: none;
306 306 }
307 307
308 308 .fancybox-image {
309 309 border: 1px solid black;
310 310 }
311 311
312 312 .image-mode-tab {
313 313 background: #444;
314 314 color: #eee;
315 315 margin-top: 5px;
316 316 padding: 5px;
317 317 border-top: 1px solid #888;
318 318 border-bottom: 1px solid #888;
319 319 }
320 320
321 321 .image-mode-tab > label {
322 322 margin: 0 1ex;
323 323 }
324 324
325 325 .image-mode-tab > label > input {
326 326 margin-right: .5ex;
327 327 }
328 328
329 329 #posts-table {
330 330 margin-top: 5px;
331 331 margin-bottom: 5px;
332 332 }
333 333
334 334 .tag_info > h2 {
335 335 margin: 0;
336 336 }
337 337
338 338 .post-info {
339 339 color: #ddd;
340 340 margin-bottom: 1ex;
341 341 }
342 342
343 343 .moderator_info {
344 344 color: #e99d41;
345 345 float: right;
346 346 font-weight: bold;
347 opacity: 0.4;
348 }
349
350 .moderator_info:hover {
351 opacity: 1;
347 352 }
348 353
349 354 .refmap {
350 355 font-size: 0.9em;
351 356 color: #ccc;
352 357 margin-top: 1em;
353 358 }
354 359
355 360 .fav {
356 361 color: yellow;
357 362 }
358 363
359 364 .not_fav {
360 365 color: #ccc;
361 366 }
362 367
363 368 .role {
364 369 text-decoration: underline;
365 370 }
366 371
367 372 .form-email {
368 373 display: none;
369 374 }
370 375
371 376 .bar-value {
372 377 background: rgba(50, 55, 164, 0.45);
373 378 font-size: 0.9em;
374 379 height: 1.5em;
375 380 }
376 381
377 382 .bar-bg {
378 383 position: relative;
379 384 border-top: solid 1px #888;
380 385 border-bottom: solid 1px #888;
381 386 margin-top: 5px;
382 387 overflow: hidden;
383 388 }
384 389
385 390 .bar-text {
386 391 padding: 2px;
387 392 position: absolute;
388 393 left: 0;
389 394 top: 0;
390 395 }
391 396
392 397 .page_link {
393 398 background: #444;
394 399 border-top: solid 1px #888;
395 400 border-bottom: solid 1px #888;
396 401 padding: 5px;
397 402 color: #eee;
398 403 font-size: 2ex;
399 404 }
400 405
401 406 .skipped_replies {
402 407 padding: 5px;
403 408 margin-left: 3ex;
404 409 margin-right: 3ex;
405 410 border-left: solid 1px #888;
406 411 border-right: solid 1px #888;
407 412 border-bottom: solid 1px #888;
408 413 background: #000;
409 414 }
410 415
411 416 .current_page {
412 417 padding: 2px;
413 418 background-color: #afdcec;
414 419 color: #000;
415 420 }
416 421
417 422 .current_mode {
418 423 font-weight: bold;
419 424 }
420 425
421 426 .gallery_image {
422 427 border: solid 1px;
423 428 padding: 0.5ex;
424 429 margin: 0.5ex;
425 430 text-align: center;
426 431 }
427 432
428 433 code {
429 434 border: dashed 1px #ccc;
430 435 background: #111;
431 436 padding: 2px;
432 437 font-size: 1.2em;
433 438 display: inline-block;
434 439 }
435 440
436 441 pre {
437 442 overflow: auto;
438 443 }
439 444
440 445 .img-full {
441 446 background: #222;
442 447 border: solid 1px white;
443 448 }
444 449
445 450 .tag_item {
446 451 display: inline-block;
447 452 margin: 0.2ex;
448 453 padding: 0.1ex;
449 454 }
450 455
451 456 #id_models li {
452 457 list-style: none;
453 458 }
454 459
455 460 #id_q {
456 461 margin-left: 1ex;
457 462 }
458 463
459 464 ul {
460 465 padding-left: 0px;
461 466 }
462 467
463 468 .quote-header {
464 469 border-bottom: 2px solid #ddd;
465 470 margin-bottom: 1ex;
466 471 padding-bottom: .5ex;
467 472 color: #ddd;
468 473 font-size: 1.2em;
469 474 }
470 475
471 476 /* Reflink preview */
472 477 .post_preview {
473 478 border-left: 1px solid #777;
474 479 border-right: 1px solid #777;
475 480 }
476 481
477 482 /* Code highlighter */
478 483 .hljs {
479 484 color: #fff;
480 485 background: #000;
481 486 display: inline-block;
482 487 }
483 488
484 489 .hljs, .hljs-subst, .hljs-tag .hljs-title, .lisp .hljs-title, .clojure .hljs-built_in, .nginx .hljs-title {
485 490 color: #fff;
486 491 }
@@ -1,203 +1,203 b''
1 1 {% extends "boards/base.html" %}
2 2
3 3 {% load i18n %}
4 4 {% load cache %}
5 5 {% load board %}
6 6 {% load static %}
7 7
8 8 {% block head %}
9 9 {% if tag %}
10 10 <title>{{ tag.name }} - {{ site_name }}</title>
11 11 {% else %}
12 12 <title>{{ site_name }}</title>
13 13 {% endif %}
14 14
15 15 {% if current_page.has_previous %}
16 16 <link rel="prev" href="
17 17 {% if tag %}
18 18 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
19 19 {% elif archived %}
20 20 {% url "archive" page=current_page.previous_page_number %}
21 21 {% else %}
22 22 {% url "index" page=current_page.previous_page_number %}
23 23 {% endif %}
24 24 " />
25 25 {% endif %}
26 26 {% if current_page.has_next %}
27 27 <link rel="next" href="
28 28 {% if tag %}
29 29 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
30 30 {% elif archived %}
31 31 {% url "archive" page=current_page.next_page_number %}
32 32 {% else %}
33 33 {% url "index" page=current_page.next_page_number %}
34 34 {% endif %}
35 35 " />
36 36 {% endif %}
37 37
38 38 {% endblock %}
39 39
40 40 {% block content %}
41 41
42 42 {% get_current_language as LANGUAGE_CODE %}
43 43
44 44 {% if tag %}
45 45 <div class="tag_info">
46 46 <h2>
47 47 {% if tag in fav_tags %}
48 48 <a href="{% url 'tag' tag.name %}?method=unsubscribe&next={{ request.path }}"
49 49 class="fav" rel="nofollow">β˜…</a>
50 50 {% else %}
51 51 <a href="{% url 'tag' tag.name %}?method=subscribe&next={{ request.path }}"
52 52 class="not_fav" rel="nofollow">β˜…</a>
53 53 {% endif %}
54 54 {% if tag in hidden_tags %}
55 55 <a href="{% url 'tag' tag.name %}?method=unhide&next={{ request.path }}"
56 56 title="{% trans 'Show tag' %}"
57 57 class="fav" rel="nofollow">H</a>
58 58 {% else %}
59 59 <a href="{% url 'tag' tag.name %}?method=hide&next={{ request.path }}"
60 60 title="{% trans 'Hide tag' %}"
61 61 class="not_fav" rel="nofollow">H</a>
62 62 {% endif %}
63 63 {% autoescape off %}
64 64 {{ tag.get_view }}
65 65 {% endautoescape %}
66 66 {% if moderator %}
67 [<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]
67 <span class="moderator_info">[<a href="{% url 'admin:boards_tag_change' tag.id %}">{% trans 'Edit tag' %}</a>]</span>
68 68 {% endif %}
69 69 </h2>
70 70 <p>{% blocktrans with thread_count=tag.get_thread_count post_count=tag.get_post_count %}This tag has {{ thread_count }} threads and {{ post_count }} posts.{% endblocktrans %}</p>
71 71 </div>
72 72 {% endif %}
73 73
74 74 {% if threads %}
75 75 {% if current_page.has_previous %}
76 76 <div class="page_link">
77 77 <a href="
78 78 {% if tag %}
79 79 {% url "tag" tag_name=tag.name page=current_page.previous_page_number %}
80 80 {% elif archived %}
81 81 {% url "archive" page=current_page.previous_page_number %}
82 82 {% else %}
83 83 {% url "index" page=current_page.previous_page_number %}
84 84 {% endif %}
85 85 ">{% trans "Previous page" %}</a>
86 86 </div>
87 87 {% endif %}
88 88
89 89 {% for thread in threads %}
90 90 {% cache 600 thread_short thread.id thread.last_edit_time moderator LANGUAGE_CODE %}
91 91 <div class="thread">
92 92 {% with can_bump=thread.can_bump %}
93 93 {% post_view thread.get_opening_post moderator is_opening=True thread=thread can_bump=can_bump truncated=True need_open_link=True %}
94 94 {% if not thread.archived %}
95 95 {% with last_replies=thread.get_last_replies %}
96 96 {% if last_replies %}
97 97 {% if thread.get_skipped_replies_count %}
98 98 <div class="skipped_replies">
99 99 <a href="{% url 'thread' thread.get_opening_post.id %}">
100 100 {% blocktrans with count=thread.get_skipped_replies_count %}Skipped {{ count }} replies. Open thread to see all replies.{% endblocktrans %}
101 101 </a>
102 102 </div>
103 103 {% endif %}
104 104 <div class="last-replies">
105 105 {% for post in last_replies %}
106 106 {% post_view post moderator=moderator is_opening=False thread=thread can_bump=can_bump truncated=True %}
107 107 {% endfor %}
108 108 </div>
109 109 {% endif %}
110 110 {% endwith %}
111 111 {% endif %}
112 112 {% endwith %}
113 113 </div>
114 114 {% endcache %}
115 115 {% endfor %}
116 116
117 117 {% if current_page.has_next %}
118 118 <div class="page_link">
119 119 <a href="
120 120 {% if tag %}
121 121 {% url "tag" tag_name=tag.name page=current_page.next_page_number %}
122 122 {% elif archived %}
123 123 {% url "archive" page=current_page.next_page_number %}
124 124 {% else %}
125 125 {% url "index" page=current_page.next_page_number %}
126 126 {% endif %}
127 127 ">{% trans "Next page" %}</a>
128 128 </div>
129 129 {% endif %}
130 130 {% else %}
131 131 <div class="post">
132 132 {% trans 'No threads exist. Create the first one!' %}</div>
133 133 {% endif %}
134 134
135 135 <div class="post-form-w">
136 136 <script src="{% static 'js/panel.js' %}"></script>
137 137 <div class="post-form">
138 138 <div class="form-title">{% trans "Create new thread" %}</div>
139 139 <div class="swappable-form-full">
140 140 <form enctype="multipart/form-data" method="post">{% csrf_token %}
141 141 {{ form.as_div }}
142 142 <div class="form-submit">
143 143 <input type="submit" value="{% trans "Post" %}"/>
144 144 </div>
145 145 </form>
146 146 </div>
147 147 <div>
148 148 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
149 149 </div>
150 150 <div><a href="{% url "staticpage" name="help" %}">
151 151 {% trans 'Text syntax' %}</a></div>
152 152 </div>
153 153 </div>
154 154
155 155 <script src="{% static 'js/form.js' %}"></script>
156 156
157 157 {% endblock %}
158 158
159 159 {% block metapanel %}
160 160
161 161 <span class="metapanel">
162 162 <b><a href="{% url "authors" %}">{{ site_name }}</a> {{ version }}</b>
163 163 {% trans "Pages:" %}
164 164 <a href="
165 165 {% if tag %}
166 166 {% url "tag" tag_name=tag.name page=paginator.page_range|first %}
167 167 {% elif archived %}
168 168 {% url "archive" page=paginator.page_range|first %}
169 169 {% else %}
170 170 {% url "index" page=paginator.page_range|first %}
171 171 {% endif %}
172 172 ">&lt;&lt;</a>
173 173 [
174 174 {% for page in paginator.center_range %}
175 175 <a
176 176 {% ifequal page current_page.number %}
177 177 class="current_page"
178 178 {% endifequal %}
179 179 href="
180 180 {% if tag %}
181 181 {% url "tag" tag_name=tag.name page=page %}
182 182 {% elif archived %}
183 183 {% url "archive" page=page %}
184 184 {% else %}
185 185 {% url "index" page=page %}
186 186 {% endif %}
187 187 ">{{ page }}</a>
188 188 {% if not forloop.last %},{% endif %}
189 189 {% endfor %}
190 190 ]
191 191 <a href="
192 192 {% if tag %}
193 193 {% url "tag" tag_name=tag.name page=paginator.page_range|last %}
194 194 {% elif archived %}
195 195 {% url "archive" page=paginator.page_range|last %}
196 196 {% else %}
197 197 {% url "index" page=paginator.page_range|last %}
198 198 {% endif %}
199 199 ">&gt;&gt;</a>
200 200 [<a href="rss/">RSS</a>]
201 201 </span>
202 202
203 203 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now