Updated print css for recent redesign

Fixes #1472
This commit is contained in:
Dan Brown 2019-08-25 11:30:26 +01:00
parent 4bf77f67dd
commit b792108bc1
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
6 changed files with 19 additions and 26 deletions

View file

@ -4,39 +4,32 @@ header {
display: none;
}
body {
html, body {
font-size: 12px;
background-color: #FFF;
}
.page-content {
margin: 0 auto;
}
.flex-fill {
display: block;
}
.flex.sidebar + .flex.content {
border-left: none;
}
.print-hidden {
display: none;
display: none !important;
}
.print-full-width {
width: 100%;
float: none;
.tri-layout-container {
grid-template-columns: 1fr;
grid-template-areas: "b";
margin-left: 0;
margin-right: 0;
display: block;
}
h2 {
font-size: 2em;
line-height: 1;
margin-top: 0.6em;
margin-bottom: 0.3em;
.card {
box-shadow: none;
}
.comments-container {
display: none;
.content-wrap.card {
padding-left: 0;
padding-right: 0;
}

View file

@ -34,7 +34,7 @@
@yield('content')
</section>
<div back-to-top class="primary-background">
<div back-to-top class="primary-background print-hidden">
<div class="inner">
@icon('chevron-up') <span>{{ trans('common.back_to_top') }}</span>
</div>

View file

@ -8,7 +8,7 @@
@section('body')
<div class="mb-m">
<div class="mb-m print-hidden">
@include('partials.breadcrumbs', ['crumbs' => [
$chapter->book,
$chapter,

View file

@ -11,7 +11,7 @@
@section('body')
<div class="mb-m">
<div class="mb-m print-hidden">
@include('partials.breadcrumbs', ['crumbs' => [
$page->$book,
$page->chapter,

View file

@ -2,7 +2,7 @@
@section('body')
<div class="mb-m">
<div class="mb-m print-hidden">
@include('partials.breadcrumbs', ['crumbs' => [
$page->book,
$page->hasChapter() ? $page->chapter : null,
@ -18,7 +18,7 @@
</div>
@if ($commentsEnabled)
<div class="container small p-none comments-container mb-l">
<div class="container small p-none comments-container mb-l print-hidden">
@include('comments.comments', ['page' => $page])
<div class="clearfix"></div>
</div>

View file

@ -4,7 +4,7 @@
@section('content')
<div class="tri-layout-mobile-tabs text-primary" >
<div class="tri-layout-mobile-tabs text-primary print-hidden">
<div class="grid half no-break no-gap">
<div class="tri-layout-mobile-tab px-m py-s" tri-layout-mobile-tab="info">
{{ trans('common.tab_info') }}