aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-03-11 15:23:41 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2020-03-11 16:19:43 +0100
commitf48bffb05efcfd03cf72189ab13472c196f2a948 (patch)
tree79e10d919cf8485b37bff9c5ce4a753577e043c0 /core/src
parent356be7009f857032f87bf0e5943cdef7f1438f65 (diff)
downloaddokka-f48bffb05efcfd03cf72189ab13472c196f2a948.tar.gz
dokka-f48bffb05efcfd03cf72189ab13472c196f2a948.tar.bz2
dokka-f48bffb05efcfd03cf72189ab13472c196f2a948.zip
Fixing signatures font, incorrect links and line breaking
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt6
-rw-r--r--core/src/main/resources/dokka/styles/style.css4
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt
index 414fac4a..eeefc3b9 100644
--- a/core/src/main/kotlin/pages/ContentNodes.kt
+++ b/core/src/main/kotlin/pages/ContentNodes.kt
@@ -26,8 +26,8 @@ data class ContentText(
}
data class ContentBreakLine(
- override val dci: DCI,
override val platforms: Set<PlatformData>,
+ override val dci: DCI = DCI(emptySet(), ContentKind.Empty),
override val style: Set<Style> = emptySet(),
override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()
): ContentNode {
@@ -167,11 +167,11 @@ interface Style
interface Kind
enum class ContentKind : Kind {
- Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment
+ Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment, Empty
}
enum class TextStyle : Style {
- Bold, Italic, Strong, Strikethrough, Paragraph, Block
+ Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace
}
fun ContentNode.dfs(predicate: (ContentNode) -> Boolean): ContentNode? = if (predicate(this)) {
diff --git a/core/src/main/resources/dokka/styles/style.css b/core/src/main/resources/dokka/styles/style.css
index 5284364b..b7c3f58b 100644
--- a/core/src/main/resources/dokka/styles/style.css
+++ b/core/src/main/resources/dokka/styles/style.css
@@ -40,9 +40,9 @@
float: right;
pointer-events: all;
}
-
+.monospace,
.code {
- font-family: sans-serif;
+ font-family: monospace;
}
.sideMenuPart > .navButton {