]> BookStack Code Mirror - bookstack/commitdiff
Print Styles: Fixed header/footer content showing
authorDan Brown <redacted>
Tue, 3 Oct 2023 13:59:35 +0000 (14:59 +0100)
committerDan Brown <redacted>
Tue, 3 Oct 2023 13:59:35 +0000 (14:59 +0100)
Extra bits were showing due to recent changes.
Done a quick pass through major display views.

Fixes #4594

resources/sass/print-styles.scss
resources/views/books/show.blade.php
resources/views/layouts/parts/footer.blade.php
resources/views/layouts/parts/header.blade.php
resources/views/pages/show.blade.php
resources/views/shelves/show.blade.php

index 2c51bd75c69027122b0a1f395906170eebb4fa63..cfc0ecdad8c055881485628522d76ef1e73537b5 100644 (file)
@@ -1,10 +1,6 @@
 @use "sass:math";
 @import "variables";
 
 @use "sass:math";
 @import "variables";
 
-header {
-  display: none;
-}
-
 html, body {
   font-size: 12px;
   background-color: #FFF;
 html, body {
   font-size: 12px;
   background-color: #FFF;
index 9e7df4156d429c629edffc1837f2328da900c5ad..8f7c3f6cf1133c08546be55dcce3e962774cea06 100644 (file)
@@ -17,7 +17,7 @@
 
 @section('body')
 
 
 @section('body')
 
-    <div class="mb-s">
+    <div class="mb-s print-hidden">
         @include('entities.breadcrumbs', ['crumbs' => [
             $book,
         ]])
         @include('entities.breadcrumbs', ['crumbs' => [
             $book,
         ]])
index dd488dce541a68a7194d113a73fe9ce1a8ea32cb..4275866bc8b583010ae2c30d45636cb374d07aa7 100644 (file)
@@ -1,5 +1,5 @@
 @if(count(setting('app-footer-links', [])) > 0)
 @if(count(setting('app-footer-links', [])) > 0)
-<footer>
+<footer class="print-hidden">
     @foreach(setting('app-footer-links', []) as $link)
         <a href="{{ $link['url'] }}" target="_blank" rel="noopener">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
     @endforeach
     @foreach(setting('app-footer-links', []) as $link)
         <a href="{{ $link['url'] }}" target="_blank" rel="noopener">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
     @endforeach
index 25f8e8c5452444a126ee61ec30cee7e65168bff2..0e3ad44664be1691c3a1d4611cd30f93cd142e6c 100644 (file)
@@ -1,4 +1,4 @@
-<header id="header" component="header-mobile-toggle" class="primary-background px-xl grid">
+<header id="header" component="header-mobile-toggle" class="primary-background px-xl grid print-hidden">
     <div>
         @include('layouts.parts.header-logo')
         <button type="button"
     <div>
         @include('layouts.parts.header-logo')
         <button type="button"
index 5d70f7c28e984d3400872c7ae4566699444d8591..e3a31dd5ebf1bcd18b6ce0977565ed6ef7db5d11 100644 (file)
@@ -29,7 +29,7 @@
 
     @if ($commentTree->enabled())
         @if(($previous || $next))
 
     @if ($commentTree->enabled())
         @if(($previous || $next))
-            <div class="px-xl">
+            <div class="px-xl print-hidden">
                 <hr class="darker">
             </div>
         @endif
                 <hr class="darker">
             </div>
         @endif
index 8694ce86da55b2a85b55ac03c5a8fe203fe92273..58fe1cd86b0ef737e71ee0b328ab7df8fa3c701a 100644 (file)
@@ -11,7 +11,7 @@
 
 @section('body')
 
 
 @section('body')
 
-    <div class="mb-s">
+    <div class="mb-s print-hidden">
         @include('entities.breadcrumbs', ['crumbs' => [
             $shelf,
         ]])
         @include('entities.breadcrumbs', ['crumbs' => [
             $shelf,
         ]])