]> BookStack Code Mirror - bookstack/blob - resources/views/common/export-styles.blade.php
Aligned notification capitalisation
[bookstack] / resources / views / common / export-styles.blade.php
1 <style>
2     @if (!app()->environment('testing'))
3         {!! file_get_contents(public_path('/dist/export-styles.css')) !!}
4     @endif
5 </style>
6
7 @if ($format === 'pdf')
8     <style>
9
10         /* PDF size adjustments */
11         body {
12             font-size: 14px;
13             line-height: 1.2;
14         }
15
16         h1, h2, h3, h4, h5, h6 {
17             line-height: 1.2;
18         }
19
20         table {
21             max-width: 800px !important;
22             font-size: 0.8em;
23             width: 100% !important;
24         }
25
26         table td {
27             width: auto !important;
28         }
29
30         /* Patches for CSS variable colors */
31         a {
32             color: {{ setting('app-color') }};
33         }
34
35         blockquote {
36             border-left-color: {{ setting('app-color') }};
37         }
38
39         /* Patches for content layout */
40         .page-content .float {
41             float: none !important;
42         }
43
44         .page-content img.align-left, .page-content img.align-right  {
45             float: none !important;
46             clear: both;
47             display: block;
48         }
49     </style>
50 @endif