优化音乐馆pjax问题
This commit is contained in:
parent
7f07b3c7bd
commit
c24053e212
|
@ -34,21 +34,21 @@ body {
|
|||
display: block;
|
||||
}
|
||||
|
||||
body#htmlType-music .music-mask{
|
||||
body[data-type=music] .music-mask{
|
||||
display: none;
|
||||
}
|
||||
|
||||
body#htmlType-music #web_bg {
|
||||
body[data-type=music] #web_bg {
|
||||
display: none;
|
||||
}
|
||||
body#htmlType-music #page {
|
||||
body[data-type=music] #page {
|
||||
min-height: calc(0px)
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
body#htmlType-music .page .layout#content-inner {
|
||||
body[data-type=music] .page .layout#content-inner {
|
||||
background: 0 0!important;
|
||||
}
|
||||
body#htmlType-music #page-header.not-top-img:not(.nav-fixed) #nav{
|
||||
body[data-type=music] #page-header.not-top-img:not(.nav-fixed) #nav{
|
||||
background: 0 0!important;
|
||||
}
|
||||
}
|
||||
|
@ -60,8 +60,8 @@ body#htmlType-music #page {
|
|||
}
|
||||
|
||||
|
||||
body#htmlType-music #footer,
|
||||
body#htmlType-music #nav-music {
|
||||
body[data-type=music] #footer,
|
||||
body[data-type=music] #nav-music {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -574,7 +574,7 @@ body#htmlType-music #nav-music {
|
|||
right: 25px;
|
||||
top: -90px
|
||||
}
|
||||
body#htmlType-music .music-mask{
|
||||
body[data-type=music] .music-mask{
|
||||
position: fixed;
|
||||
z-index: 10;
|
||||
display: none;
|
||||
|
|
|
@ -637,9 +637,17 @@ function checkUrlAndAddHideBanner() {
|
|||
}
|
||||
}
|
||||
|
||||
function setBodyDataType(){
|
||||
var body = document.body;
|
||||
var att = document.createAttribute("data-type");
|
||||
att.value = GLOBAL_CONFIG.htmlType;
|
||||
body.setAttributeNode(att);
|
||||
}
|
||||
|
||||
function initBlog() {
|
||||
heo.initIndexEssay(),
|
||||
checkUrlAndAddHideBanner()
|
||||
checkUrlAndAddHideBanner(),
|
||||
setBodyDataType()
|
||||
}
|
||||
|
||||
// 如果当前页有评论就执行函数
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<title th:text="${site.title}"></title>
|
||||
</head>
|
||||
|
||||
<body th:id="${'htmlType-'+htmlType}">
|
||||
<body>
|
||||
|
||||
<!-- loading 页面 -->
|
||||
<div th:replace="~{modules/loading-box :: loading-box}"></div>
|
||||
|
|
Loading…
Reference in New Issue