]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/export.blade.php
Updated styles to use logical properties/values
[bookstack] / resources / views / chapters / export.blade.php
1 <!doctype html>
2 <html lang="{{ config('app.lang') }}">
3 <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5     <title>{{ $chapter->name }}</title>
6
7     @include('partials.export-styles', ['format' => $format])
8
9     <style>
10         .page-break {
11             page-break-after: always;
12         }
13         ul.contents ul li {
14             list-style: circle;
15         }
16         @media screen {
17             .page-break {
18                 border-top: 1px solid #DDD;
19             }
20         }
21     </style>
22     @include('partials.custom-head')
23 </head>
24 <body>
25
26 <div class="page-content">
27
28     <h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
29
30     <p>{{ $chapter->description }}</p>
31
32     @if(count($pages) > 0)
33         <ul class="contents">
34             @foreach($pages as $page)
35                 <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
36             @endforeach
37         </ul>
38     @endif
39
40     @foreach($pages as $page)
41         <div class="page-break"></div>
42         <h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
43         {!! $page->html !!}
44     @endforeach
45
46 </div>
47
48 </body>
49 </html>