diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2021-12-22 20:03:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 20:03:17 +0300 |
commit | 9a61f49ac110a3e1e7ecaf6493655b8747d593fa (patch) | |
tree | ddece0a9803009e809939e6e99ad1793aa5659d3 /plugins/base/src/main | |
parent | f7db5033b5bdbbf6ade45b65ca1d6d03893ee8a1 (diff) | |
download | dokka-9a61f49ac110a3e1e7ecaf6493655b8747d593fa.tar.gz dokka-9a61f49ac110a3e1e7ecaf6493655b8747d593fa.tar.bz2 dokka-9a61f49ac110a3e1e7ecaf6493655b8747d593fa.zip |
Fix css bugs wih link and table row (#2284)
* Remove extra top margin in paragraph
* Remove margin-bottom from platform-hinted
* Fix link underlining in table and anchor icon
* Make breakable names of constructors
* Add test for breakable name of constructor
Diffstat (limited to 'plugins/base/src/main')
3 files changed, 7 insertions, 5 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c3b15738..6b30fc12 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -450,7 +450,9 @@ open class HtmlRenderer( it.filter { sourceSetRestriction == null || it.sourceSets.any { s -> s in sourceSetRestriction } } .forEach { span("inline-flex") { - it.build(this, pageContext, sourceSetRestriction) + div { + it.build(this, pageContext, sourceSetRestriction) + } if (it is ContentLink && !anchorDestination.isNullOrBlank()) buildAnchorCopyButton( anchorDestination ) diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index 1b581355..06bc550b 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -261,7 +261,7 @@ open class DefaultPageCreator( needsAnchors = true, extra = PropertyContainer.empty<ContentNode>() + SimpleAttr.header("Constructors") ) { - link(it.name, it.dri, kind = ContentKind.Main) + link(it.name, it.dri, kind = ContentKind.Main, styles = setOf(ContentStyle.RowTitle)) sourceSetDependentHint( it.dri, it.sourceSets.toSet(), diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 4954215f..7ebf675e 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -228,6 +228,7 @@ html ::-webkit-scrollbar-thumb { margin-top: 8px; } +p.paragraph:first-child, .brief p.paragraph { margin-top: 0; } @@ -746,7 +747,6 @@ td.content { } .main-subrow .anchor-icon { - padding: 0 8px; opacity: 0; transition: 0.2s 0.5s; } @@ -765,8 +765,9 @@ td.content { .main-subrow .anchor-wrapper { position: relative; - width: 16px; + width: 24px; height: 16px; + margin-left: 3px; } .inline-flex { @@ -776,7 +777,6 @@ td.content { .platform-hinted { flex: auto; display: block; - margin-bottom: 5px; } .platform-hinted > .platform-bookmarks-row > .platform-bookmark { |