Fixed theme color elements not showing on new instance
Also cleaned notification session access
Showing
3 changed files
with
29 additions
and
29 deletions
| ... | @@ -5,6 +5,8 @@ | ... | @@ -5,6 +5,8 @@ |
| 5 | */ | 5 | */ |
| 6 | return [ | 6 | return [ |
| 7 | 7 | ||
| 8 | - 'app-editor' => 'wysiwyg' | 8 | + 'app-editor' => 'wysiwyg', |
| 9 | + 'app-color' => '#0288D1', | ||
| 10 | + 'app-color-light' => 'rgba(21, 101, 192, 0.15)' | ||
| 9 | 11 | ||
| 10 | ]; | 12 | ]; |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | -@if(Setting::get('app-color')) | ||
| 2 | - <style> | ||
| 3 | - header, #back-to-top, .primary-background { | ||
| 4 | - background-color: {{ Setting::get('app-color') }} !important; | ||
| 5 | - } | ||
| 6 | - .faded-small, .primary-background-light { | ||
| 7 | - background-color: {{ Setting::get('app-color-light') }}; | ||
| 8 | - } | ||
| 9 | - .button-base, .button, input[type="button"], input[type="submit"] { | ||
| 10 | - background-color: {{ Setting::get('app-color') }}; | ||
| 11 | - } | ||
| 12 | - .button-base:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:focus { | ||
| 13 | - background-color: {{ Setting::get('app-color') }}; | ||
| 14 | - } | ||
| 15 | - .nav-tabs a.selected, .nav-tabs .tab-item.selected { | ||
| 16 | - border-bottom-color: {{ Setting::get('app-color') }}; | ||
| 17 | - } | ||
| 18 | - p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus { | ||
| 19 | - color: {{ Setting::get('app-color') }}; | ||
| 20 | - } | ||
| 21 | - </style> | ||
| 22 | -@endif | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<style> | ||
| 2 | + header, #back-to-top, .primary-background { | ||
| 3 | + background-color: {{ Setting::get('app-color') }} !important; | ||
| 4 | + } | ||
| 5 | + .faded-small, .primary-background-light { | ||
| 6 | + background-color: {{ Setting::get('app-color-light') }}; | ||
| 7 | + } | ||
| 8 | + .button-base, .button, input[type="button"], input[type="submit"] { | ||
| 9 | + background-color: {{ Setting::get('app-color') }}; | ||
| 10 | + } | ||
| 11 | + .button-base:hover, .button:hover, input[type="button"]:hover, input[type="submit"]:hover, .button:focus { | ||
| 12 | + background-color: {{ Setting::get('app-color') }}; | ||
| 13 | + } | ||
| 14 | + .nav-tabs a.selected, .nav-tabs .tab-item.selected { | ||
| 15 | + border-bottom-color: {{ Setting::get('app-color') }}; | ||
| 16 | + } | ||
| 17 | + p.primary:hover, p .primary:hover, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus { | ||
| 18 | + color: {{ Setting::get('app-color') }}; | ||
| 19 | + } | ||
| 20 | +</style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | 1 | ||
| 2 | -<div class="notification anim pos" @if(!Session::has('success')) style="display:none;" @endif> | 2 | +<div class="notification anim pos" @if(!session()->has('success')) style="display:none;" @endif> |
| 3 | - <i class="zmdi zmdi-check-circle"></i> <span>{!! nl2br(htmlentities(Session::get('success'))) !!}</span> | 3 | + <i class="zmdi zmdi-check-circle"></i> <span>{!! nl2br(htmlentities(session()->get('success'))) !!}</span> |
| 4 | </div> | 4 | </div> |
| 5 | 5 | ||
| 6 | -<div class="notification anim warning stopped" @if(!Session::has('warning')) style="display:none;" @endif> | 6 | +<div class="notification anim warning stopped" @if(!session()->has('warning')) style="display:none;" @endif> |
| 7 | - <i class="zmdi zmdi-info"></i> <span>{!! nl2br(htmlentities(Session::get('warning'))) !!}</span> | 7 | + <i class="zmdi zmdi-info"></i> <span>{!! nl2br(htmlentities(session()->get('warning'))) !!}</span> |
| 8 | </div> | 8 | </div> |
| 9 | 9 | ||
| 10 | -<div class="notification anim neg stopped" @if(!Session::has('error')) style="display:none;" @endif> | 10 | +<div class="notification anim neg stopped" @if(!session()->has('error')) style="display:none;" @endif> |
| 11 | - <i class="zmdi zmdi-alert-circle"></i> <span>{!! nl2br(htmlentities(Session::get('error'))) !!}</span> | 11 | + <i class="zmdi zmdi-alert-circle"></i> <span>{!! nl2br(htmlentities(session()->get('error'))) !!}</span> |
| 12 | </div> | 12 | </div> | ... | ... |
-
Please register or sign in to post a comment