]> git.agnieray.net Git - galette.git/commitdiff
Move print stylesheet in theme
authorGuillaume AGNIERAY <dev@agnieray.net>
Fri, 10 Feb 2023 15:26:40 +0000 (16:26 +0100)
committerGuillaume AGNIERAY <dev@agnieray.net>
Fri, 17 Feb 2023 11:52:56 +0000 (12:52 +0100)
galette/templates/default/elements/header.html.twig
galette/templates/default/pages/contributions_list.html.twig
galette/templates/default/pages/transactions_list.html.twig
ui/css/galette_print.css [deleted file]
ui/semantic/galette/globals/site.overrides

index f633eee8a06b25f172e9bc6e58d0aec444a878a8..dace8aeb1353b5a2d4b6988532c5861ca513fd2f 100644 (file)
@@ -14,7 +14,6 @@
     {% if file_exists(localstylesheet) %}
         <link rel="stylesheet" type="text/css" href="{{ base_path() }}/{{ constant('GALETTE_THEME') }}galette_local.css" />
     {% endif %}
-        <link rel="stylesheet" type="text/css" href="{{ base_path() }}/assets/css/galette_print.css" media="print" />
     {# Let's see if a local print CSS exists and include it #}
     {% set localprintstylesheet = constant('_CURRENT_THEME_PATH') ~ "galette_print_local.css" %}
     {% if file_exists(localprintstylesheet) %}
index f6efbd1cc1a823cc9e72fdb0255de874b92a1fcc..d00b64b1ee97ba6830367c159bf1c528800e43e7 100644 (file)
             <td class="{{ cclass }}" data-title="{{ _T("Payment type") }}">{{ contribution.spayment_type }}</td>
             <td class="{{ cclass }}" data-title="{{ _T("Duration") }}">{{ contribution.duration }}</td>
             {% if mode != 'ajax' %}
-                <td class="{{ cclass }} center">
+                <td class="actions_row {{ cclass }} center">
                     <a
                             href="{{ url_for("printContribution", {"id": contribution.id}) }}"
                             class="tooltip"
index 01d9ee7873b7382be8a8fb538682a1b928c8696b..eccd58f35c23242b1d8b5a27657d7dbd7be51b92 100644 (file)
                     {% endif %}
                 </td>
             {% endif %}
-            <td class="{{ cclass }}" data-title="{{ _T("Amount") }}">{{ transaction.amount }}</td>
+            <td class="actions_row {{ cclass }}" data-title="{{ _T("Amount") }}">{{ transaction.amount }}</td>
             {% if login.isAdmin() or login.isStaff() %}
                 <td class="{{ cclass }} center">
                     <a
diff --git a/ui/css/galette_print.css b/ui/css/galette_print.css
deleted file mode 100644 (file)
index 6a07cf4..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-body,
-body.pushable {
-  background: #fff;
-}
-
-.ui.fixed.menu + .pusher {
-  padding-top: 0;
-}
-
-.screen-only,
-#top-navbar,
-aside.toc,
-#recup_mailing,
-#filtre .segment:not(.compact):not(.center),
-#filtre .segment.compact .tooltip,
-#filtre .segment.compact .list .item,
-.ui.horizontal.checkboxes.segments,
-table input[type=checkbox],
-.actions_row,
-.ui.pagination.menu,
-section.content > footer,
-#back2top {
-  display: none;
-}
index ad956bebdb570e5c3e5984e42ff8d64a5e83d2d9..95c4bebe389e81650fe76966c4441489203a3a1e 100644 (file)
@@ -244,3 +244,43 @@ ul.sortable-items {
     margin: 0;
   }
 }
+
+/*-------------------------
+    Print stylesheet
+--------------------------*/
+@media print {
+  html,
+  body.pushable,
+  body.pushable > .pusher {
+    overflow: unset;
+  }
+
+  body,
+  body.pushable {
+    background: #fff;
+  }
+
+  .ui.fixed.menu + .pusher {
+    padding-top: 0;
+  }
+
+  table.listing tbody tr:hover > td {
+    background-color: inherit !important;
+  }
+
+  .displaynone,
+  #top-navbar,
+  aside.toc,
+  #recup_mailing,
+  form.filters,
+  .ui.horizontal.checkboxes.segments,
+  table input[type=checkbox],
+  .infoline .button,
+  .infoline .right.aligned.segment,
+  .actions_row,
+  .ui.pagination.menu,
+  section.content > footer,
+  #back2top {
+    display: none !important;
+  }
+}