From 17663b7a53b00bd51d020ca6a810a98c99a7ca5d Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Tue, 14 May 2024 16:00:23 +0200 Subject: [PATCH 1/5] move main Download to a button to make it more obvious --- peachjam/static/stylesheets/_global.scss | 6 ++ .../peachjam/_document_detail_toolbar.html | 56 +++++++++++++++++++ .../peachjam/_document_problem_modal.html | 16 ------ .../peachjam/layouts/document_detail.html | 25 +-------- 4 files changed, 63 insertions(+), 40 deletions(-) create mode 100644 peachjam/templates/peachjam/_document_detail_toolbar.html delete mode 100644 peachjam/templates/peachjam/_document_problem_modal.html diff --git a/peachjam/static/stylesheets/_global.scss b/peachjam/static/stylesheets/_global.scss index 138394e6d..b14982069 100644 --- a/peachjam/static/stylesheets/_global.scss +++ b/peachjam/static/stylesheets/_global.scss @@ -102,6 +102,12 @@ footer { @include button-size(0.125rem, 0.25rem, $btn-font-size-sm, $btn-border-radius-sm); } +.btn-shrink-sm { + @include media-breakpoint-down(sm) { + @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm); + } +} + //Extra utility colors .facebook-forecolor { diff --git a/peachjam/templates/peachjam/_document_detail_toolbar.html b/peachjam/templates/peachjam/_document_detail_toolbar.html new file mode 100644 index 000000000..d1028473f --- /dev/null +++ b/peachjam/templates/peachjam/_document_detail_toolbar.html @@ -0,0 +1,56 @@ +{% load peachjam static i18n %} + diff --git a/peachjam/templates/peachjam/_document_problem_modal.html b/peachjam/templates/peachjam/_document_problem_modal.html deleted file mode 100644 index dc6933910..000000000 --- a/peachjam/templates/peachjam/_document_problem_modal.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load static i18n %} -
- -
- diff --git a/peachjam/templates/peachjam/layouts/document_detail.html b/peachjam/templates/peachjam/layouts/document_detail.html index 1b056c811..7f042677a 100644 --- a/peachjam/templates/peachjam/layouts/document_detail.html +++ b/peachjam/templates/peachjam/layouts/document_detail.html @@ -54,9 +54,6 @@

{{ document.title }}

{% endblock %} {% include 'peachjam/_notices.html' with messages=notices %} - {% if perms.peachjam.change_coredocument or perms.peachjam.can_edit_own_document %} - Edit - {% endif %}