-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): sandwich main content with sidebar on narrow screens
- adjust styling so that some parts of sidebar can go above the main page content and some below on pages - get rid of independent main-content margins - introduce a new base template "base_page_with_side_cards.html" from which templates using this sandwiching behaviour can inherit - adjust existing pages to use this template
- Loading branch information
Showing
13 changed files
with
2,188 additions
and
2,159 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
27 changes: 27 additions & 0 deletions
27
django/cantusdb_project/main_app/templates/base_page_with_side_cards.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,27 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
{% block title %} | ||
{% endblock %} | ||
{% block script %} | ||
{% endblock %} | ||
|
||
<div class="container"> | ||
<div class="row d-lg-block"> | ||
<div class="col-lg-4 p-0 pl-lg-3 sidebar float-right"> | ||
{% block uppersidebar %} | ||
{# Cards in this section will jump above the main content on small screens #} | ||
{% endblock %} | ||
</div> | ||
<div class="p-3 col-lg-8 bg-white rounded main-content float-left mb-3"> | ||
{% block maincontent %} | ||
{% endblock %} | ||
</div> | ||
|
||
<div class="col-lg-4 p-0 pl-lg-3 sidebar float-right"> | ||
{% block lowersidebar %} | ||
{# Cards in this section will jump below the main content on small screens #} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
348 changes: 174 additions & 174 deletions
348
django/cantusdb_project/main_app/templates/browse_chants.html
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.