Browse Source

Merge pull request #1301 from ArthurHoaro/template/print-css

Add print CSS rules to the default template
ArthurHoaro 4 months ago
parent
commit
8ed59f107e
2 changed files with 16 additions and 2 deletions
  1. 14 0
      assets/default/scss/shaarli.scss
  2. 2 2
      tpl/default/linklist.html

+ 14 - 0
assets/default/scss/shaarli.scss

@@ -1611,3 +1611,17 @@ form {
     white-space: nowrap;
   }
 }
+
+// Print rules
+@media print {
+  .shaarli-menu {
+    position: absolute;
+  }
+
+  .search-linklist,
+  .link-count-block,
+  .linklist-item-infos-controls-group,
+  .mobile-buttons {
+    display: none;
+  }
+}

+ 2 - 2
tpl/default/linklist.html

@@ -52,7 +52,7 @@
 {/loop}
 
 <div id="linklist">
-  <div id="link-count-block" class="pure-g">
+  <div id="link-count-block" class="pure-g link-count-block">
     <div class="pure-u-lg-2-24 pure-u-1-24"></div>
     <div id="link-count-content" class="pure-u-lg-20-24 pure-u-22-24">
       <div class="linkcount pure-u-lg-0 center">
@@ -287,7 +287,7 @@
     {/loop}
   </div>
 
-<div id="linklist-paging-bottom-block" class="pure-g">
+<div id="linklist-paging-bottom-block" class="pure-g link-count-block">
   <div class="pure-u-lg-2-24 pure-u-1-24"></div>
   <div id="linklist-paging-bottom-content" class="pure-u-lg-20-24 pure-u-22-24">
     {include="linklist.paging"}