diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-18 03:05:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 15:05:19 -0400 |
commit | 1ab16e48cccc086e7f97fb3ae8a293fe47a3a452 (patch) | |
tree | 24f19185b5606ea605f5d74d6369dbfd4dc2d189 /web_src | |
parent | f045e58cc7ba076a0ac4b0b5bf0702fa155eaa59 (diff) | |
download | gitea-1ab16e48cccc086e7f97fb3ae8a293fe47a3a452.tar.gz gitea-1ab16e48cccc086e7f97fb3ae8a293fe47a3a452.zip |
Improve Wiki TOC (#24137)
The old code has a lot of technical debts, eg: `repo/wiki/view.tmpl` /
`Iterate`
This PR improves the Wiki TOC display and improves the code.
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/repository.css | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/web_src/css/repository.css b/web_src/css/repository.css index 5c90385628..05e50548d9 100644 --- a/web_src/css/repository.css +++ b/web_src/css/repository.css @@ -3261,14 +3261,15 @@ td.blob-excerpt { display: none; } -.wiki-content-toc > ul > li { - margin-bottom: 4px; -} - .wiki-content-toc ul { margin: 0; list-style: none; - padding-left: 1em; + padding: 5px 0 5px 1em; +} + +.wiki-content-toc ul ul { + border-left: 1px var(--color-secondary); + border-left-style: dashed; } /* fomantic's last-child selector does not work with hidden last child */ |