aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
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 {