From 7a023b3245ccf6fa78601cf2237e6e41e1a3da95 Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Fri, 17 Mar 2023 16:59:45 +0800 Subject: [PATCH] luci-theme-bootstrap: set scroll-margin-top for all elements so we can use element.scrollIntoView() with fixed header Signed-off-by: Liangbin Lian --- .../htdocs/luci-static/bootstrap/cascade.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index ff489b47cc..bf6bc82448 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -154,6 +154,10 @@ * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc). * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ +* { + scroll-margin-top: 40px; +} + *, *::before, *::after { margin: 0; padding: 0; -- 2.30.2