Skip to content

Commit

Permalink
fix(print): colors on printed card + hide facettes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflos committed Dec 12, 2024
1 parent 740a8a9 commit 19360f4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
22 changes: 11 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion styles/qrcards.css
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@
#yw-footer,
.debug,
.BAZ_fiche_info,
.filters-col,
.no-print {
display: none !important;
}
Expand All @@ -428,7 +429,11 @@
.qrcard-to-print:nth-child(2n + 1) {
break-before: page;
}

.qrcard-to-print .qrcard-header,
.qrcard-to-print .qrcard-title,
.qrcard-to-print .qrcard-image {
background: white !important;
}
.page-qrcard {
display: grid;
grid-template-columns: var(--card-height) var(--card-height);
Expand Down
4 changes: 2 additions & 2 deletions templates/card-layouts/qrcard.twig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<i class="fa fa-eye-open"></i>
</a>
{% endif %}
{% if linkedit is defined %}
{% if linkedit != null %}
<a title="{{ _t('TEMPLATE_EDIT')}}" data-toggle="tooltip" data-placement="top" href="{{ linkedit|raw }}" class="btn btn-xs btn-default">
<i class="fa fa-pencil-alt"></i>
</a>
Expand Down Expand Up @@ -112,7 +112,7 @@
<a title="{{ _t('QRCARDS_PRINT')}}" data-toggle="tooltip" data-placement="top" href="{{ url({tag: fiche.id_fiche,params:{print:1}}) }}" class="btn btn-xs btn-default">
<i class="fas fa-print"></i>
</a>
{% if linkdelete is defined %}
{% if linkdelete != 0 %}
<a href="{{ linkdelete|raw }}" class="btn btn-xs btn-danger modalbox" title="{{ _t('TEMPLATE_DELETE')}}" data-toggle="tooltip" data-placement="top">
<i class="fa fa-trash"></i>
</a>
Expand Down

0 comments on commit 19360f4

Please sign in to comment.