diff --git a/app/views/spree/admin/shared/_head.html.haml b/app/views/spree/admin/shared/_head.html.haml index c90e5f0263..d4c5856fc3 100644 --- a/app/views/spree/admin/shared/_head.html.haml +++ b/app/views/spree/admin/shared/_head.html.haml @@ -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' diff --git a/app/webpacker/css/admin/shared/layout.scss b/app/webpacker/css/admin/shared/layout.scss index 7705d09caa..2e97bf7388 100644 --- a/app/webpacker/css/admin/shared/layout.scss +++ b/app/webpacker/css/admin/shared/layout.scss @@ -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; + } +} \ No newline at end of file