mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Optimize blockquote-center & post-tags style
This commit is contained in:
parent
ee4b27a5f9
commit
0259b95123
@ -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>`;
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user