Skip to content

Commit

Permalink
🐛 Fix table of contents border missing
Browse files Browse the repository at this point in the history
Fixes: #794
  • Loading branch information
jpanther committed Mar 9, 2024
1 parent 088c913 commit 33d34ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Fixed

- Table of Contents missing left border detail ([#794](https://github.com/jpanther/congo/issues/794))
- `x-twitter` option missing when using sharing links ([#809](https://github.com/jpanther/congo/issues/809))
- Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807))
- Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813))
Expand Down
28 changes: 4 additions & 24 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,10 @@ code {
border-width: 1px;
}

.border-s {
border-inline-start-width: 1px;
}

.border-t {
border-top-width: 1px;
}
Expand Down Expand Up @@ -3093,10 +3097,6 @@ code {
right: 0px;
}

.ltr\:-ml-5:where([dir="ltr"], [dir="ltr"] *) {
margin-left: -1.25rem;
}

.ltr\:block:where([dir="ltr"], [dir="ltr"] *) {
display: block;
}
Expand All @@ -3109,22 +3109,10 @@ code {
display: none;
}

.ltr\:border-l:where([dir="ltr"], [dir="ltr"] *) {
border-left-width: 1px;
}

.ltr\:pl-5:where([dir="ltr"], [dir="ltr"] *) {
padding-left: 1.25rem;
}

.rtl\:left-0:where([dir="rtl"], [dir="rtl"] *) {
left: 0px;
}

.rtl\:-mr-5:where([dir="rtl"], [dir="rtl"] *) {
margin-right: -1.25rem;
}

.rtl\:block:where([dir="rtl"], [dir="rtl"] *) {
display: block;
}
Expand All @@ -3137,14 +3125,6 @@ code {
display: none;
}

.rtl\:border-r:where([dir="rtl"], [dir="rtl"] *) {
border-right-width: 1px;
}

.rtl\:pr-5:where([dir="rtl"], [dir="rtl"] *) {
padding-right: 1.25rem;
}

@media print {
.print\:hidden {
display: none;
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/toc.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<details open class="-ms-5 mt-0 overflow-hidden rounded-lg ps-5">
<summary
class="-ms-5 block cursor-pointer bg-neutral-100 py-1 ps-5 text-lg font-semibold text-neutral-800 lg:hidden dark:bg-neutral-700 dark:text-neutral-100"
class="block cursor-pointer bg-neutral-100 py-1 ps-5 text-lg font-semibold text-neutral-800 dark:bg-neutral-700 dark:text-neutral-100 lg:hidden"
>
{{ i18n "article.table_of_contents" }}
</summary>
<div class="-ms-5 border-s border-dotted border-neutral-300 py-2 ps-5 dark:border-neutral-600">
<div class="border-s border-dotted border-neutral-300 py-2 ps-5 dark:border-neutral-600">
{{ .TableOfContents | emojify }}
</div>
</details>

0 comments on commit 33d34ee

Please sign in to comment.