Optimize blockquote-center & post-tags style

This commit is contained in:
Mimi 2020-06-26 13:01:11 +08:00
parent ee4b27a5f9
commit 0259b95123
3 changed files with 9 additions and 8 deletions

View File

@ -8,9 +8,7 @@
function centerQuote(args, content) {
return `<blockquote class="blockquote-center">
<i class="fa fa-quote-left"></i>
${hexo.render.renderSync({ text: content, engine: 'markdown' })}
<i class="fa fa-quote-right"></i>
</blockquote>`;
}

View File

@ -6,23 +6,26 @@
position: relative;
text-align: center;
.fa {
display: block;
&::before, &::after {
left: 0;
line-height: 1;
opacity: .6;
position: absolute;
width: 100%;
}
.fa-quote-left {
&::before {
border-top: 1px solid $grey-light;
text-align: left;
top: -20px;
font-family-icons('\f10d');
}
.fa-quote-right {
&::after {
border-bottom: 1px solid $grey-light;
bottom: -20px;
text-align: right;
font-family-icons('\f10e');
}
p, div {

View File

@ -31,12 +31,12 @@
text-align: left;
a {
background: $whitesmoke;
background: var(--content-bg-color);
border-bottom: none;
padding: 1px 5px;
&:hover {
background: $grey-light;
background: var(--menu-item-bg-color);
}
}
}