Skip to content

Commit 99dfd5d

Browse files
committed
feat: reworked footer
1 parent 2b63314 commit 99dfd5d

File tree

12 files changed

+109
-8
lines changed

12 files changed

+109
-8
lines changed
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
import './styles.scss';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*!
2+
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
@import '../_tokens/index';
5+
6+
.footer {
7+
&--button_go-to-top {
8+
background-image: url('../_assets/go-to-top-icon.svg');
9+
}
10+
}

dokka-subprojects/plugin-base-frontend/src/main/ui-kit/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as button from './button/index';
55
import * as checkbox from './checkbox/index';
66
import * as dropdown from './dropdown/index';
77
import * as filterSection from './filter-section/index';
8+
import * as footer from './footer/index';
89
import * as icon from './icon/index';
910
import * as libraryName from './library-name/index';
1011
import * as libraryVersion from './library-version/index';
@@ -23,6 +24,7 @@ export {
2324
checkbox,
2425
dropdown,
2526
filterSection,
27+
footer,
2628
icon,
2729
libraryName,
2830
libraryVersion,

dokka-subprojects/plugin-base-frontend/src/main/ui-kit/navbar-button/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,7 @@
8585

8686
background-image: url('../_assets/burger.svg');
8787
}
88+
89+
.navigation-controls--btn_go-to-top {
90+
background-image: url('../_assets/go-to-top-icon.svg');
91+
}

dokka-subprojects/plugin-base/src/main/kotlin/org/jetbrains/dokka/base/renderers/html/htmlPreprocessors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public object AssetsInstaller : PageTransformer {
116116
"ui-kit/assets/class-kotlin.svg",
117117
"ui-kit/assets/class.svg",
118118
"ui-kit/assets/cross.svg",
119+
"ui-kit/assets/go-to-top-icon.svg",
119120
"ui-kit/assets/enum-kotlin.svg",
120121
"ui-kit/assets/enum.svg",
121122
"ui-kit/assets/exception-class.svg",
@@ -136,7 +137,6 @@ public object AssetsInstaller : PageTransformer {
136137
"images/copy-icon.svg",
137138
"images/copy-successful-icon.svg",
138139
"images/footer-go-to-link.svg",
139-
"images/go-to-top-icon.svg",
140140
"images/logo-icon.svg",
141141
)
142142

dokka-subprojects/plugin-base/src/main/resources/dokka/images/go-to-top-icon.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

dokka-subprojects/plugin-base/src/main/resources/dokka/templates/includes/footer.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<#macro display>
22
<div class="footer">
3-
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>
3+
<a href="#content" id="go-to-top-link" class="navigation-controls--btn navigation-controls--btn_go-to-top"></a>
44
<span>${footerMessage}</span>
55
<span class="pull-right">
66
<span>Generated by </span>
Lines changed: 4 additions & 0 deletions
Loading

dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.css

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,78 @@
750750
--rotate-transition:transform 200ms ease-in-out;
751751
}
752752

753+
.footer--button_go-to-top {
754+
background-image: url(assets/go-to-top-icon.svg);
755+
}
756+
:root {
757+
--breakpoint-desktop-min:900px;
758+
--breakpoint-tablet-max:899px;
759+
--breakpoint-tablet-min:440px;
760+
--breakpoint-mobile-max:439px;
761+
--breakpoint-mobile-min:360px;
762+
--color-key-blue:#307fff;
763+
--color-key-blue-50:rgba(48,127,255,.5);
764+
--color-background-nav:#27282c;
765+
--color-background-nav-dt:#323237;
766+
--color-background-page:#fff;
767+
--color-background-page-dt:#262628;
768+
--color-background-footer:#ebebeb;
769+
--color-background-footer-dt:#323237;
770+
--color-text:#000;
771+
--color-text-dt:hsla(0,0%,100%,.96);
772+
--color-text-light:rgba(0,0,0,.7);
773+
--color-text-light-dt:hsla(0,0%,100%,.7);
774+
--color-w05:hsla(0,0%,100%,.05);
775+
--color-w08:hsla(0,0%,100%,.08);
776+
--color-w10:hsla(0,0%,100%,.1);
777+
--color-w16:hsla(0,0%,100%,.16);
778+
--color-w50:hsla(0,0%,100%,.5);
779+
--color-w70:hsla(0,0%,100%,.7);
780+
--color-w80:hsla(0,0%,100%,.8);
781+
--color-w100:#fff;
782+
--color-b05:rgba(0,0,0,.05);
783+
--color-b08:rgba(0,0,0,.08);
784+
--color-b20:rgba(0,0,0,.2);
785+
--color-b50:rgba(0,0,0,.5);
786+
--color-b70:rgba(0,0,0,.7);
787+
--color-cd-punctuation:#999;
788+
--color-cd-keyword:#0033b3;
789+
--color-cd-keyword-alternative:#cc7832;
790+
--color-cd-builtin:#067d17;
791+
--color-cd-builtin-alternative:#e7bf6a;
792+
--color-cd-function:#00627a;
793+
--color-cd-function-alternative:#ffc66d;
794+
--color-cd-operator:#9a6e3a;
795+
--color-cd-operator-alternative:#a9b7c6;
796+
--color-cd-body:#000;
797+
--color-cd-body-alternative:#a9b7c6;
798+
--color-generic:#539df3;
799+
--color-jvm:#4dbb5f;
800+
--color-js:#ffc700;
801+
--color-wasm:#fff;
802+
--size-s1:4px;
803+
--size-s2:8px;
804+
--size-s3:16px;
805+
--size-m1:24px;
806+
--size-m2:32px;
807+
--size-m3:48px;
808+
--size-l1:64px;
809+
--size-l2:72px;
810+
--size-ta1:40px;
811+
--size-ta2:52px;
812+
--font-family-default:JetBrains Sans,Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Arial,sans-serif;
813+
--font-family-mono:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
814+
--font-h1:600 44px/44px var(--font-family-default);
815+
--font-h2:600 32px/32px var(--font-family-default);
816+
--font-h3:600 24px/24px var(--font-family-default);
817+
--font-h4:600 16px/24px var(--font-family-default);
818+
--font-text-m:400 16px/24px var(--font-family-default);
819+
--font-text-s:400 14px/20px var(--font-family-default);
820+
--font-code:400 16px/24px var(--font-family-mono);
821+
--hover-transition:background-color 200ms ease-in-out;
822+
--rotate-transition:transform 200ms ease-in-out;
823+
}
824+
753825
.ui-kit-icon {
754826
background-color: transparent;
755827
background-position: 50% 50%;
@@ -1235,6 +1307,10 @@
12351307
background-image: url(assets/burger.svg);
12361308
margin-left: auto;
12371309
}
1310+
1311+
.navigation-controls--btn_go-to-top {
1312+
background-image: url(assets/go-to-top-icon.svg);
1313+
}
12381314
:root {
12391315
--breakpoint-desktop-min:900px;
12401316
--breakpoint-tablet-max:899px;

dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dokka-subprojects/plugin-base/src/main/resources/dokka/ui-kit/ui-kit.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)