aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-03-11 13:05:14 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2020-03-11 13:10:16 +0100
commit5636115aee8d13870f0d3f172667fca1b3f78276 (patch)
treea7b3621bf88ee298887e57dcbcd039f5df1f34cd /core
parent11b223daa2c54d2b86efb5e6054fd7205ed0b37a (diff)
downloaddokka-5636115aee8d13870f0d3f172667fca1b3f78276.tar.gz
dokka-5636115aee8d13870f0d3f172667fca1b3f78276.tar.bz2
dokka-5636115aee8d13870f0d3f172667fca1b3f78276.zip
Classlike header and other ui fixes
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt9
-rw-r--r--core/src/main/resources/dokka/styles/style.css5
2 files changed, 13 insertions, 1 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt
index 2e14dfb9..6a8ad3b3 100644
--- a/core/src/main/kotlin/pages/ContentNodes.kt
+++ b/core/src/main/kotlin/pages/ContentNodes.kt
@@ -25,6 +25,15 @@ data class ContentText(
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = copy(extra = newExtras)
}
+data class ContentBreakLine(
+ override val dci: DCI,
+ override val platforms: Set<PlatformData>,
+ override val style: Set<Style> = emptySet(),
+ override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()
+): ContentNode {
+ override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = copy(extra = newExtras)
+}
+
/** Headers */
data class ContentHeader(
override val children: List<ContentNode>,
diff --git a/core/src/main/resources/dokka/styles/style.css b/core/src/main/resources/dokka/styles/style.css
index 4a76dd96..9aa2eb10 100644
--- a/core/src/main/resources/dokka/styles/style.css
+++ b/core/src/main/resources/dokka/styles/style.css
@@ -41,6 +41,10 @@
pointer-events: all;
}
+.code {
+ font-family: sans-serif;
+}
+
.sideMenuPart > .navButton {
margin-left:0.25em
}
@@ -99,7 +103,6 @@ td:first-child {
h1, h2, h3, h4, h5, h6 {
color:#222;
- margin:0 0 20px;
}
p, ul, ol, table, pre, dl {