🐛 Fix table of contents border missing

Fixes: #794
pull/805/merge
James Panther 2024-03-09 15:34:56 +11:00
parent 088c913f67
commit 33d34eea0f
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 7 additions and 26 deletions

View File

@ -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))

View File

@ -2221,6 +2221,10 @@ code {
border-width: 1px;
}
.border-s {
border-inline-start-width: 1px;
}
.border-t {
border-top-width: 1px;
}
@ -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;
}
@ -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;
}
@ -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;

View File

@ -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>