aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-09-08 10:42:07 +0200
committerGitHub <noreply@github.com>2021-09-08 10:42:07 +0200
commit1fefeda2c319c4acad5820c40e96b1dabcf90ae8 (patch)
treebe373d116e895b83e5b5b87ac2f172a946bb4188 /plugins/base
parentab9040a94d5635e18194469cd217282b4d819b9d (diff)
downloaddokka-1fefeda2c319c4acad5820c40e96b1dabcf90ae8.tar.gz
dokka-1fefeda2c319c4acad5820c40e96b1dabcf90ae8.tar.bz2
dokka-1fefeda2c319c4acad5820c40e96b1dabcf90ae8.zip
Fix footer on firefox (#2123)
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt4
-rw-r--r--plugins/base/src/main/resources/dokka/styles/style.css6
2 files changed, 9 insertions, 1 deletions
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;
}