Skip to content

Commit

Permalink
Minor styling improvements
Browse files Browse the repository at this point in the history
The hash is lightly deemphasized and appears only on hover.
  • Loading branch information
lukasjuhrich committed Apr 28, 2024
1 parent a644a5f commit e5fa2f6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
24 changes: 16 additions & 8 deletions sipa/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@
'toc'
]
FLATPAGES_EXTENSION_CONFIGS = {
'sane_lists': {},
'sipa.utils.bootstraped_tables': {},
'sipa.utils.link_patch': {},
'meta': {},
'attr_list': {},
'toc': {
'permalink': " #"
}
"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
6 changes: 5 additions & 1 deletion sipa/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ a:not([class]):hover {
.headerlink {
color: var(--bs-secondary-color);
text-decoration: none;
display: none;
}

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

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


Expand Down

0 comments on commit e5fa2f6

Please sign in to comment.