-
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
2b63314
commit c37f669
Showing
16 changed files
with
268 additions
and
87 deletions.
There are no files selected for viewing
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.
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'; |
83 changes: 83 additions & 0 deletions
83
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,83 @@ | ||
/*! | ||
* 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: center; | ||
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(--footer-background); | ||
|
||
font: var(--font-text-s); | ||
|
||
&--button { | ||
z-index: 0; | ||
|
||
display: inline-flex; | ||
align-items: center; | ||
|
||
flex-shrink: 0; | ||
justify-content: center; | ||
|
||
width: 40px; | ||
height: 40px; | ||
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; | ||
|
||
@media (hover: hover) { | ||
&:hover { | ||
background-color: var(--color-b08); | ||
} | ||
} | ||
|
||
&:active { | ||
background-color: var(--color-w10); | ||
} | ||
|
||
&:focus-visible { | ||
outline: var(--focus-outline); | ||
} | ||
|
||
@media (width < $breakpoint-desktop-min) { | ||
width: 52px; | ||
height: 52px; | ||
} | ||
|
||
&_go-to-top { | ||
background-image: url('../_assets/go-to-top-icon.svg'); | ||
} | ||
} | ||
|
||
&--link { | ||
color: inherit; | ||
|
||
border-bottom: 1px solid var(--color-text-light); | ||
} | ||
|
||
&--content { | ||
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.