aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrr-2016-08-28 23:20:25 +0200
committerrr-2016-08-28 23:40:28 +0200
commitdfc65e5a7cfc1f8c562a8210533f33b002cdb313 (patch)
tree0eb375c8fb932112c080c47264b5e239dcc52d7c
parent5a152dbc0c7b9d191db255b9ca05f31130168570 (diff)
client/general: add < > vim navigation hints
For example, in Vimperator, one now can navigate to previous/next page or post by pressing f< or f>.
-rw-r--r--client/css/pager.styl7
-rw-r--r--client/html/manual_pager_nav.tpl4
-rw-r--r--client/html/post.tpl4
3 files changed, 4 insertions, 11 deletions
diff --git a/client/css/pager.styl b/client/css/pager.styl
index 9ce9757..df35f3e 100644
--- a/client/css/pager.styl
+++ b/client/css/pager.styl
@@ -4,13 +4,6 @@
nav
.disabled
opacity: .5
- .prev span,
- .next span
- opacity: 0
- position: absolute
- display: block
- width: 0
- height: 0
.page
position: relative
diff --git a/client/html/manual_pager_nav.tpl b/client/html/manual_pager_nav.tpl
index 954a8b7..d47df14 100644
--- a/client/html/manual_pager_nav.tpl
+++ b/client/html/manual_pager_nav.tpl
@@ -7,7 +7,7 @@
<a class='prev disabled'>
<% } %>
<i class='fa fa-chevron-left'></i>
- <span>Previous page</span>
+ <span class='vim-nav-hint'>&lt; Previous page</span>
</a>
</li>
@@ -32,7 +32,7 @@
<a class='next disabled'>
<% } %>
<i class='fa fa-chevron-right'></i>
- <span>Next page</span>
+ <span class='vim-nav-hint'>Next page &gt;</span>
</a>
</li>
</ul>
diff --git a/client/html/post.tpl b/client/html/post.tpl
index 594611c..a1f7518 100644
--- a/client/html/post.tpl
+++ b/client/html/post.tpl
@@ -12,7 +12,7 @@
<a class='inactive'>
<% } %>
<i class='fa fa-chevron-left'></i>
- <span class='vim-nav-hint'>Next post</span>
+ <span class='vim-nav-hint'>&lt; Next post</span>
</a>
</article>
<article class='previous-post'>
@@ -26,7 +26,7 @@
<a class='inactive'>
<% } %>
<i class='fa fa-chevron-right'></i>
- <span class='vim-nav-hint'>Previous post</span>
+ <span class='vim-nav-hint'>Previous post &gt;</span>
</a>
</article>
<article class='edit-post'>

© 2015 - 2026 Jakob L. Kreuze