diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-09-16 20:26:47 +0300 |
---|---|---|
committer | vmishenev <vad-mishenev@yandex.ru> | 2021-09-20 16:39:29 +0300 |
commit | 8efe04e127e3bf0aef395b31f3f3d9f49a0afe26 (patch) | |
tree | 4a910f37ce7bc6f8bcbff27a2e743cf97f1f8325 /plugins/base/src | |
parent | e6dd88c0cce8d61aeed19b4f49c7cca3d95b72b1 (diff) | |
download | dokka-8efe04e127e3bf0aef395b31f3f3d9f49a0afe26.tar.gz dokka-8efe04e127e3bf0aef395b31f3f3d9f49a0afe26.tar.bz2 dokka-8efe04e127e3bf0aef395b31f3f3d9f49a0afe26.zip |
Bring back logo
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | 3 | ||||
-rw-r--r-- | plugins/base/src/main/resources/dokka/styles/logo-styles.css | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt index 347e16bf..665ae730 100644 --- a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt +++ b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt @@ -106,7 +106,8 @@ class StylesInstaller(private val dokkaContext: DokkaContext) : PageTransformer "styles/style.css", "styles/jetbrains-mono.css", "styles/main.css", - "styles/prism.css" + "styles/prism.css", + "styles/logo-styles.css" ) override fun invoke(input: RootPageNode): RootPageNode = diff --git a/plugins/base/src/main/resources/dokka/styles/logo-styles.css b/plugins/base/src/main/resources/dokka/styles/logo-styles.css new file mode 100644 index 00000000..25de3f61 --- /dev/null +++ b/plugins/base/src/main/resources/dokka/styles/logo-styles.css @@ -0,0 +1,15 @@ +.library-name a { + position: relative; + margin-left: 55px; +} + +.library-name a::before { + content: ''; + background: url("../images/logo-icon.svg") center no-repeat; + background-size: contain; + position: absolute; + width: 50px; + height: 50px; + top: -18px; + left: -55px; +}
\ No newline at end of file |