aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-05-25 15:38:49 +0200
committerGitHub <noreply@github.com>2019-05-25 15:38:49 +0200
commit8ed59f107e5b373f3517b3c33e817e70375829c8 (patch)
treef555141220f40673be61e597ba4d47718d2b382c
parent5f8f6134bc01b4c1abf82f222a0b25801b2d5cad (diff)
parent374f89e721047bb983d3c3270e73b2ffe8d9d079 (diff)
downloadShaarli-8ed59f107e5b373f3517b3c33e817e70375829c8.tar.gz
Shaarli-8ed59f107e5b373f3517b3c33e817e70375829c8.tar.zst
Shaarli-8ed59f107e5b373f3517b3c33e817e70375829c8.zip
Merge pull request #1301 from ArthurHoaro/template/print-css
Add print CSS rules to the default template
-rw-r--r--assets/default/scss/shaarli.scss14
-rw-r--r--tpl/default/linklist.html4
2 files changed, 16 insertions, 2 deletions
diff --git a/assets/default/scss/shaarli.scss b/assets/default/scss/shaarli.scss
index 95e2ba93..9e5464a0 100644
--- a/assets/default/scss/shaarli.scss
+++ b/assets/default/scss/shaarli.scss
@@ -1611,3 +1611,17 @@ form {
1611 white-space: nowrap; 1611 white-space: nowrap;
1612 } 1612 }
1613} 1613}
1614
1615// Print rules
1616@media print {
1617 .shaarli-menu {
1618 position: absolute;
1619 }
1620
1621 .search-linklist,
1622 .link-count-block,
1623 .linklist-item-infos-controls-group,
1624 .mobile-buttons {
1625 display: none;
1626 }
1627}
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html
index a2aaac82..a025d53c 100644
--- a/tpl/default/linklist.html
+++ b/tpl/default/linklist.html
@@ -52,7 +52,7 @@
52{/loop} 52{/loop}
53 53
54<div id="linklist"> 54<div id="linklist">
55 <div id="link-count-block" class="pure-g"> 55 <div id="link-count-block" class="pure-g link-count-block">
56 <div class="pure-u-lg-2-24 pure-u-1-24"></div> 56 <div class="pure-u-lg-2-24 pure-u-1-24"></div>
57 <div id="link-count-content" class="pure-u-lg-20-24 pure-u-22-24"> 57 <div id="link-count-content" class="pure-u-lg-20-24 pure-u-22-24">
58 <div class="linkcount pure-u-lg-0 center"> 58 <div class="linkcount pure-u-lg-0 center">
@@ -287,7 +287,7 @@
287 {/loop} 287 {/loop}
288 </div> 288 </div>
289 289
290<div id="linklist-paging-bottom-block" class="pure-g"> 290<div id="linklist-paging-bottom-block" class="pure-g link-count-block">
291 <div class="pure-u-lg-2-24 pure-u-1-24"></div> 291 <div class="pure-u-lg-2-24 pure-u-1-24"></div>
292 <div id="linklist-paging-bottom-content" class="pure-u-lg-20-24 pure-u-22-24"> 292 <div id="linklist-paging-bottom-content" class="pure-u-lg-20-24 pure-u-22-24">
293 {include="linklist.paging"} 293 {include="linklist.paging"}