From 8efe04e127e3bf0aef395b31f3f3d9f49a0afe26 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Thu, 16 Sep 2021 20:26:47 +0300 Subject: Bring back logo --- .../src/main/kotlin/renderers/html/htmlPreprocessors.kt | 3 ++- .../base/src/main/resources/dokka/styles/logo-styles.css | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 plugins/base/src/main/resources/dokka/styles/logo-styles.css (limited to 'plugins/base/src') 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 -- cgit