Skip to content

Commit

Permalink
Fix link underlining in table and anchor icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Dec 21, 2021
1 parent 825beed commit 380381d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
10 changes: 4 additions & 6 deletions plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
}
Expand Down
20 changes: 3 additions & 17 deletions plugins/base/src/main/resources/dokka/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -770,10 +760,6 @@ td.content {
height: 16px;
}

.inline-flex {
display: inline-flex;
}

.platform-hinted {
flex: auto;
display: block;
Expand Down

0 comments on commit 380381d

Please sign in to comment.