Skip to content

Commit

Permalink
Use class instead of id for styling the builtin path nav
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Jun 2, 2024
1 parent 26c96da commit c60c62d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions profiles/website/input/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,28 +247,20 @@ footer > div {
font-size: 0.8em;
}

#-path-nav {
.path-nav {
margin: 0;
padding: 0;
display: inline;
}

#-path-nav > a:after {
.path-nav > a:after {
content: " \00a0\003e\00a0\00a0 ";
}

#-path-nav > a:last-child:after {
.path-nav > a:last-child:after {
content: none;
}

#-global-nav {
float: right;
}

#-global-nav {
float: right;
}

@media screen and (max-width: 720px) {
.two-column,
.three-column,
Expand Down
2 changes: 1 addition & 1 deletion python/transom/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def path_nav(self, start=None, end=None):
files = reversed(list(self.ancestors))
links = [f"<a href=\"{x.url}\">{x.title}</a>" for x in files]

return f"<nav id=\"-path-nav\">{''.join(links)}</nav>"
return f"<nav class=\"path-nav\">{''.join(links)}</nav>"

def _convert_content(self, content):
return content
Expand Down

0 comments on commit c60c62d

Please sign in to comment.