From a0d13e4081ca0e88e86953f583d64717b2264ac1 Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 14 Dec 2021 22:51:06 +0100 Subject: [PATCH] Top pagination and new bill button are sticky (#956) --- ihatemoney/static/css/main.css | 15 +++++++-------- ihatemoney/templates/list_bills.html | 21 +++------------------ 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index 5964c50a..4c61fbea 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -283,14 +283,6 @@ footer .footer-left { } } -#new-bill { - margin-top: 30px; -} - -#pagination-top { - margin-top: 30px; -} - /* Avoid text color flickering when it loose focus as the modal appears */ .btn-primary[data-toggle="modal"] { color: #fff; @@ -334,6 +326,13 @@ footer .footer-left { flex-basis: auto; } +#bill-toolbar { + position: sticky; + top: 4em; + z-index: 1; + background-color: rgba(255, 255, 255, 0.75); +} + @media (min-width: 768px) { .split_bills, #table_overflow.statistics { diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 5ef22736..dda16f2e 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -76,9 +76,9 @@ -
+
{% if bills.pages > 1 %} -