mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-05 00:30:26 +00:00
Print Styles: Fixed header/footer content showing
Extra bits were showing due to recent changes. Done a quick pass through major display views. Fixes #4594
This commit is contained in:
parent
1005f4bd7a
commit
c5d5b6e3c1
6 changed files with 5 additions and 9 deletions
resources
sass
views
books
layouts/parts
pages
shelves
|
@ -1,10 +1,6 @@
|
||||||
@use "sass:math";
|
@use "sass:math";
|
||||||
@import "variables";
|
@import "variables";
|
||||||
|
|
||||||
header {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
|
|
||||||
<div class="mb-s">
|
<div class="mb-s print-hidden">
|
||||||
@include('entities.breadcrumbs', ['crumbs' => [
|
@include('entities.breadcrumbs', ['crumbs' => [
|
||||||
$book,
|
$book,
|
||||||
]])
|
]])
|
||||||
|
|
|
@ -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)
|
@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>
|
<a href="{{ $link['url'] }}" target="_blank" rel="noopener">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
|
@ -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>
|
<div>
|
||||||
@include('layouts.parts.header-logo')
|
@include('layouts.parts.header-logo')
|
||||||
<button type="button"
|
<button type="button"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
@if ($commentTree->enabled())
|
@if ($commentTree->enabled())
|
||||||
@if(($previous || $next))
|
@if(($previous || $next))
|
||||||
<div class="px-xl">
|
<div class="px-xl print-hidden">
|
||||||
<hr class="darker">
|
<hr class="darker">
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
|
|
||||||
<div class="mb-s">
|
<div class="mb-s print-hidden">
|
||||||
@include('entities.breadcrumbs', ['crumbs' => [
|
@include('entities.breadcrumbs', ['crumbs' => [
|
||||||
$shelf,
|
$shelf,
|
||||||
]])
|
]])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue