diff options
author | Ignat Beresnev <ignat@beresnev.me> | 2021-12-23 12:02:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 12:02:59 +0300 |
commit | 35f53062b10c2db3e536a9153b22a8a87e3f255d (patch) | |
tree | e16c825b0664b2dd7a0e099b75a7a016e2b79d1a /plugins/base/src | |
parent | 9a61f49ac110a3e1e7ecaf6493655b8747d593fa (diff) | |
download | dokka-35f53062b10c2db3e536a9153b22a8a87e3f255d.tar.gz dokka-35f53062b10c2db3e536a9153b22a8a87e3f255d.tar.bz2 dokka-35f53062b10c2db3e536a9153b22a8a87e3f255d.zip |
Add horizontal margin to breadcrumbs delimiter (KT-50296) (#2285)
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 4 | ||||
-rw-r--r-- | plugins/base/src/main/resources/dokka/styles/style.css | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 6b30fc12..8d258461 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -607,7 +607,9 @@ open class HtmlRenderer( if (path.size > 1) { buildNavigationElement(path.first(), page) path.drop(1).forEach { node -> - text("/") + span(classes = "delimiter") { + text("/") + } buildNavigationElement(node, page) } } diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 7ebf675e..1e5c106c 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -146,6 +146,10 @@ html ::-webkit-scrollbar-thumb { overflow-wrap: break-word; } +.breadcrumbs .delimiter { + margin: auto 2px; +} + .tabs-section > .section-tab:first-child, .platform-hinted > .platform-bookmarks-row > .platform-bookmark:first-child { margin-left: 0; |