Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zu headings wurden permalink hinzugefügt. #497

Merged
merged 2 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions sipa/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,26 @@
'sipa.utils.bootstraped_tables',
'sipa.utils.link_patch',
'meta',
'attr_list'
'attr_list',
'toc'
]
FLATPAGES_EXTENSION_CONFIGS = {
'sane_lists': {},
'sipa.utils.bootstraped_tables': {},
'sipa.utils.link_patch': {},
'meta': {},
'attr_list': {},
"sane_lists": {},
"sipa.utils.bootstraped_tables": {},
"sipa.utils.link_patch": {},
"meta": {},
"attr_list": {},
"toc": {
"permalink": "#",
"permalink_class": " ".join(
[
"headerlink",
"ms-2",
"link-secondary",
"link-opacity-75",
]
),
},
}

# Mail configuration
Expand Down
16 changes: 16 additions & 0 deletions sipa/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ a:not([class]):hover {
text-decoration: underline;
}

.headerlink {
color: var(--bs-secondary-color);
text-decoration: none;
display: none;
}

.headerlink:hover {
color: var(--bs-heading-color);
}

:is(h2, h3, h4, h5, h6):hover .headerlink {
display: inline;
}



@media (min-width: 768px) {
.pg-header {
display: block;
Expand Down
Loading