diff options
| author | rr- | 2016-08-28 23:20:25 +0200 |
|---|---|---|
| committer | rr- | 2016-08-28 23:40:28 +0200 |
| commit | dfc65e5a7cfc1f8c562a8210533f33b002cdb313 (patch) | |
| tree | 0eb375c8fb932112c080c47264b5e239dcc52d7c | |
| parent | 5a152dbc0c7b9d191db255b9ca05f31130168570 (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.styl | 7 | ||||
| -rw-r--r-- | client/html/manual_pager_nav.tpl | 4 | ||||
| -rw-r--r-- | client/html/post.tpl | 4 |
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'>< 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 ></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'>< 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 ></span> </a> </article> <article class='edit-post'> |