🔧 🚩 🚧 Finished all variables replace content.

This commit is contained in:
凡梦星尘
2022-05-21 21:48:27 +08:00
parent ea3acab865
commit e59a389508
15 changed files with 74 additions and 48 deletions

View File

@@ -1,14 +1,14 @@
@if hexo-config('back2top.enable') {
@if $back2top_enable {
.back-to-top {
font-size: $b2t-font-size;
@if not hexo-config('back2top.scrollpercent') {
@if not $back2top_scrollpercent {
span {
display: none;
}
}
@if hexo-config('back2top.sidebar') {
@if $back2top_sidebar {
margin: 20px - $sidebar-offset -10px -20px;
opacity: 0;
transition: opacity $transition-ease;
@@ -29,7 +29,7 @@
transition: bottom $transition-ease;
@include sidebar-toggle();
@if not hexo-config('back2top.scrollpercent') {
@if not $back2top_scrollpercent {
width: 24px;
}

View File

@@ -15,7 +15,7 @@
}
}
@if hexo-config('darkmode') {
@if $darkmode {
@media (prefers-color-scheme: dark) {
@for $tag-cloud from 0 through 10 {
$tag-cloud-color : mix($tag-cloud-end-dark, $tag-cloud-start-dark, $tag-cloud * 10);

View File

@@ -17,25 +17,25 @@
}
.use-motion {
@if hexo-config('motion.transition.post_block') {
@if $motion_trans_post_block {
.post-block, .pagination, .comments {
visibility: hidden;
}
}
@if hexo-config('motion.transition.post_header') {
@if $motion_trans_post_header {
.post-header {
visibility: hidden;
}
}
@if hexo-config('motion.transition.post_body') {
@if $motion_trans_post_body {
.post-body {
visibility: hidden;
}
}
@if hexo-config('motion.transition.coll_header') {
@if $motion_trans_coll_header {
.collection-header {
visibility: hidden;
}

View File

@@ -7,11 +7,11 @@
}
@include desktop() {
text-align: unquote(hexo-config('text_align.desktop'));
text-align: unquote($text_align_desktop);
}
@include tablet-mobile() {
text-align: unquote(hexo-config('text_align.mobile'));
text-align: unquote($text_align_mobile);
}
h1, h2, h3, h4, h5, h6 {

View File

@@ -1,4 +1,4 @@
@if hexo-config('follow_me') {
@if $follow_me {
.followme {
color: $grey;
padding: 1em 1.5em;

View File

@@ -18,7 +18,7 @@
}
}
@if hexo-config('creative_commons.post') {
@if $creative_commons_post {
.post-copyright ul {
list-style: none;
padding: .5em 1em;

View File

@@ -10,7 +10,7 @@
margin: initial;
@include word-wrap();
@if hexo-config('post_edit.enable') {
@if $post_edit_enable {
.post-edit-link {
border-bottom: 0;
color: $grey;
@@ -99,7 +99,7 @@
}
.post-meta-item-text {
@if not hexo-config('post_meta.item_text') {
@if not $post_meta_item_text {
display: none;
}
@@ -113,7 +113,7 @@
height: 0;
}
@if hexo-config('busuanzi_count.enable') and hexo-config('busuanzi_count.post_views') {
@if $busuanzi_enable and $busuanzi_post_views {
#busuanzi_container_page_pv {
display: none;
}

View File

@@ -28,7 +28,7 @@
display: block;
}
@if hexo-config('reward_settings.animation') {
@if $reward_settings_animation {
&:hover span {
animation: next-roll .1s infinite linear;
// The animation may affect :hover of img in dark mode