From 380381d87a8e9ee01eb17180a45799c74ec3dcbc Mon Sep 17 00:00:00 2001 From: vmishenev Date: Wed, 22 Dec 2021 01:41:45 +0300 Subject: [PATCH] Fix link underlining in table and anchor icon --- .../kotlin/renderers/html/HtmlRenderer.kt | 10 ++++------ .../src/main/resources/dokka/styles/style.css | 20 +++---------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c3b157380f2..b1201c3ec8b 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -449,12 +449,10 @@ open class HtmlRenderer( div(classes) { it.filter { sourceSetRestriction == null || it.sourceSets.any { s -> s in sourceSetRestriction } } .forEach { - span("inline-flex") { - it.build(this, pageContext, sourceSetRestriction) - if (it is ContentLink && !anchorDestination.isNullOrBlank()) buildAnchorCopyButton( - anchorDestination - ) - } + it.build(this, pageContext, sourceSetRestriction) + if (it is ContentLink && !anchorDestination.isNullOrBlank()) buildAnchorCopyButton( + anchorDestination + ) } } } diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 9b8a3aa9c3f..11b9d4a4045 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -729,27 +729,17 @@ td.content { flex-direction: column; } -.main-subrow { - display: flex; - flex-direction: row; - padding: 0; - flex-wrap: wrap; -} - -.main-subrow > div > span { - display: flex; - position: relative; -} - .main-subrow:hover .anchor-icon { opacity: 1; transition: 0.2s; } .main-subrow .anchor-icon { - padding: 0 8px; + padding-left: 8px; opacity: 0; transition: 0.2s 0.5s; + top: 4px; + position: relative; } .main-subrow .anchor-icon::before { @@ -770,10 +760,6 @@ td.content { height: 16px; } -.inline-flex { - display: inline-flex; -} - .platform-hinted { flex: auto; display: block;