重构代码:移除site-footer样式,直接使用footer

This commit is contained in:
Argo-MacBookPro 2018-11-10 21:37:43 +08:00
parent f20c8bf172
commit 0e9b2f7890
13 changed files with 18 additions and 20 deletions

View File

@ -17,7 +17,7 @@
$('#useragent').text(navigator.userAgent);
$('#versions').text(JSON.stringify(browser.versions));
$('.site-footer').footer();
$('footer').footer();
};
</script>
}

View File

@ -1,5 +1,5 @@
@model ModelBase
<footer class="site-footer position-fixed">
<footer class="position-fixed">
<span id="websiteFooter">@Model.Footer</span>
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
<i class="fa fa-angle-up"></i>

View File

@ -61,7 +61,7 @@
transform: translate(0);
}
.header, .site-footer {
.header, footer {
position: fixed;
}
@ -77,7 +77,7 @@
transform: translate(-100%);
}
.sidebar-open .site-footer {
.sidebar-open footer {
display: flex;
}

View File

@ -15,7 +15,7 @@ body {
transform: translate(0);
}
.sidebar-open .site-footer {
.sidebar-open footer {
display: none;
}
@ -297,7 +297,7 @@ a, a:hover, a:focus {
}
/*end title*/
.site-footer {
footer {
background: #5b6e84;
color: #fff;
padding: 10px 4px;
@ -309,7 +309,7 @@ a, a:hover, a:focus {
display: flex;
}
.site-footer > span {
footer > span {
flex: 1 1 auto;
text-align: center;
margin-left: 4px;

View File

@ -267,10 +267,9 @@
showRefresh: true, //是否显示刷新按钮
showToggle: true, //是否显示详细视图和列表视图的切换按钮
cardView: $(window).width() < 768, //是否显示详细视图
footer: '.site-footer',
queryButton: '#btn_query',
onLoadSuccess: function () {
$(settings.footer).footer();
$('footer').footer();
}
}, options);
settings.url = $.formatUrl(settings.url);

View File

@ -58,7 +58,7 @@
this._initZoom();
};
$('.site-footer').footer();
$('footer').footer();
var dataBinder = new DataEntity({
Password: "#currentPassword",

View File

@ -78,7 +78,7 @@
});
}
$refresh.removeClass('fa-spin');
$('.site-footer').footer();
$('footer').footer();
}
});
};

View File

@ -12,7 +12,7 @@
return $.format(htmlTask, task.TaskName, task.UserName, task.AssignTime, task.Id);
}).join('');
$('#list-task').html(content);
$('.site-footer').footer();
$('footer').footer();
}
that.toggleClass('fa-spin');
}

View File

@ -1,5 +1,5 @@
@model ModelBase
<footer class="site-footer position-fixed">
<footer class="position-fixed">
<span id="websiteFooter">@Model.Footer</span>
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
<i class="fa fa-angle-up"></i>

View File

@ -44,7 +44,7 @@
transform: translate(-100%);
}
.sidebar-open .site-footer {
.sidebar-open footer {
display: flex;
}

View File

@ -15,7 +15,7 @@ body {
transform: translate(0);
}
.sidebar-open .site-footer, .sidebar-open .container-fluid {
.sidebar-open footer, .sidebar-open .container-fluid {
display: none;
}
@ -304,7 +304,7 @@ a, a:hover, a:focus {
}
/*end title*/
.site-footer {
footer {
background: #5b6e84;
color: #fff;
padding: 10px 4px;
@ -316,7 +316,7 @@ a, a:hover, a:focus {
display: flex;
}
.site-footer > span {
footer > span {
flex: 1 1 auto;
text-align: center;
margin-left: 4px;

View File

@ -24,7 +24,7 @@
$breadNav.removeClass('d-none').text(arch.text() || $('title').text());
$(window).on('resize', function () {
$('.site-footer').footer();
$('footer').footer();
});
$("#gotoTop").on('click', function (e) {

View File

@ -265,10 +265,9 @@
showRefresh: true, //是否显示刷新按钮
showToggle: true, //是否显示详细视图和列表视图的切换按钮
cardView: $(window).width() < 768, //是否显示详细视图
footer: '.site-footer',
queryButton: '#btn_query',
onLoadSuccess: function () {
$(settings.footer).footer();
$('footer').footer();
}
}, options);
settings.url = $.formatUrl(settings.url);