-
Notifications
You must be signed in to change notification settings - Fork 357
NEW: Adding a section for footer-content like in sphinx-basic-ng #861
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
Changes from all commits
b855576
60e6f92
f50f8c8
e3df9e6
17e77bc
40d93c6
923ce01
aec7bb2
108a3fe
36b238e
e2a9280
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| 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; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,45 +78,50 @@ | |
| </nav> | ||
| {% endblock %} | ||
|
|
||
| <div class="bd-container container-xl"> | ||
| <div class="bd-container__inner row"> | ||
| <div class="bd-container"> | ||
| <div class="bd-container__inner bd-page-width"> | ||
| {# Primary sidebar #} | ||
| <div class="bd-sidebar-primary bd-sidebar{% if not sidebars %} hide-on-wide{% endif %}"> | ||
| {% include "sections/sidebar-primary.html" %} | ||
| </div> | ||
|
|
||
| {# Secondary sidebar #} | ||
| {% block docs_toc %} | ||
| {% if not remove_sidebar_secondary %} | ||
| <div class="bd-sidebar-secondary bd-toc"> | ||
| {% include "sections/sidebar-secondary.html" %} | ||
| </div> | ||
| {% endif %} | ||
| {% endblock %} | ||
|
|
||
| {# Main content area #} | ||
| {% block docs_main %} | ||
| <div class="bd-content col"> | ||
| {# Article header #} | ||
| <div class="bd-header-article"> | ||
| {% include "sections/header-article.html" %} | ||
| <main class="bd-main"> | ||
| {# Main content area #} | ||
| {% block docs_main %} | ||
| <div class="bd-content"> | ||
| <div class="bd-article-container"> | ||
| {# Article header #} | ||
| <div class="bd-header-article"> | ||
| {% include "sections/header-article.html" %} | ||
| </div> | ||
| {# Article content #} | ||
| {% block docs_body %} | ||
| <article class="bd-article" role="main"> | ||
| {% block body %} {% endblock %} | ||
| </article> | ||
| {% endblock %} | ||
| {# Article Footer #} | ||
| {% if theme_show_prev_next %} | ||
| <footer class="bd-footer-article"> | ||
| {% include "sections/footer-article.html" %} | ||
| </footer> | ||
| {% endif %} | ||
| </div> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this/div attracted to? It seems to be at a different indentation level then everything else . Is that just a quirk of my mobile browser?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm maybe a quirk, because in my editor it is at the same level as "bd-content" and a child of "bd-main". |
||
|
|
||
| {# Article content #} | ||
| {% block docs_body %} | ||
| <article class="bd-article" role="main"> | ||
| {% block body %} {% endblock %} | ||
| </article> | ||
| {% endblock %} | ||
|
|
||
| {# Article Footer #} | ||
| {% if theme_show_prev_next %} | ||
| <footer class="bd-footer-article"> | ||
| {% include "sections/footer-article.html" %} | ||
| </footer> | ||
| {# Secondary sidebar #} | ||
| {% block docs_toc %} | ||
| {% if not remove_sidebar_secondary %} | ||
| <div class="bd-sidebar-secondary bd-toc"> | ||
| {% include "sections/sidebar-secondary.html" %} | ||
| </div> | ||
| {% endif %} | ||
| </div> | ||
| {% endblock %} | ||
| {% endblock %} | ||
| </div> | ||
| <footer class="bd-footer-content"> | ||
| <div class="bd-footer-content__inner"> | ||
| {% include "sections/footer-content.html" %} | ||
| </div> | ||
| </footer> | ||
| {% endblock %} | ||
| </main> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {#- Intentionally empty in case others want to add something -#} |
Uh oh!
There was an error while loading. Please reload this page.