diff options
author | Liangbin Lian <jjm2473@gmail.com> | 2023-03-17 16:59:45 +0800 |
---|---|---|
committer | Liangbin Lian <jjm2473@gmail.com> | 2023-03-17 16:59:45 +0800 |
commit | 7a023b3245ccf6fa78601cf2237e6e41e1a3da95 (patch) | |
tree | 614fc49a5728c13e09a9af46b442baf9f26fac01 /themes/luci-theme-bootstrap | |
parent | 51db83ce3c28c8140e1a87ff1006b462d4a08783 (diff) |
luci-theme-bootstrap: set scroll-margin-top for all elements
so we can use element.scrollIntoView() with fixed header
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
Diffstat (limited to 'themes/luci-theme-bootstrap')
-rw-r--r-- | themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css | 4 |
1 files changed, 4 insertions, 0 deletions
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; |