luci-theme-bootstrap: set scroll-margin-top for all elements 6296/head
authorLiangbin Lian <jjm2473@gmail.com>
Fri, 17 Mar 2023 08:59:45 +0000 (16:59 +0800)
committerLiangbin Lian <jjm2473@gmail.com>
Fri, 17 Mar 2023 08:59:45 +0000 (16:59 +0800)
so we can use element.scrollIntoView() with fixed header

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css

index ff489b47cce5d1975a692d668729baeba01037de..bf6bc82448c8ff363f68db3c4ac0d1427f0844e3 100644 (file)
  * 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;