Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW: Adding a section for footer-content like in sphinx-basic-ng (#861)
- Loading branch information
1 parent
51219fe
commit 4b97fe0
Showing
10 changed files
with
139 additions
and
78 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
39 changes: 25 additions & 14 deletions
39
src/pydata_sphinx_theme/assets/styles/sections/_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,22 +1,33 @@ | ||
/** | ||
* Main content area | ||
*/ | ||
.bd-content { | ||
display: flex; | ||
.bd-main { | ||
flex-grow: 1; | ||
flex-direction: column; | ||
display: flex; | ||
min-width: 0; | ||
|
||
// Max-width is slightly more than the W3 since our docs often have images. | ||
// We shoot for about 100 characters per line instead of 80. | ||
// ref: https://www.w3.org/WAI/tutorials/page-structure/styling/#line-length | ||
max-width: 60em; | ||
overflow-x: auto; // Prevent wide content from pushing off the secondary sidebar | ||
padding: 1rem; | ||
|
||
.bd-article { | ||
// Give a bit more verticle spacing on wide screens | ||
@include media-breakpoint-up($breakpoint-sidebar-secondary) { | ||
padding-top: 2rem; | ||
padding-left: 2rem; | ||
.bd-content { | ||
display: flex; | ||
justify-content: center; | ||
height: 100%; | ||
.bd-article-container { | ||
justify-content: space-between; | ||
display: flex; | ||
flex-direction: column; | ||
// Max-width is slightly more than the W3 since our docs often have images. | ||
// We shoot for about 100 characters per line instead of 80. | ||
// ref: https://www.w3.org/WAI/tutorials/page-structure/styling/#line-length | ||
max-width: 60em; | ||
overflow-x: auto; // Prevent wide content from pushing off the secondary sidebar | ||
padding: 1rem; | ||
.bd-article { | ||
// Give a bit more verticle spacing on wide screens | ||
@include media-breakpoint-up($breakpoint-sidebar-secondary) { | ||
padding-top: 2rem; | ||
padding-left: 2rem; | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 9 additions & 3 deletions
12
src/pydata_sphinx_theme/assets/styles/sections/_container.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,10 +1,16 @@ | ||
.bd-container { | ||
flex-grow: 1; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
|
||
.bd-container__inner { | ||
flex-grow: 1; | ||
justify-content: center; | ||
display: flex; | ||
} | ||
} | ||
|
||
.bd-page-width { | ||
width: 100%; | ||
@include media-breakpoint-up(lg) { | ||
max-width: $breakpoint-page-width; | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{#- Intentionally empty in case others want to add something -#} |
2 changes: 1 addition & 1 deletion
2
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.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