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