Split out custom_css from custom_header color

This commit is contained in:
snipe 2018-07-25 19:00:03 -07:00
parent 1fd0b14b98
commit a5daee811b
2 changed files with 12 additions and 7 deletions

View file

@ -32,12 +32,13 @@
background-color: {{ $snipeSettings->header_color }};
border-color: {{ $snipeSettings->header_color }};
}
@if ($snipeSettings->custom_css)
{{ $snipeSettings->show_custom_css() }}
@endif
</style>
@endif
@if ($snipeSettings->custom_css)
<style>
{!! $snipeSettings->show_custom_css() !!}
</style>
@endif
</head>

View file

@ -54,9 +54,7 @@
}
@endif
@if (($snipeSettings) && ($snipeSettings->custom_css!=''))
{!! $snipeSettings->show_custom_css() !!}
@endif
@media (max-width: 400px) {
.navbar-left {
@ -69,6 +67,12 @@
}
</style>
@if ($snipeSettings->custom_css)
<style>
{!! $snipeSettings->show_custom_css() !!}
</style>
@endif
<script nonce="{{ csrf_token() }}">
window.snipeit = {
settings: {