summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-04-26 00:11:59 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-04-26 00:11:59 +0900
commitacb8c5db6e610275d4d9e7f2dbebcdae85fd02c4 (patch)
tree8ff86765c7c4c9511b9bc7ca483fc7e99de2d6a3
parent30ae72699e0b65c7ac6c9ada59390b3976d2ae52 (diff)
Add page wrapper div in order to restrict page width and center content
-rw-r--r--templates/index.html3
-rw-r--r--templates/page.html4
-rw-r--r--templates/thread.html2
3 files changed, 7 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 12c22c5e..0fec3b1b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -24,7 +24,7 @@
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
-
+ <div id="pagewrap">
<header>
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<div class="subtitle">
@@ -87,6 +87,7 @@
{% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
</footer>
+ </div>
<div class="bar bottom">
<div class="pages">
diff --git a/templates/page.html b/templates/page.html
index e53dbc9a..6ea6b562 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -14,7 +14,8 @@
{{ boardlist.top }}
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr>{% endif %}
- <header>
+ <div id="pagewrap">
+ <header>
<h1>{{ title }}</h1>
<div class="subtitle">
{% if subtitle %}
@@ -34,5 +35,6 @@
<br><a href="https://github.com/lainchan/lainchan">lainchan</a> Copyright &copy; 2014-2017 lainchan Administration</p>
</footer>
+ </div>
</body>
</html>
diff --git a/templates/thread.html b/templates/thread.html
index b4801e82..3343ea7d 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -32,6 +32,7 @@
<a name="top"></a>
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr />{% endif %}
{% if config.url_banner %}<img class="board_image" src="{{ config.url_banner }}" {% if config.banner_width or config.banner_height %}style="{% if config.banner_width %}width:{{ config.banner_width }}px{% endif %};{% if config.banner_width %}height:{{ config.banner_height }}px{% endif %}" {% endif %}alt="" />{% endif %}
+ <div id="pagewrap">
<header>
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<div class="subtitle">
@@ -99,6 +100,7 @@
<br><a href="https://github.com/lainchan/lainchan">lainchan</a> Copyright &copy; 2014-2017 lainchan Administration</p>
{% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %}
</footer>
+ </div>
<div class="bar bottom">
<div class="threadlinks">
<span class="threadlink">[ <a href="{{ return }}">{% trans %}Return{% endtrans %}</a> /</span>