Skip to content

Commit

Permalink
Merge pull request #207 from JuliaPluto/pg/toc-print-inline
Browse files Browse the repository at this point in the history
Make TOC inline in print media
  • Loading branch information
pankgeorg authored Apr 21, 2022
2 parents fe98380 + 19d0838 commit 2d90408
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TableOfContents.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### A Pluto.jl notebook ###
# v0.17.7
# v0.19.0

using Markdown
using InteractiveUtils
Expand Down Expand Up @@ -161,6 +161,7 @@ return tocNode

# ╔═╡ 731a4662-c329-42a2-ae71-7954140bb290
const toc_css = """
@media not print {
.plutoui-toc {
--main-bg-color: unset;
Expand Down Expand Up @@ -197,7 +198,7 @@ const toc_css = """
.plutoui-toc.aside.hide {
transform: translateX(calc(100% - 28px));
}
} /* End of Media print query */
.plutoui-toc.aside.hide .open-toc,
.plutoui-toc.aside:not(.hide) .closed-toc,
.plutoui-toc:not(.aside) .closed-toc {
Expand Down

0 comments on commit 2d90408

Please sign in to comment.