Show More
@@ -1,115 +1,115 b'' | |||||
1 | .ui-button { |
|
1 | .ui-button { | |
2 | display: none; |
|
2 | display: none; | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | .ui-dialog-content { |
|
5 | .ui-dialog-content { | |
6 | padding: 0; |
|
6 | padding: 0; | |
7 | min-height: 0; |
|
7 | min-height: 0; | |
8 | } |
|
8 | } | |
9 |
|
9 | |||
10 | .mark_btn { |
|
10 | .mark_btn { | |
11 | cursor: pointer; |
|
11 | cursor: pointer; | |
12 | } |
|
12 | } | |
13 |
|
13 | |||
14 | .img-full { |
|
14 | .img-full { | |
15 | position: fixed; |
|
15 | position: fixed; | |
16 | background-color: #CCC; |
|
16 | background-color: #CCC; | |
17 | border: 1px solid #000; |
|
17 | border: 1px solid #000; | |
18 | cursor: pointer; |
|
18 | cursor: pointer; | |
19 | } |
|
19 | } | |
20 |
|
20 | |||
21 | .strikethrough { |
|
21 | .strikethrough { | |
22 | text-decoration: line-through; |
|
22 | text-decoration: line-through; | |
23 | } |
|
23 | } | |
24 |
|
24 | |||
25 | .post_preview { |
|
25 | .post_preview { | |
26 | z-index: 300; |
|
26 | z-index: 300; | |
27 | position:absolute; |
|
27 | position:absolute; | |
28 | } |
|
28 | } | |
29 |
|
29 | |||
30 | .gallery_image { |
|
30 | .gallery_image { | |
31 | display: inline-block; |
|
31 | display: inline-block; | |
32 | } |
|
32 | } | |
33 |
|
33 | |||
34 | @media print { |
|
34 | @media print { | |
35 | .post-form-w { |
|
35 | .post-form-w { | |
36 | display: none; |
|
36 | display: none; | |
37 | } |
|
37 | } | |
38 | } |
|
38 | } | |
39 |
|
39 | |||
40 | input[name="image"] { |
|
40 | input[name="image"] { | |
41 | display: block; |
|
41 | display: block; | |
42 | width: 100px; |
|
42 | width: 100px; | |
43 | height: 100px; |
|
43 | height: 100px; | |
44 | cursor: pointer; |
|
44 | cursor: pointer; | |
45 | position: absolute; |
|
45 | position: absolute; | |
46 | opacity: 0; |
|
46 | opacity: 0; | |
47 | z-index: 1; |
|
47 | z-index: 1; | |
48 | } |
|
48 | } | |
49 |
|
49 | |||
50 | .file_wrap { |
|
50 | .file_wrap { | |
51 | width: 100px; |
|
51 | width: 100px; | |
52 | height: 100px; |
|
52 | height: 100px; | |
53 | border: solid 1px white; |
|
53 | border: solid 1px white; | |
54 | display: inline-block; |
|
54 | display: inline-block; | |
55 | } |
|
55 | } | |
56 |
|
56 | |||
57 | form > .file_wrap { |
|
57 | form > .file_wrap { | |
58 | float: left; |
|
58 | float: left; | |
59 | } |
|
59 | } | |
60 |
|
60 | |||
61 | .file-thumb { |
|
61 | .file-thumb { | |
62 | width: 100px; |
|
62 | width: 100px; | |
63 | height: 100px; |
|
63 | height: 100px; | |
64 | background-size: cover; |
|
64 | background-size: cover; | |
65 | background-position: center; |
|
65 | background-position: center; | |
66 | } |
|
66 | } | |
67 |
|
67 | |||
68 | .compact-form-text { |
|
68 | .compact-form-text { | |
69 | margin-left:110px; |
|
69 | margin-left:110px; | |
70 | } |
|
70 | } | |
71 |
|
71 | |||
72 | textarea, input { |
|
72 | textarea, input { | |
73 | -moz-box-sizing: border-box; |
|
73 | -moz-box-sizing: border-box; | |
74 | -webkit-box-sizing: border-box; |
|
74 | -webkit-box-sizing: border-box; | |
75 | box-sizing: border-box; |
|
75 | box-sizing: border-box; | |
76 | } |
|
76 | } | |
77 |
|
77 | |||
78 | .compact-form-text > textarea { |
|
78 | .compact-form-text > textarea { | |
79 | height: 100px; |
|
79 | height: 100px; | |
80 | width: 100%; |
|
80 | width: 100%; | |
81 | } |
|
81 | } | |
82 |
|
82 | |||
83 | .post-button-form { |
|
83 | .post-button-form { | |
84 | display: inline; |
|
84 | display: inline; | |
85 | } |
|
85 | } | |
86 |
|
86 | |||
87 | .post-button-form > button, #autoupdate { |
|
87 | .post-button-form > button, #autoupdate { | |
88 | border: none; |
|
88 | border: none; | |
89 | margin: inherit; |
|
89 | margin: inherit; | |
90 | padding: inherit; |
|
90 | padding: inherit; | |
91 | background: none; |
|
91 | background: none; | |
92 | font-size: inherit; |
|
92 | font-size: inherit; | |
93 | } |
|
93 | } | |
94 |
|
94 | |||
95 | #form-close-button { |
|
95 | #form-close-button { | |
96 | display: none; |
|
96 | display: none; | |
97 | } |
|
97 | } | |
98 |
|
98 | |||
99 | .post-image-full { |
|
99 | .post-image-full { | |
100 | width: 100%; |
|
100 | width: 100%; | |
101 | } |
|
101 | } | |
102 |
|
102 | |||
103 | #preview-text { |
|
103 | #preview-text { | |
104 | display: none; |
|
104 | display: none; | |
105 | } |
|
105 | } | |
106 |
|
106 | |||
107 | .random-images-table { |
|
107 | .random-images-table { | |
108 | text-align: center; |
|
108 | text-align: center; | |
109 | width: 100%; |
|
109 | width: 100%; | |
110 | } |
|
110 | } | |
111 |
|
111 | |||
112 |
.random-images-table > |
|
112 | .random-images-table > div { | |
113 | margin-left: auto; |
|
113 | margin-left: auto; | |
114 | margin-right: auto; |
|
114 | margin-right: auto; | |
115 | } |
|
115 | } |
@@ -1,36 +1,32 b'' | |||||
1 | {% extends "boards/base.html" %} |
|
1 | {% extends "boards/base.html" %} | |
2 |
|
2 | |||
3 | {% load i18n %} |
|
3 | {% load i18n %} | |
4 |
|
4 | |||
5 | {% block head %} |
|
5 | {% block head %} | |
6 | <title>{% trans 'Random images' %} - {{ site_name }}</title> |
|
6 | <title>{% trans 'Random images' %} - {{ site_name }}</title> | |
7 | {% endblock %} |
|
7 | {% endblock %} | |
8 |
|
8 | |||
9 | {% block content %} |
|
9 | {% block content %} | |
10 |
|
10 | |||
11 | {% if posts %} |
|
11 | {% if posts %} | |
12 | <div class="random-images-table"> |
|
12 | <div class="random-images-table"> | |
13 |
< |
|
13 | <div> | |
14 | <tr> |
|
|||
15 | {% for post in posts %} |
|
14 | {% for post in posts %} | |
16 | <td> |
|
|||
17 | <div class="gallery_image"> |
|
15 | <div class="gallery_image"> | |
18 | {% with post.get_first_image as image %} |
|
16 | {% with post.get_first_image as image %} | |
19 | {% autoescape off %} |
|
17 | {% autoescape off %} | |
20 | {{ image.get_view }} |
|
18 | {{ image.get_view }} | |
21 | {% endautoescape %} |
|
19 | {% endautoescape %} | |
22 | <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a> |
|
20 | <a href="{{ post.get_absolute_url }}">>>{{ post.id }}</a> | |
23 | {% endwith %} |
|
21 | {% endwith %} | |
24 | </div> |
|
22 | </div> | |
25 | </td> |
|
|||
26 | {% if forloop.counter|divisibleby:"3" %} |
|
23 | {% if forloop.counter|divisibleby:"3" %} | |
27 |
</ |
|
24 | </div> | |
28 |
< |
|
25 | <div> | |
29 | {% endif %} |
|
26 | {% endif %} | |
30 | {% endfor %} |
|
27 | {% endfor %} | |
31 |
</ |
|
28 | </div> | |
32 | </table> |
|
|||
33 | </div> |
|
29 | </div> | |
34 | {% endif %} |
|
30 | {% endif %} | |
35 |
|
31 | |||
36 | {% endblock %} |
|
32 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now