Split out custom_css from custom_header

This makes it so that the custom_css will still be respected even if there is no custom header
This commit is contained in:
snipe 2018-07-25 19:01:47 -07:00
parent 4e55a18a60
commit 708b1a962c
2 changed files with 13 additions and 6 deletions

View file

@ -33,13 +33,16 @@
border-color: {{ $snipeSettings->header_color }};
}
@if ($snipeSettings->custom_css)
{{ $snipeSettings->show_custom_css() }}
@endif
</style>
@endif
@if (($snipeSettings) && ($snipeSettings->custom_css))
<style>
{!! $snipeSettings->show_custom_css() !!}
</style>
@endif
</head>
<body class="hold-transition login-page">

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) && ($snipeSettings->custom_css))
<style>
{!! $snipeSettings->show_custom_css() !!}
</style>
@endif
<script nonce="{{ csrf_token() }}">
window.snipeit = {
settings: {