-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2fe934
commit c4a8ebf
Showing
20 changed files
with
346 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
dokka-subprojects/plugin-base-frontend/src/main/ui-kit/_assets/go-to-top-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
dokka-subprojects/plugin-base-frontend/src/main/ui-kit/footer/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
import './styles.scss'; |
113 changes: 113 additions & 0 deletions
113
dokka-subprojects/plugin-base-frontend/src/main/ui-kit/footer/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/*! | ||
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
@import '../_tokens/index'; | ||
|
||
.footer { | ||
position: relative; | ||
|
||
display: flex; | ||
align-items: flex-start; | ||
justify-content: space-between; | ||
|
||
min-height: var(--footer-height); | ||
margin-top: auto; | ||
|
||
padding: 0 var(--size-m3); | ||
|
||
letter-spacing: 0.15px; | ||
|
||
color: var(--color-text-light); | ||
background-color: var(--color-background-footer); | ||
|
||
font: var(--font-text-s); | ||
|
||
.theme-dark & { | ||
color: var(--color-text-light-dt); | ||
background-color: var(--color-background-footer-dt); | ||
} | ||
|
||
@media (width < $breakpoint-desktop-min) { | ||
padding: 0 var(--size-s3); | ||
} | ||
|
||
&--button { | ||
z-index: 0; | ||
|
||
display: inline-flex; | ||
align-items: center; | ||
|
||
flex-shrink: 0; | ||
justify-content: center; | ||
|
||
width: 40px; | ||
height: 40px; | ||
|
||
margin-top: 12px; | ||
padding: 0; | ||
|
||
cursor: pointer; | ||
|
||
border: none; | ||
border-radius: var(--size-s1); | ||
background-color: transparent; | ||
background-repeat: no-repeat; | ||
background-position: 50% 50%; | ||
background-size: 24px 24px; | ||
|
||
font-size: 0; | ||
line-height: 0; | ||
|
||
filter: invert(1); | ||
|
||
.theme-dark & { | ||
filter: none; | ||
} | ||
|
||
@media (hover: hover) { | ||
&:hover { | ||
background-color: var(--color-w10); | ||
} | ||
} | ||
|
||
&:active { | ||
background-color: var(--color-w16); | ||
} | ||
|
||
&:focus-visible { | ||
outline: var(--focus-outline); | ||
} | ||
|
||
&_go-to-top { | ||
background-image: url('../_assets/go-to-top-icon.svg'); | ||
} | ||
} | ||
|
||
&--link { | ||
color: inherit; | ||
|
||
border-bottom: 1px solid var(--color-text-light); | ||
|
||
.theme-dark & { | ||
border-bottom-color: var(--color-text-light-dt); | ||
} | ||
|
||
&:focus-visible { | ||
outline: var(--focus-outline); | ||
} | ||
|
||
&:hover { | ||
border-bottom-color: var(--color-text); | ||
|
||
.theme-dark & { | ||
border-bottom-color: var(--color-text-dt); | ||
} | ||
} | ||
} | ||
|
||
&--content { | ||
margin: 12px 0; | ||
|
||
text-align: right; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...a-subprojects/plugin-base/src/main/resources/dokka/images/footer-go-to-link.svg
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
dokka-subprojects/plugin-base/src/main/resources/dokka/images/go-to-top-icon.svg
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
dokka-subprojects/plugin-base/src/main/resources/dokka/templates/includes/footer.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<#macro display> | ||
<div class="footer"> | ||
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a> | ||
<span>${footerMessage}</span> | ||
<span class="pull-right"> | ||
<div class="footer--content"> | ||
<span>Generated by </span> | ||
<a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka"> | ||
<span>dokka</span> | ||
Dokka | ||
</a> | ||
</span> | ||
<div>${footerMessage}</div> | ||
</div> | ||
</div> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...bprojects/plugin-base/src/main/resources/dokka/ui-kit/assets/go-to-top-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.