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/static/stylesheets/components/_document-content.scss b/peachjam/static/stylesheets/components/_document-content.scss index e7cfe773c..34c866c69 100644 --- a/peachjam/static/stylesheets/components/_document-content.scss +++ b/peachjam/static/stylesheets/components/_document-content.scss @@ -392,6 +392,6 @@ .to-the-top { position: fixed; right: 10px; - bottom: 0px; + bottom: 10px; z-index: 10; } 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 06a888356..ffc06a106 100644 --- a/peachjam/templates/peachjam/layouts/document_detail.html +++ b/peachjam/templates/peachjam/layouts/document_detail.html @@ -54,9 +54,7 @@

{{ document.title }}

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