From 2e069342e64aeb630bb79020a11815f2b47b31c1 Mon Sep 17 00:00:00 2001 From: Dylan Hillerbrand Date: Mon, 17 Jun 2024 11:41:12 -0400 Subject: [PATCH] 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 --- .../articles/templates/article_detail.html | 17 +- .../articles/templates/article_list.html | 17 +- .../templates/base_page_with_side_cards.html | 27 + .../main_app/templates/browse_chants.html | 348 +++---- .../main_app/templates/chant_create.html | 552 ++++++----- .../main_app/templates/chant_detail.html | 906 +++++++++--------- .../main_app/templates/chant_edit.html | 890 +++++++++-------- .../main_app/templates/melody_search.html | 219 ++--- .../main_app/templates/source_detail.html | 620 ++++++------ .../main_app/templates/source_edit.html | 539 +++++------ .../main_app/templates/user_source_list.html | 178 ++-- django/cantusdb_project/templates/base.html | 7 - .../templates/flatpages/default.html | 27 +- 13 files changed, 2188 insertions(+), 2159 deletions(-) create mode 100644 django/cantusdb_project/main_app/templates/base_page_with_side_cards.html diff --git a/django/cantusdb_project/articles/templates/article_detail.html b/django/cantusdb_project/articles/templates/article_detail.html index 304d71427..c9c6fb4fc 100644 --- a/django/cantusdb_project/articles/templates/article_detail.html +++ b/django/cantusdb_project/articles/templates/article_detail.html @@ -3,8 +3,14 @@ {% block content %}
{{ article.title }} | Cantus Database -
-
+
+ + +

{{ article.title }}

@@ -21,11 +27,8 @@

-