From 1fefeda2c319c4acad5820c40e96b1dabcf90ae8 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Wed, 8 Sep 2021 10:42:07 +0200 Subject: Fix footer on firefox (#2123) --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 4 +++- plugins/base/src/main/resources/dokka/styles/style.css | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/base') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index a6c7e326..951f0973 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -853,7 +853,9 @@ open class HtmlRenderer( content() div(classes = "footer") { span("go-to-top-icon") { - a(href = "#content") + a(href = "#content"){ + id = "go-to-top-link" + } } span { configuration?.footerMessage?.takeIf { it.isNotEmpty() } diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 5008d0ba..d68b495a 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -497,6 +497,7 @@ body, table { font-size: var(--default-font-size); line-height: 24px; margin: 0; + height: 100%; } table { @@ -1003,6 +1004,11 @@ td.content { color: var(--breadcrumb-font-color); } +.footer span.go-to-top-icon > #go-to-top-link { + padding: 0; + border: none; +} + .footer .padded-icon { padding-left: 0.5em; } -- cgit