[opt] css
This commit is contained in:
parent
801e3dc610
commit
540f93eaed
|
@ -32,11 +32,11 @@ page.cmt = cmt;
|
||||||
%>
|
%>
|
||||||
<% if (loadComment) { %>
|
<% if (loadComment) { %>
|
||||||
<div class='related-wrap md-text reveal' id="comments">
|
<div class='related-wrap md-text reveal' id="comments">
|
||||||
<div class='cmt-title cap theme'>
|
<section class='header cmt-title cap theme'>
|
||||||
<%- page.comment_title != undefined ? markdown(page.comment_title) : __('meta.comment_title') %>
|
<%- page.comment_title != undefined ? markdown(page.comment_title) : __('meta.comment_title') %>
|
||||||
</div>
|
</section>
|
||||||
<div class='cmt-body <%- cmt.service %>'>
|
<section class='body cmt-body <%- cmt.service %>'>
|
||||||
<%- partial(cmt.service + '/layout') %>
|
<%- partial(cmt.service + '/layout') %>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
@ -63,7 +63,7 @@ function layoutDiv(fallback) {
|
||||||
|
|
||||||
var el = '';
|
var el = '';
|
||||||
if (type.length > 0) {
|
if (type.length > 0) {
|
||||||
el += '<widget class="widget-wrapper toc ' + type + '" id="toc">';
|
el += '<widget class="widget-wrapper toc ' + type + '" id="data-toc">';
|
||||||
if (page.layout !== 'wiki') {
|
if (page.layout !== 'wiki') {
|
||||||
// post 布局
|
// post 布局
|
||||||
el += layoutTocHeader(page.toc_title);
|
el += layoutTocHeader(page.toc_title);
|
||||||
|
|
|
@ -49,7 +49,8 @@ h1.article-title
|
||||||
a.headerlink:before
|
a.headerlink:before
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
|
||||||
|
.md-text.content:first-child
|
||||||
|
padding-top: 0
|
||||||
|
|
||||||
.md-text
|
.md-text
|
||||||
ul:not(:last-child),
|
ul:not(:last-child),
|
||||||
|
|
|
@ -84,7 +84,7 @@ article.md-text.content+.related-wrap
|
||||||
|
|
||||||
.related-wrap#comments
|
.related-wrap#comments
|
||||||
padding: 0 1rem
|
padding: 0 1rem
|
||||||
div.cmt-title
|
.cmt-title
|
||||||
p
|
p
|
||||||
margin: 0
|
margin: 0
|
||||||
font-size: inherit
|
font-size: inherit
|
||||||
|
@ -95,7 +95,7 @@ article.md-text.content+.related-wrap
|
||||||
color: $color-hover
|
color: $color-hover
|
||||||
&:before
|
&:before
|
||||||
display: none
|
display: none
|
||||||
div.cmt-body
|
.cmt-body
|
||||||
min-height: 150px
|
min-height: 150px
|
||||||
position: relative
|
position: relative
|
||||||
svg.loading
|
svg.loading
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
.md-text
|
||||||
|
.aplayer
|
||||||
|
border-radius: $border-block
|
|
@ -2,5 +2,5 @@
|
||||||
margin: 0 -4px
|
margin: 0 -4px
|
||||||
width: 'calc(100% + %s)' % 8px
|
width: 'calc(100% + %s)' % 8px
|
||||||
|
|
||||||
.related-wrap#comments div.cmt-body svg.loading
|
.related-wrap#comments .cmt-body svg.loading
|
||||||
top: 62px
|
top: 62px
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import 'aplayer'
|
||||||
|
|
||||||
// 根据主题配置加载
|
// 根据主题配置加载
|
||||||
if hexo-config('plugins.lazyload.enable')
|
if hexo-config('plugins.lazyload.enable')
|
||||||
@import 'lazyload'
|
@import 'lazyload'
|
||||||
|
|
|
@ -111,12 +111,12 @@ const init = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (topSeg) {
|
if (topSeg) {
|
||||||
$(".toc#toc a.toc-link").removeClass("active")
|
$("#data-toc a.toc-link").removeClass("active")
|
||||||
var link = "#" + topSeg.attr("id")
|
var link = "#" + topSeg.attr("id")
|
||||||
if (link != '#undefined') {
|
if (link != '#undefined') {
|
||||||
$('.toc#toc a.toc-link[href="' + encodeURI(link) + '"]').addClass("active")
|
$('#data-toc a.toc-link[href="' + encodeURI(link) + '"]').addClass("active")
|
||||||
} else {
|
} else {
|
||||||
$('.toc#toc a.toc-link:first').addClass("active")
|
$('#data-toc a.toc-link:first').addClass("active")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -124,7 +124,7 @@ const init = {
|
||||||
},
|
},
|
||||||
sidebar: () => {
|
sidebar: () => {
|
||||||
stellar.jQuery(() => {
|
stellar.jQuery(() => {
|
||||||
$(".toc#toc a.toc-link").click(function (e) {
|
$("#data-toc a.toc-link").click(function (e) {
|
||||||
l_body.classList.remove("sidebar");
|
l_body.classList.remove("sidebar");
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue