Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace package name on cover with "Package-level declarations" #2586

Merged
merged 2 commits into from Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -223,7 +223,7 @@ open class DefaultPageCreator(

protected open fun contentForPackage(p: DPackage) = contentBuilder.contentFor(p) {
group(kind = ContentKind.Cover) {
cover("Package ${p.name}")
cover("Package-level declarations")
if (contentForDescription(p).isNotEmpty()) {
sourceSetDependentHint(
p.dri,
Expand Down
6 changes: 2 additions & 4 deletions plugins/base/src/main/resources/dokka/styles/style.css
Expand Up @@ -192,8 +192,6 @@ html ::-webkit-scrollbar-thumb {
}

.cover > .platform-hinted {
padding-top: 12px;
margin-top: 12px;
Comment on lines -195 to -196
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not even noticable since there's bottom padding from h1.cover already. Makes the page a little bit more compact and grabs less attention

padding-bottom: 12px;
}

Expand Down Expand Up @@ -550,8 +548,8 @@ h1 {


h1.cover {
font-size: 60px;
line-height: 64px;
font-size: 52px;
line-height: 56px;
Comment on lines -553 to +552
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also barely noticable, makes longer names class/fucntion fit a bit better and doesn't grab as much attention compared to the rest of the page.

letter-spacing: -1.5px;
margin-bottom: 0;
padding-bottom: 32px;
Expand Down