🔧 🚩 🚧 Finished the components variable replace content.

This commit is contained in:
凡梦星尘
2022-05-21 19:18:19 +08:00
parent b105452feb
commit c27081fd26
14 changed files with 63 additions and 37 deletions

View File

@@ -1,24 +1,24 @@
@if hexo-config('reading_progress.enable') {
@if $reading_progress_enable {
.reading-progress-bar {
--progress: 0;
background: convert(hexo-config('reading_progress.color'));
height: convert(hexo-config('reading_progress.height'));
background: convert($reading_progress_color);
height: convert($reading_progress_height);
position: fixed;
z-index: $zindex-5;
@if hexo-config('reading_progress.reversed') {
@if $reading_progress_reversed {
width: calc(100% - var(--progress));
} @else {
width: var(--progress);
}
@if hexo-config('reading_progress.start_at') == 'right' {
@if $reading_progress_start == 'right' {
right: 0;
} @else {
left: 0;
}
@if hexo-config('reading_progress.position') == 'bottom' {
@if $reading_progress_position == 'bottom' {
bottom: 0;
} @else {
top: 0;

View File

@@ -1,4 +1,4 @@
if (hexo-config('disqusjs.enable') and hexo-config('darkmode')) {
@if $disqusjs_enable and $darkmode {
@media (prefers-color-scheme:dark) {
html #dsqjs a {
color: var(--link-color)

View File

@@ -1,4 +1,4 @@
@if hexo-config('gitalk.enable') {
@if $gitalk_enable {
.gt-header a, .gt-comments a, .gt-popup a {
border-bottom: 0;
}

View File

@@ -0,0 +1,7 @@
@if $gitter_enable {
.gitter-open-chat-button {
$alignment : sidebar-toggle-alignment(false);
#{$alignment[0]}: auto !important;
#{$alignment[1]}: 10px !important;
}
}

View File

@@ -1,7 +0,0 @@
if (hexo-config('gitter.enable')) {
.gitter-open-chat-button {
$alignment = sidebar-toggle-alignment(false);
{$alignment[0]}: auto !important;
{$alignment[1]}: 10px !important;
}
}

View File

@@ -1,4 +1,4 @@
@if hexo-config('math.mathjax.enable') {
@if $math_mathjax_enable {
mjx-container[jax='CHTML'][display='true'], .has-jax {
overflow: auto hidden;
}

View File

@@ -1,4 +1,4 @@
@if hexo-config('related_posts.enable') {
@if $related_posts_enable {
.popular-posts-header {
border-bottom: 1px solid $gainsboro;
font-size: $font-size-large;

View File

@@ -1,4 +1,4 @@
@if hexo-config('local_search.enable') or hexo-config('algolia_search.enable') {
@if $local_search_enable or $algolia_search_enable {
.search-active {
overflow: hidden;
}
@@ -56,7 +56,7 @@
.search-header {
background: $gainsboro;
if (hexo-config('darkmode')) {
@if $darkmode {
@media (prefers-color-scheme: dark) {
background: $grey-dim;
}
@@ -108,7 +108,7 @@
}
}
@if hexo-config('algolia_search.enable') {
@if $algolia_search_enable {
.search-input-container {
flex-grow: 1;
@@ -149,7 +149,7 @@
}
}
@if hexo-config('local_search.enable') {
@if $local_search_enable {
.search-popup {
.search-input-container {
flex-grow: 1;

View File

@@ -1,4 +1,4 @@
@if hexo-config('utterances.enable') {
@if $utterances_enable {
.utterances {
max-width: unset;
}