mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
e744d4c82c
Since the old library was GPLv3 i changed the color picker to tiny-color-picker which is MIT. Also extracted the styles to a shared view and move color calculation logic to javascript side.
22 lines
883 B
PHP
22 lines
883 B
PHP
@if(Setting::get('app-color'))
|
|
<style>
|
|
header, #back-to-top {
|
|
background-color: {{ Setting::get('app-color') }};
|
|
}
|
|
.faded-small {
|
|
background-color: {{ Setting::get('app-color-light') }};
|
|
}
|
|
.button-base, .button, input[type="button"], input[type="submit"] {
|
|
background-color: {{ Setting::get('app-color') }};
|
|
}
|
|
.button-base:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:focus {
|
|
background-color: {{ Setting::get('app-color') }};
|
|
}
|
|
.setting-nav a.selected {
|
|
border-bottom-color: {{ Setting::get('app-color') }};
|
|
}
|
|
p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus {
|
|
color: {{ Setting::get('app-color') }};
|
|
}
|
|
</style>
|
|
@endif |