Skip to content

Commit

Permalink
Add horizontal margin to breadcrumbs delimiter (KT-50296) (Kotlin#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev authored and owengray-google committed Dec 29, 2021
1 parent 91d3b51 commit afd8536
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
Expand Up @@ -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)
}
}
Expand Down
4 changes: 4 additions & 0 deletions plugins/base/src/main/resources/dokka/styles/style.css
Expand Up @@ -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;
Expand Down

0 comments on commit afd8536

Please sign in to comment.