diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-05-08 12:09:06 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2019-05-08 12:17:52 +0200 |
commit | 374f89e721047bb983d3c3270e73b2ffe8d9d079 (patch) | |
tree | 28667f81592141a1a5feb3d1afff3c86010efb49 | |
parent | c5e96f594be42110ccbff9b1550d8e32587ae1a2 (diff) | |
download | Shaarli-374f89e721047bb983d3c3270e73b2ffe8d9d079.tar.gz Shaarli-374f89e721047bb983d3c3270e73b2ffe8d9d079.tar.zst Shaarli-374f89e721047bb983d3c3270e73b2ffe8d9d079.zip |
Add print CSS rules to the default template
Fixes #1291
* Display the header bar only on the first page
* Hide search bars, pagination buttons, filters, and edit/delete buttons
-rw-r--r-- | assets/default/scss/shaarli.scss | 14 | ||||
-rw-r--r-- | tpl/default/linklist.html | 4 |
2 files changed, 16 insertions, 2 deletions
diff --git a/assets/default/scss/shaarli.scss b/assets/default/scss/shaarli.scss index a529f01c..90000750 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"} |