Skip to content

Commit

Permalink
show the roam() navbar even when it's in the pagesjs mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 16, 2025
1 parent 4ab347b commit 24dcbe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inst/resources/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ hr, .footnotes::before { border: 1px dashed #ddd; }
.frontmatter { text-align: center; }
#TOC {
a { text-decoration: none; }
& > ul { padding: 0; }
ul { list-style: none; padding-left: 1em; }
& > ul { padding: 0; }
ul ul { border-left: 1px solid lightsteelblue; }
}
table:not([class]), .body h2 { border-bottom: 1px solid #666; }
Expand Down
5 changes: 5 additions & 0 deletions inst/resources/server.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ td .pencil {
cursor: wait;
opacity: .5;
}
@media screen {
.pagesjs .nav-path {
display: block;
}
}
@media print {
.nav-path, .auto-numbers span[data-line-number] {
display: none;
Expand Down

0 comments on commit 24dcbe6

Please sign in to comment.