From eb2b55c834c27c52dc286a4ac917349b970b3f30 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 18 Feb 2021 15:19:59 +0100 Subject: [PATCH] Disable sticky pagination on Firefox mobile as it does not work well --- srv/static/css/genericrendering.css | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/srv/static/css/genericrendering.css b/srv/static/css/genericrendering.css index 4579e38..adee4c9 100644 --- a/srv/static/css/genericrendering.css +++ b/srv/static/css/genericrendering.css @@ -62,7 +62,6 @@ } .pagination { - position: sticky; border-top: 1px solid #999; background-color: white; bottom: 0px; @@ -72,12 +71,10 @@ max-width: 0px; } .pagination a.prev { - position: sticky; margin-left: 0px; left: -1px; } .pagination a.next { - position: sticky; margin-right: 0px; right: 0px; } @@ -108,6 +105,17 @@ padding-right: 0px; border-right: none; } +.pagination, .pagination a.prev, .pagination a.next { + position: sticky; +} +@-moz-document url-prefix() { + /* disable sticky pagination on Firefox mobile as it does not work well */ + @media (pointer:coarse) { + .pagination, .pagination a.prev, .pagination a.next { + position: initial !important; + } + } +} .compact-heading { margin: 0px;