##// END OF EJS Templates
Removed the image height hardcoded in the CSS. It is useless now because of...
neko259 -
r134:23ff671e default
parent child Browse files
Show More
@@ -1,281 +1,280 b''
1 html {
1 html {
2 background: #555;
2 background: #555;
3 color: #ffffff;
3 color: #ffffff;
4 }
4 }
5
5
6 #admin_panel {
6 #admin_panel {
7 background: #FF0000;
7 background: #FF0000;
8 color: #00FF00
8 color: #00FF00
9 }
9 }
10
10
11 .input_field {
11 .input_field {
12
12
13 }
13 }
14
14
15 .input_field_name {
15 .input_field_name {
16
16
17 }
17 }
18
18
19 .input_field_error {
19 .input_field_error {
20 color: #FF0000;
20 color: #FF0000;
21 }
21 }
22
22
23
23
24 .title {
24 .title {
25 font-weight: bold;
25 font-weight: bold;
26 color: #ffcc00;
26 color: #ffcc00;
27 }
27 }
28
28
29 .link, a {
29 .link, a {
30 color: #afdcec;
30 color: #afdcec;
31 }
31 }
32
32
33 .block {
33 .block {
34 display: inline-block;
34 display: inline-block;
35 vertical-align: top;
35 vertical-align: top;
36 }
36 }
37
37
38 .tag {
38 .tag {
39 color: #b4cfec;
39 color: #b4cfec;
40 }
40 }
41
41
42 .post_id {
42 .post_id {
43 color: #fff380;
43 color: #fff380;
44 }
44 }
45
45
46 .post, .dead_post {
46 .post, .dead_post {
47 background: #333;
47 background: #333;
48 margin: 5px;
48 margin: 5px;
49 padding: 10px;
49 padding: 10px;
50 border: solid 1px #888;
50 border: solid 1px #888;
51 clear: left;
51 clear: left;
52 word-wrap: break-word;
52 word-wrap: break-word;
53 }
53 }
54
54
55 .metadata {
55 .metadata {
56 padding: 5px;
56 padding: 5px;
57 margin-top: 10px;
57 margin-top: 10px;
58 border: solid 1px #666;
58 border: solid 1px #666;
59 font-size: 0.9em;
59 font-size: 0.9em;
60 color: #ddd;
60 color: #ddd;
61 display: table;
61 display: table;
62 }
62 }
63
63
64 .navigation_panel, .tag_info {
64 .navigation_panel, .tag_info {
65 background: #444;
65 background: #444;
66 margin: 5px;
66 margin: 5px;
67 padding: 10px;
67 padding: 10px;
68 border: solid 1px #888;
68 border: solid 1px #888;
69 color: #eee;
69 color: #eee;
70 }
70 }
71
71
72 .navigation_panel .link {
72 .navigation_panel .link {
73 border-right: 1px solid #fff;
73 border-right: 1px solid #fff;
74 font-weight: bold;
74 font-weight: bold;
75 margin-right: 1ex;
75 margin-right: 1ex;
76 padding-right: 1ex;
76 padding-right: 1ex;
77 }
77 }
78 .navigation_panel .link:last-child {
78 .navigation_panel .link:last-child {
79 border-left: 1px solid #fff;
79 border-left: 1px solid #fff;
80 border-right: none;
80 border-right: none;
81 float: right;
81 float: right;
82 margin-left: 1ex;
82 margin-left: 1ex;
83 margin-right: 0;
83 margin-right: 0;
84 padding-left: 1ex;
84 padding-left: 1ex;
85 padding-right: 0;
85 padding-right: 0;
86 }
86 }
87
87
88 .navigation_panel::after, .post::after {
88 .navigation_panel::after, .post::after {
89 clear: both;
89 clear: both;
90 content: ".";
90 content: ".";
91 display: block;
91 display: block;
92 height: 0;
92 height: 0;
93 line-height: 0;
93 line-height: 0;
94 visibility: hidden;
94 visibility: hidden;
95 }
95 }
96
96
97 p {
97 p {
98 margin-top: .5em;
98 margin-top: .5em;
99 margin-bottom: .5em;
99 margin-bottom: .5em;
100 }
100 }
101
101
102 .post-form-w {
102 .post-form-w {
103 display: table;
103 display: table;
104 background: #333344;
104 background: #333344;
105 border: solid 1px #888;
105 border: solid 1px #888;
106 color: #fff;
106 color: #fff;
107 padding: 10px;
107 padding: 10px;
108 margin: 5px
108 margin: 5px
109 }
109 }
110
110
111 .form-row {
111 .form-row {
112 display: table-row;
112 display: table-row;
113 }
113 }
114
114
115 .form-label, .form-input, .form-errors {
115 .form-label, .form-input, .form-errors {
116 display: table-cell;
116 display: table-cell;
117 }
117 }
118
118
119 .form-label {
119 .form-label {
120 padding: .25em 1ex .25em 0;
120 padding: .25em 1ex .25em 0;
121 vertical-align: top;
121 vertical-align: top;
122 }
122 }
123
123
124 .form-input {
124 .form-input {
125 padding: .25em 0;
125 padding: .25em 0;
126 }
126 }
127
127
128 .form-errors {
128 .form-errors {
129 padding-left: 1ex;
129 padding-left: 1ex;
130 font-weight: bold;
130 font-weight: bold;
131 vertical-align: top;
131 vertical-align: top;
132 }
132 }
133
133
134 .post-form input, .post-form textarea {
134 .post-form input, .post-form textarea {
135 background: #333;
135 background: #333;
136 color: #fff;
136 color: #fff;
137 border: solid 1px;
137 border: solid 1px;
138 padding: 0;
138 padding: 0;
139 width: 100%;
139 width: 100%;
140 }
140 }
141
141
142 .form-submit {
142 .form-submit {
143 border-bottom: 2px solid #ddd;
143 border-bottom: 2px solid #ddd;
144 margin-bottom: .5em;
144 margin-bottom: .5em;
145 padding-bottom: .5em;
145 padding-bottom: .5em;
146 }
146 }
147
147
148 .form-title {
148 .form-title {
149 font-weight: bold;
149 font-weight: bold;
150 }
150 }
151
151
152 input[type="submit"] {
152 input[type="submit"] {
153 background: #222;
153 background: #222;
154 border: solid 1px #fff;
154 border: solid 1px #fff;
155 color: #fff;
155 color: #fff;
156 }
156 }
157
157
158 blockquote {
158 blockquote {
159 border-left: solid 2px;
159 border-left: solid 2px;
160 padding-left: 5px;
160 padding-left: 5px;
161 color: #B1FB17;
161 color: #B1FB17;
162 margin: 0;
162 margin: 0;
163 }
163 }
164
164
165 .post > .image {
165 .post > .image {
166 float: left;
166 float: left;
167 margin: 0 1ex .5ex 0;
167 margin: 0 1ex .5ex 0;
168 min-width: 1px;
168 min-width: 1px;
169 height: 150px;
170 text-align: center;
169 text-align: center;
171 display: table-row;
170 display: table-row;
172 }
171 }
173
172
174 .post > .metadata {
173 .post > .metadata {
175 clear: left;
174 clear: left;
176 }
175 }
177
176
178 .get {
177 .get {
179 font-weight: bold;
178 font-weight: bold;
180 color: #d55;
179 color: #d55;
181 }
180 }
182
181
183 * {
182 * {
184 text-decoration: none;
183 text-decoration: none;
185 }
184 }
186
185
187 .dead_post {
186 .dead_post {
188 background-color: #442222;
187 background-color: #442222;
189 }
188 }
190
189
191 .quote {
190 .quote {
192 color: #92cf38;
191 color: #92cf38;
193 }
192 }
194
193
195 .spoiler {
194 .spoiler {
196 background: white;
195 background: white;
197 color: white;
196 color: white;
198 }
197 }
199
198
200 .spoiler:hover {
199 .spoiler:hover {
201 color: black;
200 color: black;
202 }
201 }
203
202
204 .comment {
203 .comment {
205 color: #eb2;
204 color: #eb2;
206 font-style: italic;
205 font-style: italic;
207 }
206 }
208
207
209 a:hover {
208 a:hover {
210 text-decoration: underline;
209 text-decoration: underline;
211 }
210 }
212
211
213 .last-replies {
212 .last-replies {
214 margin-left: 3ex;
213 margin-left: 3ex;
215 }
214 }
216
215
217 .thread {
216 .thread {
218 margin-bottom: 3ex;
217 margin-bottom: 3ex;
219 }
218 }
220
219
221 .post:target {
220 .post:target {
222 border: solid 2px white;
221 border: solid 2px white;
223 }
222 }
224
223
225 pre{
224 pre{
226 white-space:pre-wrap
225 white-space:pre-wrap
227 }
226 }
228
227
229 li {
228 li {
230 list-style-position: inside;
229 list-style-position: inside;
231 }
230 }
232
231
233 .fancybox-skin {
232 .fancybox-skin {
234 position: relative;
233 position: relative;
235 background-color: #fff;
234 background-color: #fff;
236 color: #ddd;
235 color: #ddd;
237 text-shadow: none;
236 text-shadow: none;
238 }
237 }
239
238
240 .fancybox-image {
239 .fancybox-image {
241 border: 1px solid black;
240 border: 1px solid black;
242 }
241 }
243
242
244 .image-mode-tab {
243 .image-mode-tab {
245 background: #444;
244 background: #444;
246 color: #eee;
245 color: #eee;
247 display: table;
246 display: table;
248 margin: 5px;
247 margin: 5px;
249 padding: 5px;
248 padding: 5px;
250 border: 1px solid #888;
249 border: 1px solid #888;
251 }
250 }
252
251
253 .image-mode-tab > label {
252 .image-mode-tab > label {
254 margin: 0 1ex;
253 margin: 0 1ex;
255 }
254 }
256
255
257 .image-mode-tab > label > input {
256 .image-mode-tab > label > input {
258 margin-right: .5ex;
257 margin-right: .5ex;
259 }
258 }
260
259
261 #posts-table {
260 #posts-table {
262 margin: 5px;
261 margin: 5px;
263 }
262 }
264
263
265 .tag_info {
264 .tag_info {
266 display: table;
265 display: table;
267 }
266 }
268
267
269 .tag_info > h2 {
268 .tag_info > h2 {
270 margin: 0;
269 margin: 0;
271 }
270 }
272
271
273 .post-info {
272 .post-info {
274 color: #ddd;
273 color: #ddd;
275 }
274 }
276
275
277 .refmap {
276 .refmap {
278 font-size: 0.9em;
277 font-size: 0.9em;
279 color: #ccc;
278 color: #ccc;
280 margin-top: 1em;
279 margin-top: 1em;
281 }
280 }
@@ -1,168 +1,168 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load markup %}
4 {% load markup %}
5
5
6 {% block head %}
6 {% block head %}
7 {% if tag %}
7 {% if tag %}
8 <title>Neboard - {{ tag }}</title>
8 <title>Neboard - {{ tag }}</title>
9 {% else %}
9 {% else %}
10 <title>Neboard</title>
10 <title>Neboard</title>
11 {% endif %}
11 {% endif %}
12 {% endblock %}
12 {% endblock %}
13
13
14 {% block content %}
14 {% block content %}
15
15
16 {% if tag %}
16 {% if tag %}
17 <div class="tag_info">
17 <div class="tag_info">
18 <h2>{% trans 'Tag: ' %}{{ tag }}</h2>
18 <h2>{% trans 'Tag: ' %}{{ tag }}</h2>
19 </div>
19 </div>
20 {% endif %}
20 {% endif %}
21
21
22 {% if threads %}
22 {% if threads %}
23 {% for thread in threads %}
23 {% for thread in threads %}
24 <div class="thread">
24 <div class="thread">
25 {% if thread.can_bump %}
25 {% if thread.can_bump %}
26 <div class="post" id=" {{thread.id}} ">
26 <div class="post" id=" {{thread.id}} ">
27 {% else %}
27 {% else %}
28 <div class="post dead_post" id="{{ thread.id }}">
28 <div class="post dead_post" id="{{ thread.id }}">
29 {% endif %}
29 {% endif %}
30 {% if thread.image %}
30 {% if thread.image %}
31 <div class="image">
31 <div class="image">
32 <a class="fancy"
32 <a class="fancy"
33 href="{{ thread.image.url }}"><img
33 href="{{ thread.image.url }}"><img
34 src="{{ thread.image.url_200x150 }}"
34 src="{{ thread.image.url_200x150 }}"
35 alt="{% trans 'Post image' %}"
35 alt="{% trans 'Post image' %}"
36 data-width="{{ thread.image_width }}"
36 data-width="{{ thread.image_width }}"
37 data-height="{{ thread.image_height }}" />
37 data-height="{{ thread.image_height }}" />
38 </a>
38 </a>
39 </div>
39 </div>
40 {% endif %}
40 {% endif %}
41 <div class="message">
41 <div class="message">
42 <div class="post-info">
42 <div class="post-info">
43 <span class="title">{{ thread.title }}</span>
43 <span class="title">{{ thread.title }}</span>
44 <a class="post_id" href="{% url 'thread' thread.id %}">
44 <a class="post_id" href="{% url 'thread' thread.id %}"
45 (#{{ thread.id }})</a>
45 >(#{{ thread.id }})</a>
46 [{{ thread.pub_time }}]
46 [{{ thread.pub_time }}]
47 [<a class="link" href="{% url 'thread' thread.id %}#form"
47 [<a class="link" href="{% url 'thread' thread.id %}#form"
48 >{% trans "Reply" %}</a>]
48 >{% trans "Reply" %}</a>]
49 </div>
49 </div>
50 {% autoescape off %}
50 {% autoescape off %}
51 {{ thread.text.rendered|truncatewords_html:50 }}
51 {{ thread.text.rendered|truncatewords_html:50 }}
52 {% endautoescape %}
52 {% endautoescape %}
53 </div>
53 </div>
54 <div class="metadata">
54 <div class="metadata">
55 {{ thread.get_reply_count }} {% trans 'replies' %},
55 {{ thread.get_reply_count }} {% trans 'replies' %},
56 {{ thread.get_images_count }} {% trans 'images' %}.
56 {{ thread.get_images_count }} {% trans 'images' %}.
57 {% if thread.tags.all %}
57 {% if thread.tags.all %}
58 <span class="tags">{% trans 'Tags' %}:
58 <span class="tags">{% trans 'Tags' %}:
59 {% for tag in thread.tags.all %}
59 {% for tag in thread.tags.all %}
60 <a class="tag" href="
60 <a class="tag" href="
61 {% url 'tag' tag_name=tag.name %}">
61 {% url 'tag' tag_name=tag.name %}">
62 {{ tag.name }}</a>
62 {{ tag.name }}</a>
63 {% endfor %}
63 {% endfor %}
64 </span>
64 </span>
65 {% endif %}
65 {% endif %}
66 </div>
66 </div>
67 </div>
67 </div>
68 {% if thread.get_last_replies %}
68 {% if thread.get_last_replies %}
69 <div class="last-replies">
69 <div class="last-replies">
70 {% for post in thread.get_last_replies %}
70 {% for post in thread.get_last_replies %}
71 {% if thread.can_bump %}
71 {% if thread.can_bump %}
72 <div class="post" id="{{ post.id }}">
72 <div class="post" id="{{ post.id }}">
73 {% else %}
73 {% else %}
74 <div class="post dead_post id="{{ post.id }}"">
74 <div class="post dead_post id="{{ post.id }}"">
75 {% endif %}
75 {% endif %}
76 {% if post.image %}
76 {% if post.image %}
77 <div class="image">
77 <div class="image">
78 <a class="fancy"
78 <a class="fancy"
79 href="{{ post.image.url }}"><img
79 href="{{ post.image.url }}"><img
80 src=" {{ post.image.url_200x150 }}"
80 src=" {{ post.image.url_200x150 }}"
81 alt="{% trans 'Post image' %}"
81 alt="{% trans 'Post image' %}"
82 data-width="{{ post.image_width }}"
82 data-width="{{ post.image_width }}"
83 data-height="{{ post.image_height }}"/>
83 data-height="{{ post.image_height }}"/>
84 </a>
84 </a>
85 </div>
85 </div>
86 {% endif %}
86 {% endif %}
87 <div class="message">
87 <div class="message">
88 <div class="post-info">
88 <div class="post-info">
89 <span class="title">{{ post.title }}</span>
89 <span class="title">{{ post.title }}</span>
90 <a class="post_id" href="
90 <a class="post_id" href="
91 {% url 'thread' thread.id %}#{{ post.id }}">
91 {% url 'thread' thread.id %}#{{ post.id }}">
92 (#{{ post.id }})</a>
92 (#{{ post.id }})</a>
93 [{{ post.pub_time }}]
93 [{{ post.pub_time }}]
94 </div>
94 </div>
95 {% autoescape off %}
95 {% autoescape off %}
96 {{ post.text.rendered|truncatewords_html:50 }}
96 {{ post.text.rendered|truncatewords_html:50 }}
97 {% endautoescape %}
97 {% endautoescape %}
98 </div>
98 </div>
99 </div>
99 </div>
100 {% endfor %}
100 {% endfor %}
101 </div>
101 </div>
102 {% endif %}
102 {% endif %}
103 </div>
103 </div>
104 {% endfor %}
104 {% endfor %}
105 {% else %}
105 {% else %}
106 No threads found.
106 No threads found.
107 <hr />
107 <hr />
108 {% endif %}
108 {% endif %}
109
109
110 <form enctype="multipart/form-data" method="post">{% csrf_token %}
110 <form enctype="multipart/form-data" method="post">{% csrf_token %}
111 <div class="post-form-w">
111 <div class="post-form-w">
112
112
113 <div class="form-title">{% trans "Create new thread" %}</div>
113 <div class="form-title">{% trans "Create new thread" %}</div>
114 <div class="post-form">
114 <div class="post-form">
115 <div class="form-row">
115 <div class="form-row">
116 <div class="form-label">{% trans 'Title' %}</div>
116 <div class="form-label">{% trans 'Title' %}</div>
117 <div class="form-input">{{ form.title }}</div>
117 <div class="form-input">{{ form.title }}</div>
118 <div class="form-errors">{{ form.title.errors }}</div>
118 <div class="form-errors">{{ form.title.errors }}</div>
119 </div>
119 </div>
120 <div class="form-row">
120 <div class="form-row">
121 <div class="form-label">{% trans 'Text' %}</div>
121 <div class="form-label">{% trans 'Text' %}</div>
122 <div class="form-input">{{ form.text }}</div>
122 <div class="form-input">{{ form.text }}</div>
123 <div class="form-errors">{{ form.text.errors }}</div>
123 <div class="form-errors">{{ form.text.errors }}</div>
124 </div>
124 </div>
125 <div class="form-row">
125 <div class="form-row">
126 <div class="form-label">{% trans 'Image' %}</div>
126 <div class="form-label">{% trans 'Image' %}</div>
127 <div class="form-input">{{ form.image }}</div>
127 <div class="form-input">{{ form.image }}</div>
128 <div class="form-errors">{{ form.image.errors }}</div>
128 <div class="form-errors">{{ form.image.errors }}</div>
129 </div>
129 </div>
130 <div class="form-row">
130 <div class="form-row">
131 <div class="form-label">{% trans 'Tags' %}</div>
131 <div class="form-label">{% trans 'Tags' %}</div>
132 <div class="form-input">{{ form.tags }}</div>
132 <div class="form-input">{{ form.tags }}</div>
133 <div class="form-errors">{{ form.tags.errors }}</div>
133 <div class="form-errors">{{ form.tags.errors }}</div>
134 </div>
134 </div>
135 <div class="form-row">
135 <div class="form-row">
136 {{ form.captcha }}
136 {{ form.captcha }}
137 <div class="form-errors">{{ form.captcha.errors }}</div>
137 <div class="form-errors">{{ form.captcha.errors }}</div>
138 </div>
138 </div>
139 </div>
139 </div>
140 <div class="form-submit">
140 <div class="form-submit">
141 <input type="submit" value="{% trans "Post" %}"/></div>
141 <input type="submit" value="{% trans "Post" %}"/></div>
142 <div>
142 <div>
143 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
143 {% trans 'Tags must be delimited by spaces. Text or image is required.' %}
144 </div>
144 </div>
145 <div><a href="http://daringfireball.net/projects/markdown/basics">
145 <div><a href="http://daringfireball.net/projects/markdown/basics">
146 {% trans 'Basic markdown syntax.' %}</a></div>
146 {% trans 'Basic markdown syntax.' %}</a></div>
147 </div>
147 </div>
148 </form>
148 </form>
149
149
150 {% endblock %}
150 {% endblock %}
151
151
152 {% block metapanel %}
152 {% block metapanel %}
153
153
154 <span class="metapanel">
154 <span class="metapanel">
155 <b><a href="{% url "authors" %}">Neboard</a> pre1.0</b>
155 <b><a href="{% url "authors" %}">Neboard</a> pre1.0</b>
156 {% trans "Pages:" %}
156 {% trans "Pages:" %}
157 {% for page in pages %}
157 {% for page in pages %}
158 [<a href="
158 [<a href="
159 {% if tag %}
159 {% if tag %}
160 {% url "tag" tag_name=tag page=page %}
160 {% url "tag" tag_name=tag page=page %}
161 {% else %}
161 {% else %}
162 {% url "index" page=page %}
162 {% url "index" page=page %}
163 {% endif %}
163 {% endif %}
164 ">{{ page }}</a>]
164 ">{{ page }}</a>]
165 {% endfor %}
165 {% endfor %}
166 </span>
166 </span>
167
167
168 {% endblock %}
168 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now