Print: load css, hide navbar

This commit is contained in:
Sebastian Castro
2022-03-23 09:13:11 +00:00
committed by Jean-Baptiste Bellet
parent 213c0dd060
commit cbb6bd63d4
2 changed files with 12 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese", :rel => "stylesheet", :type => "text/css"}
= stylesheet_pack_tag 'admin-styles'
= stylesheet_pack_tag 'admin-styles', media: "screen, print"
= render "layouts/bugsnag_js"
= javascript_include_tag 'admin/all'

View File

@@ -68,6 +68,11 @@
.hidden {
display: none;
}
@media print {
.print-hidden {
display: none;
}
}
// Header
//---------------------------------------------------
@@ -103,3 +108,9 @@
border-top: 1px solid $color-border;
padding: 10px 0;
}
@media print {
header, nav {
display:none;
}
}