From c4a6116722f7798967a8424cb47aad2a319e7a9c Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 00:42:20 +1000 Subject: Optionally show page navigation bar at the top too. --- stylesheets/style.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stylesheets') diff --git a/stylesheets/style.css b/stylesheets/style.css index c1725e35..10ddb8e8 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -319,6 +319,10 @@ div.pages { border-right: 1px solid #B7C5D9; border-bottom: 1px solid #B7C5D9; } +div.pages.top { + display: inline-block; + padding: 4px 8px; +} div.pages a.selected { color: black; font-weight: bolder; -- cgit v1.3 From 92550d50848e5873002bfbe5428a568d4f8b6a00 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 00:53:45 +1000 Subject: Better position of top nav bar? Shit css --- stylesheets/style.css | 3 +++ templates/index.html | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'stylesheets') diff --git a/stylesheets/style.css b/stylesheets/style.css index 10ddb8e8..aa5d121e 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -322,6 +322,9 @@ div.pages { div.pages.top { display: inline-block; padding: 4px 8px; + margin-top: 40px; + float: left; + position: absolute; } div.pages a.selected { color: black; diff --git a/templates/index.html b/templates/index.html index 0b4fed8d..b8c5d1ae 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,8 +7,19 @@ {{ boardlist.top }} + + {% if config.page_nav_top %} +
+ {% for page in pages %} + [{{ page.num }}]{% if loop.last %} {% endif %} + {% endfor %} + {{ btn.next }} +
+ {% endif %} + {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %} +

{{ board.url }} - {{ board.title|e }}

@@ -25,17 +36,6 @@ {% include 'post_form.html' %} - {% if config.page_nav_top %} -
- {% for page in pages %} - [{{ page.num }}]{% if loop.last %} {% endif %} - {% endfor %} {{ btn.next }} - {% if config.catalog_link %} - | Catalog - {% endif %} -
- {% endif %} - {% if config.global_message %}
{{ config.global_message }}
{% endif %}
-- cgit v1.3 From 961e3d3fe0e0abb7be956532091372ce7a00bafa Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 15 Sep 2013 05:46:27 +1000 Subject: dock top nav bar in top right corner for now, because it looks shit everywhere else --- stylesheets/style.css | 12 +++++++----- templates/index.html | 18 +++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'stylesheets') diff --git a/stylesheets/style.css b/stylesheets/style.css index aa5d121e..894fa3e4 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -320,11 +320,13 @@ div.pages { border-bottom: 1px solid #B7C5D9; } div.pages.top { - display: inline-block; - padding: 4px 8px; - margin-top: 40px; - float: left; - position: absolute; + display: block; + padding: 5px 8px; + margin-bottom: 5px; + position: fixed; + top: 0; + right: 0; + opacity: 0.9; } div.pages a.selected { color: black; diff --git a/templates/index.html b/templates/index.html index b8c5d1ae..0458ed5a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,15 +8,6 @@ {{ boardlist.top }} - {% if config.page_nav_top %} -
- {% for page in pages %} - [{{ page.num }}]{% if loop.last %} {% endif %} - {% endfor %} - {{ btn.next }} -
- {% endif %} - {% if pm %}
You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

{% endif %} {% if config.url_banner %}{% endif %} @@ -36,6 +27,15 @@ {% include 'post_form.html' %} + {% if config.page_nav_top %} +
+ {% for page in pages %} + [{{ page.num }}]{% if loop.last %} {% endif %} + {% endfor %} + {{ btn.next }} +
+ {% endif %} + {% if config.global_message %}
{{ config.global_message }}
{% endif %}
-- cgit v1.3 From 3714f3707363584a3d97398aef25b9c7240d2b2e Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 16 Sep 2013 15:16:00 +1000 Subject: Don't show shitty top page nav thing on smaller/mobile browsers --- stylesheets/style.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stylesheets') diff --git a/stylesheets/style.css b/stylesheets/style.css index 894fa3e4..ef12a5f5 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -328,6 +328,11 @@ div.pages.top { right: 0; opacity: 0.9; } +@media screen and (max-width: 800px) { + div.pages.top { + display: none !important; + } +} div.pages a.selected { color: black; font-weight: bolder; -- cgit v1.3