diff --git a/com.woltlab.wcf/templates/shared_messageTableOfContents.tpl b/com.woltlab.wcf/templates/shared_messageTableOfContents.tpl index be859f23d8..63954a1594 100644 --- a/com.woltlab.wcf/templates/shared_messageTableOfContents.tpl +++ b/com.woltlab.wcf/templates/shared_messageTableOfContents.tpl @@ -1,38 +1,47 @@ -
-
-
- {lang}wcf.message.toc{/lang} - [{lang}wcf.message.toc.hide{/lang}{lang}wcf.message.toc.show{/lang}] +
+
-
- + +
diff --git a/wcfsetup/install/files/style/ui/toc.scss b/wcfsetup/install/files/style/ui/toc.scss index c1cced31cc..43e95e6663 100644 --- a/wcfsetup/install/files/style/ui/toc.scss +++ b/wcfsetup/install/files/style/ui/toc.scss @@ -1,72 +1,57 @@ -.tableOfContentsContainer { +.tableOfContents__container { border: 1px solid var(--wcfContentBorderInner); /* The list numbers extend into the horizontal padding, 10px is not enough for double digit numbers. */ - padding: 10px 20px; - - &.open .jsTableOfContentsShow { - display: none; - } + padding: 20px; +} - &:not(.open) { - .jsTableOfContentsHide, - .tableOfContents { - display: none; - } +@include screen-sm-down { + .tableOfContents__container { + padding: 10px 20px; } } @include screen-md-up { - .tableOfContentsWrapper { + .tableOfContents__wrapper { float: right; margin: 0 0 10px 10px; max-width: 50%; } - .htmlContent > .tableOfContentsWrapper + * { + .htmlContent > .tableOfContents__wrapper + * { margin-top: 0 !important; } } -@include screen-sm-down { - .tableOfContentsWrapper { - margin-bottom: 10px; +@include screen-lg { + .tableOfContents__wrapper { + max-width: 40%; } +} - .tableOfContentsContainer { - display: inline-block; - - &.mobileForceHide { - .jsTableOfContentsShow { - display: initial !important; - } - - .jsTableOfContentsHide, - .tableOfContents { - display: none; - } - } +@include screen-sm-down { + .tableOfContents__wrapper { + margin-bottom: 10px; } } -.tableOfContentsHeader { - text-align: center; +.tableOfContents__header { + align-items: center; + display: flex; + gap: 10px; + justify-content: center; } -.tableOfContentsTitle { +h2.tableOfContents__title { + @include wcfFontHeadline; @include wcfFontBold; + + margin: 0; } .htmlContent, .messageBody > .messageText { .tableOfContents { margin-left: 15px; - - &.tocLevel2 { - list-style-type: lower-alpha; - } - - &.tocLevel3 { - list-style-type: lower-roman; - } + margin-bottom: 0; } } diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index f0910fb08a..405fc14e89 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4287,9 +4287,9 @@ Allowed extensions: gif, jpg, jpeg, png, webp]]> - - - + + +