重构代码:精简前台后台首页代码,移除js文件,精简样式代码

This commit is contained in:
Argo-Lenovo 2017-03-27 14:59:42 +08:00
parent 87743d83b2
commit 150473af3e
6 changed files with 26 additions and 24 deletions

View File

@ -232,7 +232,6 @@
<Content Include="packages.config" /> <Content Include="packages.config" />
<Content Include="Scripts\jquery-3.1.1.slim.min.map" /> <Content Include="Scripts\jquery-3.1.1.slim.min.map" />
<Content Include="Scripts\jquery-3.1.1.min.map" /> <Content Include="Scripts\jquery-3.1.1.min.map" />
<Content Include="Scripts\well.js" />
<Content Include="Views\Shared\Readme.txt" /> <Content Include="Views\Shared\Readme.txt" />
<Content Include="Web.config"> <Content Include="Web.config">
<SubType>Designer</SubType> <SubType>Designer</SubType>

View File

@ -5,7 +5,6 @@
font-size: 13px; font-size: 13px;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
@ -22,10 +21,6 @@ a, a:hover, a:focus {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.176); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.176);
} }
.well-bg {
color: #fff;
}
.card-view:not(:last-child) { .card-view:not(:last-child) {
margin-bottom: 6px; margin-bottom: 6px;
} }

View File

@ -1,6 +1,4 @@
$(function () { $(function () {
$('#navbar').attr('data-toggle', "dropdown").addClass('dropdown-toggle'); $('#navbar').attr('data-toggle', "dropdown").addClass('dropdown-toggle');
var $subMenu = $('#submenu'); $('#breadNav').hide();
var $breadNav = $('#breadNav');
$breadNav.hide();
}); });

View File

@ -1,12 +0,0 @@
$(function () {
$('#main-content').addClass('welcome-bg');
function resposive() {
var height = $(window).height();
if (height > 672)
$('.well-bg').height(height - 270);
else
$('.well-bg').height(height - 158);
}
$(window).on('load', resposive);
$(window).on('resize', resposive);
});

View File

@ -3,7 +3,22 @@
ViewBag.Title = "后台管理"; ViewBag.Title = "后台管理";
Layout = "~/Views/Shared/_Admin.cshtml"; Layout = "~/Views/Shared/_Admin.cshtml";
} }
@section Javascript { @section css {
<script src="~/scripts/well.js"></script> <style>
.site-footer, .main-content {
position: fixed;
} }
<div class="well-bg"><h4>欢迎使用后台管理</h4></div>
.main-content h4 {
color: #fff;
}
</style>
}
@section javascript {
<script>
$(function () {
$('#main-content').addClass('welcome-bg');
});
</script>
}
<div><h4>欢迎使用后台管理</h4></div>

View File

@ -3,6 +3,13 @@
ViewBag.Title = "首页"; ViewBag.Title = "首页";
Layout = "~/Views/Shared/_Normal.cshtml"; Layout = "~/Views/Shared/_Normal.cshtml";
} }
@section css {
<style>
.site-footer {
position: fixed;
}
</style>
}
@section javascript { @section javascript {
<script src="~/Scripts/Content.js"></script> <script src="~/Scripts/Content.js"></script>
} }