-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add article and content footer components (#1215)
- Loading branch information
Showing
12 changed files
with
68 additions
and
7 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
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
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
7 changes: 5 additions & 2 deletions
7
src/pydata_sphinx_theme/assets/styles/sections/_footer-article.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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.bd-footer-article { | ||
display: flex; | ||
margin-top: auto; | ||
.footer-article-items { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: auto; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/pydata_sphinx_theme/assets/styles/sections/_footer-content.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,7 @@ | ||
.bd-footer-content { | ||
.footer-content-items { | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: auto; | ||
} | ||
} |
File renamed without changes.
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: 7 additions & 1 deletion
8
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/footer-article.html
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 +1,7 @@ | ||
{% include "components/footer-article/prev-next.html" %} | ||
{% if theme_article_footer_items %} | ||
<div class="footer-article-items footer-article__inner"> | ||
{% for item in theme_article_footer_items %} | ||
<div class="footer-article-item">{% include item %}</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
8 changes: 7 additions & 1 deletion
8
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/footer-content.html
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 +1,7 @@ | ||
{#- Intentionally empty in case others want to add something -#} | ||
{% if theme_content_footer_items %} | ||
<div class="footer-content-items footer-content__inner"> | ||
{% for item in theme_content_footer_items %} | ||
<div class="footer-content-item">{% include item %}</div> | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
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