add CSS class noprint, + corresponding shortcode
This commit is contained in:
parent
a4116f6bd2
commit
b00bd9a475
2 changed files with 6 additions and 1 deletions
|
|
@ -73,8 +73,12 @@ p:last-child, ul:last-child {
|
|||
|
||||
/* printing */
|
||||
|
||||
.noprint {
|
||||
@extend .text-info !optional;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.site-header, #cs-sidebar, .pagination, footer {
|
||||
.noprint, .site-header, #cs-sidebar, .pagination, footer {
|
||||
display: none;
|
||||
}
|
||||
.col-md-8 {
|
||||
|
|
|
|||
1
layouts/_shortcodes/noprint.html
Normal file
1
layouts/_shortcodes/noprint.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div class="noprint">{{ .Inner | transform.Markdownify }} </div>
|
||||
Loading…
Add table
Reference in a new issue