Added custom css files

This commit is contained in:
Deon George 2019-03-28 11:16:50 +11:00
parent 05dbcaf6c4
commit 6d84613158
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
3 changed files with 55 additions and 43 deletions

View File

@ -30,9 +30,10 @@ return [
'signFacebook' => 'Sign in using Facebook', 'signFacebook' => 'Sign in using Facebook',
'signTwitter' => 'Sign in using Twitter', 'signTwitter' => 'Sign in using Twitter',
'signGoogle+' => 'Sign in using Google+', 'signGoogle+' => 'Sign in using Google+',
'signLinkedin' => 'Sign in using Linkedin', 'signLinkedin' => 'Sign in using Linkedin',
'signW3id' => 'Sign in using W3id', 'signW3id' => 'Sign in using W3id',
'signIBMid' => 'Sign in using IBMid', 'signIBMid' => 'Sign in using IBMid',
'signMeetup' => 'Sign in using Meetup',
'sendpassword' => 'Send Password Reset Link', 'sendpassword' => 'Send Password Reset Link',
'passwordreset' => 'Reset password', 'passwordreset' => 'Reset password',
'pagenotfound' => 'Page not found', 'pagenotfound' => 'Page not found',

View File

@ -16,8 +16,14 @@
<link rel="stylesheet" href="/css/adminlte.min.css"> <link rel="stylesheet" href="/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro --> <!-- Google Font: Source Sans Pro -->
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<!-- Printing Modifications --> @if(file_exists('css/social.css'))
<link rel="stylesheet" href="/css/print.css"> <!-- Social Logins -->
<link rel="stylesheet" href="/css/social.css">
@endif
@if(file_exists('css/print.css'))
<!-- Printing Modifications -->
<link rel="stylesheet" href="/css/print.css">
@endif
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@ -45,4 +51,9 @@
<!-- STYLESHEETS --> <!-- STYLESHEETS -->
{!! Asset::styles() !!} {!! Asset::styles() !!}
@if(file_exists('css/fixes.css'))
<!-- CSS Fixes -->
<link rel="stylesheet" href="/css/fixes.css">
@endif
</head> </head>

View File

@ -5,51 +5,51 @@
<!-- AdminLTE --> <!-- AdminLTE -->
<script src="/js/adminlte.min.js"></script> <script src="/js/adminlte.min.js"></script>
<!-- Our our CSRF token to each interaction -->
{{-- @todo Test that we are validating this, also axios should be doing this for us? --}}
<script type="text/javascript"> <script type="text/javascript">
$.ajaxSetup({ // Our CSRF token to each interaction
headers: { $.ajaxSetup({
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') headers: {
} 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}); }
});
$.AdminLTESidebarTweak = {}; $.AdminLTESidebarTweak = {};
$.AdminLTESidebarTweak.options = { $.AdminLTESidebarTweak.options = {
EnableRemember: true, EnableRemember: true,
//Removes the transition after page reload. //Removes the transition after page reload.
NoTransitionAfterReload: false NoTransitionAfterReload: false
}; };
$(function () { $(function () {
"use strict"; "use strict";
$("body").on("collapsed.lte.pushmenu", function(){ $("body").on("collapsed.lte.pushmenu", function(){
if($.AdminLTESidebarTweak.options.EnableRemember){ if($.AdminLTESidebarTweak.options.EnableRemember){
document.cookie = "toggleState=closed"; document.cookie = "toggleState=closed";
} }
}); });
$("body").on("expanded.lte.pushmenu", function(){ // @todo this is not firing.
if($.AdminLTESidebarTweak.options.EnableRemember){ $("body").on("expanded.lte.pushmenu", function(){
document.cookie = "toggleState=opened"; if($.AdminLTESidebarTweak.options.EnableRemember){
} document.cookie = "toggleState=opened";
}); }
});
if($.AdminLTESidebarTweak.options.EnableRemember){ if($.AdminLTESidebarTweak.options.EnableRemember){
var re = new RegExp('toggleState' + "=([^;]+)"); var re = new RegExp('toggleState' + "=([^;]+)");
var value = re.exec(document.cookie); var value = re.exec(document.cookie);
var toggleState = (value != null) ? unescape(value[1]) : null; var toggleState = (value != null) ? unescape(value[1]) : null;
if(toggleState == 'closed'){ if(toggleState == 'closed'){
if($.AdminLTESidebarTweak.options.NoTransitionAfterReload){ if($.AdminLTESidebarTweak.options.NoTransitionAfterReload){
$("body").addClass('sidebar-collapse hold-transition').delay(100).queue(function(){ $("body").addClass('sidebar-collapse hold-transition').delay(100).queue(function(){
$(this).removeClass('hold-transition'); $(this).removeClass('hold-transition');
}); });
}else{ }else{
$("body").addClass('sidebar-collapse'); $("body").addClass('sidebar-collapse');
} }
} }
} }
}); });
</script> </script>