Skip to content

Commit

Permalink
resolves asciidoctor#4523 remove extra border below doctitle when sid…
Browse files Browse the repository at this point in the history
…ebar toc is collapsed into main content area
  • Loading branch information
mojavelinux committed Dec 2, 2023
1 parent 45a8c31 commit 7f79339
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Bug Fixes::
* Style cells in head row as bold in manpage output (#4490)
* Escape spaces in include target (using inline passthrough) when generating link from include directive (#4461)
* Honor secondary and tertiary terms on `indexterm` macro when primary term is quoted and contains an equals sign (#3652)
* Remove extra border below doctitle when sidebar toc is collapsed into main content area (#4523)

== 2.0.20 (2023-05-18) - @mojavelinux

Expand Down
3 changes: 2 additions & 1 deletion data/stylesheets/asciidoctor-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ body>div[id]::before,body>div[id]::after,#content #footnotes::before{content:"";
#content::before{content:none}
#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px}
#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}
#header .details span:first-child{margin-left:-.125em}
#header .details span.email a{color:rgba(0,0,0,.85)}
Expand All @@ -125,6 +125,7 @@ body>div[id]::before,body>div[id]::after,#content #footnotes::before{content:"";
#toctitle{color:#7a2518;font-size:1.2em}
@media screen and (min-width:768px){#toctitle{font-size:1.375em}
body.toc2{padding-left:15em;padding-right:0}
body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
#toc.toc2>ul{font-size:.9em;margin-bottom:0}
Expand Down
8 changes: 6 additions & 2 deletions src/stylesheets/asciidoctor.css
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,7 @@ body > div[id]::after,
border-top: 1px solid #dddddf;
}

#header > h1:only-child,
body.toc2 #header > h1:nth-last-child(2) {
#header > h1:only-child {
border-bottom: 1px solid #dddddf;
padding-bottom: 8px;
}
Expand Down Expand Up @@ -747,6 +746,11 @@ body.toc2 #header > h1:nth-last-child(2) {
padding-right: 0;
}

body.toc2 #header > h1:nth-last-child(2) {
border-bottom: 1px solid #dddddf;
padding-bottom: 8px;
}

#toc.toc2 {
margin-top: 0 !important;
background: #f8f8f7;
Expand Down

0 comments on commit 7f79339

Please sign in to comment.