You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2021/02/25 20:46:30 UTC
[lucene-site] branch main/solr updated: Avoid news title being
hidden by header when navigating with anchor
This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch main/solr
in repository https://gitbox.apache.org/repos/asf/lucene-site.git
The following commit(s) were added to refs/heads/main/solr by this push:
new 3fcdaf0 Avoid news title being hidden by header when navigating with anchor
3fcdaf0 is described below
commit 3fcdaf087d21df3680089978f622a1c17b7490f1
Author: Jan Høydahl <ja...@cominvent.com>
AuthorDate: Thu Feb 25 21:46:14 2021 +0100
Avoid news title being hidden by header when navigating with anchor
---
themes/solr/templates/news.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/themes/solr/templates/news.html b/themes/solr/templates/news.html
index e743cbd..0c95308 100644
--- a/themes/solr/templates/news.html
+++ b/themes/solr/templates/news.html
@@ -13,6 +13,10 @@
h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, dt:hover > .elementid-permalink {
visibility: visible;
}
+ html {
+ --top-spacing: 70px;
+ scroll-padding-top: var(--top-spacing);
+ }
</style>
<h1 id="solr-news">Solr<sup>™</sup> News<a class="headerlink" href="#solr-news" title="Permanent link">¶</a></h1>
{{page.content}}