Skip to content

Fix footer layouts in doc #11357

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

Merged
merged 1 commit into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_layouts/blog-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ <h1>{{ page.title }}</h1>

{% if page.author and page.authorImg %}
<hr/>
<footer>
<div class="blog-author">
<img id="author-img" src="{{ site.baseurl }}{{ page.authorImg }}">
<span id="author-signature">
{{ page.author }}
</span>
</footer>
</div>
{% endif %}
</main>
10 changes: 5 additions & 5 deletions docs/css/dottydoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ h5:hover a.anchor:hover {
color: var(--secondary);
}


/* footer */
footer {
color: grey;
/* blog footer */
.blog-author {
color: gray;
}
footer img#author-img {

.blog-author img#author-img {
width: auto;
height: auto;
max-width:100px;
Expand Down
10 changes: 7 additions & 3 deletions scaladoc/resources/dotty_res/styles/scalastyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,9 @@ Same solution is already used in Dokka.
/* Footer */
footer {
display: flex;
bottom: 0px;
align-items: center;
position: relative;
position: fixed;
margin-top: 1rem;
margin-left: var(--side-width);
width: calc(100% - var(--side-width));
Expand Down Expand Up @@ -666,6 +667,10 @@ footer .pull-right {
margin-right: 5%;
}

footer {
color: grey;
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be merged with the previous footer rule

}

footer .socials {
margin-left: 10px;
margin-right: 10px;
Expand All @@ -684,8 +689,7 @@ footer .socials {
}

#generated-by {
position: absolute;
right: 10px;
margin-right: 20px;
display: flex;
align-items: center;
}
Expand Down