aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat@beresnev.me>2021-12-23 12:02:59 +0300
committerGitHub <noreply@github.com>2021-12-23 12:02:59 +0300
commit35f53062b10c2db3e536a9153b22a8a87e3f255d (patch)
treee16c825b0664b2dd7a0e099b75a7a016e2b79d1a /plugins/base/src
parent9a61f49ac110a3e1e7ecaf6493655b8747d593fa (diff)
downloaddokka-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.kt4
-rw-r--r--plugins/base/src/main/resources/dokka/styles/style.css4
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;