Skip to content

Commit 60feed1

Browse files
authored
Merge pull request #115 from Xpirix/sustaining_members_anchor_link
Hide sustaining member anchor
2 parents 3f78366 + a7ff729 commit 60feed1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

qgis-app/plugins/tasks/get_sustaining_members.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ def get_sustaining_members():
2222
section = soup.select_one('section.section')
2323

2424
if section:
25+
html_content = section.prettify().replace("¶", "¶")
2526
template_path = os.path.join(settings.SITE_ROOT, 'templates/flatpages/sustaining_members.html')
2627
with open(template_path, 'w') as f:
27-
f.write(section.prettify())
28+
f.write(html_content)
2829
logger.info(f"get_sustaining_members: Section saved to {template_path}")
2930
else:
3031
logger.info("get_sustaining_members: Section not found")

qgis-app/static/style/scss/style.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
@import "custom.bulma.scss";
44
@import "sustaining_members.scss";
55

6+
7+
html {
8+
scroll-padding-top: 120px; /* height of your fixed header */
9+
}
10+
611
body {
712
color: $text-primary1;
813
font-weight: 300;
@@ -332,4 +337,17 @@ a.is-active > span {
332337
}
333338
.choices__list--dropdown, .choices__list[aria-expanded] {
334339
z-index: 10 !important;
340+
}
341+
342+
a.heading-anchor {
343+
visibility: hidden;
344+
}
345+
346+
h1:hover > a.heading-anchor,
347+
h2:hover > a.heading-anchor,
348+
h3:hover > a.heading-anchor,
349+
h4:hover > a.heading-anchor,
350+
h5:hover > a.heading-anchor,
351+
h6:hover > a.heading-anchor {
352+
visibility: visible;
335353
}

0 commit comments

Comments
 (0)