Fix style of home page

This commit is contained in:
Pig Fang 2018-08-07 09:25:20 +08:00
parent 0198cf84f5
commit 4e9c0b9d45
4 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,3 @@
@import "general.styl";
body {
font-size: 16px;
}

View File

@ -3,6 +3,10 @@
<!-- AdminLTE color scheme -->
<link rel="stylesheet" href="{{ url('public/skins/'.option('color_scheme').'.min.css') }}">
@if (isset($module))
<link rel="stylesheet" href="{{ url('public/'.$module.'.css') }}">
@endif
<!-- User custom styles -->
<style>{!! option('custom_css') !!}</style>
{{-- Content added by plugins dynamically --}}

View File

@ -8,7 +8,7 @@
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- App Styles -->
@include('common.dependencies.style', ['module' => 'index'])
@include('common.dependencies.style', ['module' => 'home'])
</head>
<body class="hold-transition {{ option('color_scheme') }} layout-top-nav">

View File

@ -20,7 +20,8 @@ module.exports = [{
'toastr/build/toastr.min.css',
'sweetalert2/dist/sweetalert2.min.css',
'./resources/assets/src/stylus/common.styl',
]
],
home: './resources/assets/src/stylus/home.styl'
},
output: {
path: __dirname + '/public',
@ -65,7 +66,7 @@ module.exports = [{
]
},
{
test: /common\.styl$/,
test: /(common|home)\.styl$/,
use: [
MiniCssExtractPlugin.loader,
{ loader: 'css-loader', options: { importLoaders: 3 } },