mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 13:58:57 +08:00
ccd50fe918
- Removed different PDF template used on pages. - Updated export view files to have the intended format passed. - Shared the export CSS amoung the export templates. Should hopefully address #1886
29 lines
695 B
PHP
29 lines
695 B
PHP
<style>
|
|
@if (!app()->environment('testing'))
|
|
{!! file_get_contents(public_path('/dist/export-styles.css')) !!}
|
|
@endif
|
|
</style>
|
|
|
|
@if ($format === 'pdf')
|
|
<style>
|
|
/* Patches for CSS variable colors */
|
|
a {
|
|
color: {{ setting('app-color') }};
|
|
}
|
|
|
|
blockquote {
|
|
border-left-color: {{ setting('app-color') }};
|
|
}
|
|
|
|
/* Patches for content layout */
|
|
.page-content .float {
|
|
float: none !important;
|
|
}
|
|
|
|
.page-content img.align-left, .page-content img.align-right {
|
|
float: none !important;
|
|
clear: both;
|
|
display: block;
|
|
}
|
|
</style>
|
|
@endif |