mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-17 00:34:00 +08:00
d5a3bdb7aa
- Moved "common" template partials, that are only used in layouts, to layouts/parts folder. - Simplified HTML structure of header template. - Extracted logo and links from header template to simplify. - Added header-links-start template for easier extension/customization without needing to override full list of links. - Added test to cover usage of this. For #4564
16 lines
718 B
PHP
16 lines
718 B
PHP
@php
|
|
$settingSuffix = setting()->getForCurrentUser('dark-mode-enabled') ? '-dark' : '';
|
|
@endphp
|
|
<style>
|
|
:root {
|
|
--color-primary: {{ setting('app-color' . $settingSuffix) }};
|
|
--color-primary-light: {{ setting('app-color-light' . $settingSuffix) }};
|
|
--color-link: {{ setting('link-color' . $settingSuffix) }};
|
|
--color-bookshelf: {{ setting('bookshelf-color' . $settingSuffix)}};
|
|
--color-book: {{ setting('book-color' . $settingSuffix)}};
|
|
--color-chapter: {{ setting('chapter-color' . $settingSuffix)}};
|
|
--color-page: {{ setting('page-color' . $settingSuffix)}};
|
|
--color-page-draft: {{ setting('page-draft-color' . $settingSuffix)}};
|
|
}
|
|
</style>
|