🔧 🚩 🚧 Finished all variables replace content.
This commit is contained in:
parent
ea3acab865
commit
e59a389508
@ -1,14 +1,14 @@
|
|||||||
@if hexo-config('back2top.enable') {
|
@if $back2top_enable {
|
||||||
.back-to-top {
|
.back-to-top {
|
||||||
font-size: $b2t-font-size;
|
font-size: $b2t-font-size;
|
||||||
|
|
||||||
@if not hexo-config('back2top.scrollpercent') {
|
@if not $back2top_scrollpercent {
|
||||||
span {
|
span {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('back2top.sidebar') {
|
@if $back2top_sidebar {
|
||||||
margin: 20px - $sidebar-offset -10px -20px;
|
margin: 20px - $sidebar-offset -10px -20px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity $transition-ease;
|
transition: opacity $transition-ease;
|
||||||
@ -29,7 +29,7 @@
|
|||||||
transition: bottom $transition-ease;
|
transition: bottom $transition-ease;
|
||||||
@include sidebar-toggle();
|
@include sidebar-toggle();
|
||||||
|
|
||||||
@if not hexo-config('back2top.scrollpercent') {
|
@if not $back2top_scrollpercent {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('darkmode') {
|
@if $darkmode {
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
@for $tag-cloud from 0 through 10 {
|
@for $tag-cloud from 0 through 10 {
|
||||||
$tag-cloud-color : mix($tag-cloud-end-dark, $tag-cloud-start-dark, $tag-cloud * 10);
|
$tag-cloud-color : mix($tag-cloud-end-dark, $tag-cloud-start-dark, $tag-cloud * 10);
|
||||||
|
@ -17,25 +17,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.use-motion {
|
.use-motion {
|
||||||
@if hexo-config('motion.transition.post_block') {
|
@if $motion_trans_post_block {
|
||||||
.post-block, .pagination, .comments {
|
.post-block, .pagination, .comments {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('motion.transition.post_header') {
|
@if $motion_trans_post_header {
|
||||||
.post-header {
|
.post-header {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('motion.transition.post_body') {
|
@if $motion_trans_post_body {
|
||||||
.post-body {
|
.post-body {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('motion.transition.coll_header') {
|
@if $motion_trans_coll_header {
|
||||||
.collection-header {
|
.collection-header {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include desktop() {
|
@include desktop() {
|
||||||
text-align: unquote(hexo-config('text_align.desktop'));
|
text-align: unquote($text_align_desktop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@include tablet-mobile() {
|
@include tablet-mobile() {
|
||||||
text-align: unquote(hexo-config('text_align.mobile'));
|
text-align: unquote($text_align_mobile);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@if hexo-config('follow_me') {
|
@if $follow_me {
|
||||||
.followme {
|
.followme {
|
||||||
color: $grey;
|
color: $grey;
|
||||||
padding: 1em 1.5em;
|
padding: 1em 1.5em;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('creative_commons.post') {
|
@if $creative_commons_post {
|
||||||
.post-copyright ul {
|
.post-copyright ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: .5em 1em;
|
padding: .5em 1em;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
margin: initial;
|
margin: initial;
|
||||||
@include word-wrap();
|
@include word-wrap();
|
||||||
|
|
||||||
@if hexo-config('post_edit.enable') {
|
@if $post_edit_enable {
|
||||||
.post-edit-link {
|
.post-edit-link {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
color: $grey;
|
color: $grey;
|
||||||
@ -99,7 +99,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post-meta-item-text {
|
.post-meta-item-text {
|
||||||
@if not hexo-config('post_meta.item_text') {
|
@if not $post_meta_item_text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +113,7 @@
|
|||||||
height: 0;
|
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 {
|
#busuanzi_container_page_pv {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('reward_settings.animation') {
|
@if $reward_settings_animation {
|
||||||
&:hover span {
|
&:hover span {
|
||||||
animation: next-roll .1s infinite linear;
|
animation: next-roll .1s infinite linear;
|
||||||
// The animation may affect :hover of img in dark mode
|
// The animation may affect :hover of img in dark mode
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@if hexo-config('sidebar.position') == 'right' {
|
@if $sidebar_position == 'right' {
|
||||||
.sidebar-active {
|
.sidebar-active {
|
||||||
@include desktop() {
|
@include desktop() {
|
||||||
padding-right: $sidebar-desktop;
|
padding-right: $sidebar-desktop;
|
||||||
@ -31,7 +31,7 @@
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
background: $black-deep;
|
background: $black-deep;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@if not hexo-config('back2top.sidebar') {
|
@if not $back2top_sidebar {
|
||||||
box-shadow: inset 0 2px 6px black;
|
box-shadow: inset 0 2px 6px black;
|
||||||
}
|
}
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -63,7 +63,7 @@
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
@if hexo-config('social_icons.transition') {
|
@if $social_icons_transition {
|
||||||
transition: all $transition-ease;
|
transition: all $transition-ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.links-of-blogroll-item {
|
.links-of-blogroll-item {
|
||||||
@if hexo-config('links_settings.layout') == 'inline' {
|
@if $links_settings_layout == 'inline' {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@include main-container();
|
@include main-container();
|
||||||
|
|
||||||
@if hexo-config('sidebar.position') == 'right' {
|
@if $sidebar_position == 'right' {
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.footer-inner {
|
.footer-inner {
|
||||||
@if hexo-config('sidebar.position') == 'right' {
|
@if $sidebar_position == 'right' {
|
||||||
padding-right: $sidebar-desktop + $sidebar-offset;
|
padding-right: $sidebar-desktop + $sidebar-offset;
|
||||||
} @else {
|
} @else {
|
||||||
padding-left: $sidebar-desktop + $sidebar-offset;
|
padding-left: $sidebar-desktop + $sidebar-offset;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if not hexo-config('menu_settings.badges') {
|
@if not $menu_settings_badges {
|
||||||
.main-menu .menu-item-active::after {
|
.main-menu .menu-item-active::after {
|
||||||
background: $grey;
|
background: $grey;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('motion.enable') and hexo-config('motion.transition.sidebar') {
|
@if $motion_enable and $motion_transition_sidebar {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@
|
|||||||
.links-of-author-item {
|
.links-of-author-item {
|
||||||
@include sidebar-inline-links-item();
|
@include sidebar-inline-links-item();
|
||||||
|
|
||||||
@if not hexo-config('social_icons.icons_only') {
|
@if not $social_icons_only {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,14 +72,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.links-of-blogroll-item {
|
.links-of-blogroll-item {
|
||||||
@if hexo-config('links_settings.layout') == 'inline' {
|
@if $links_settings_layout == 'inline' {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@include sidebar-inline-links-item();
|
@include sidebar-inline-links-item();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if hexo-config('back2top.sidebar') {
|
@if $back2top_sidebar {
|
||||||
// Only when back2top.sidebar is true, apply the following styles
|
// Only when back2top.sidebar is true, apply the following styles
|
||||||
.back-to-top {
|
.back-to-top {
|
||||||
background: var(--body-bg-color);
|
background: var(--body-bg-color);
|
||||||
|
@ -13,9 +13,10 @@ $theme_color_dark: {{ $P.themeColor.dark }};
|
|||||||
$theme_color_light: {{ $P.themeColor.light }};
|
$theme_color_light: {{ $P.themeColor.light }};
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
$bookmark_enable: {{ $P.bookmark.enable }};
|
|
||||||
$bookmark_color: {{ $P.bookmark.color }};
|
$bookmark_color: {{ $P.bookmark.color }};
|
||||||
|
$bookmark_enable: {{ $P.bookmark.enable }};
|
||||||
$github_banner_enable: {{ $P.githubBanner.enable }};
|
$github_banner_enable: {{ $P.githubBanner.enable }};
|
||||||
|
$menu_settings_badges: {{ $P.menuSets.badges }};
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
$footer_icon_color: {{ $P.footer.icon.color }};
|
$footer_icon_color: {{ $P.footer.icon.color }};
|
||||||
@ -26,6 +27,7 @@ $footer_beian_enable: {{ $P.footer.beian.enable }};
|
|||||||
$busuanzi_enable: {{ $P.busuanzi.enable }};
|
$busuanzi_enable: {{ $P.busuanzi.enable }};
|
||||||
$busuanzi_visitors: {{ $P.busuanzi.visitors }};
|
$busuanzi_visitors: {{ $P.busuanzi.visitors }};
|
||||||
$busuanzi_views: {{ $P.busuanzi.views }};
|
$busuanzi_views: {{ $P.busuanzi.views }};
|
||||||
|
$busuanzi_post_views: {{ $P.busuanzi.postViews }};
|
||||||
|
|
||||||
// Font
|
// Font
|
||||||
$font_enable: {{ $P.font.enable }};
|
$font_enable: {{ $P.font.enable }};
|
||||||
@ -48,15 +50,39 @@ $sidebar_padding: {{ $P.sidebar.padding }};
|
|||||||
$sidebar_position: {{ $P.sidebar.position }};
|
$sidebar_position: {{ $P.sidebar.position }};
|
||||||
$sidebar_width: {{ $P.sidebar.width }};
|
$sidebar_width: {{ $P.sidebar.width }};
|
||||||
|
|
||||||
|
$motion_enable: {{ $P.motion.enable }};
|
||||||
|
$motion_transition_sidebar: {{ $P.motion.transition.sidebar }};
|
||||||
|
|
||||||
|
$back2top_enable: {{ $P.backTop.enable }};
|
||||||
|
$back2top_scrollpercent: {{ $P.backTop.scrollpercent }};
|
||||||
|
$back2top_sidebar: {{ $P.backTop.sidebar }};
|
||||||
|
|
||||||
$avatar_rotated: {{ $P.avatar.rotated }};
|
$avatar_rotated: {{ $P.avatar.rotated }};
|
||||||
$avatar_rounded: {{ $P.avatar.rounded }};
|
$avatar_rounded: {{ $P.avatar.rounded }};
|
||||||
$avatar_rounded: {{ $P.avatar.rounded }};
|
$avatar_rounded: {{ $P.avatar.rounded }};
|
||||||
$site_state: {{ $P.siteState }};
|
$site_state: {{ $P.siteState }};
|
||||||
$social_icons_only: {{ $P.socialIcons.iconsOnly }};
|
$social_icons_only: {{ $P.socialIcons.iconsOnly }};
|
||||||
|
$social_icons_transition: {{ $P.socialIcons.transition }};
|
||||||
|
$links_settings_layout: {{ $P.linksSets.layout }};
|
||||||
$toc_enable: {{ $P.toc.enable }};
|
$toc_enable: {{ $P.toc.enable }};
|
||||||
$toc_expand_all: {{ $P.toc.expandAll }};
|
$toc_expand_all: {{ $P.toc.expandAll }};
|
||||||
$toc_wrap: {{ $P.toc.wrap }};
|
$toc_wrap: {{ $P.toc.wrap }};
|
||||||
|
|
||||||
|
// Posts
|
||||||
|
$creative_commons_post: {{ $P.creativeCommons.post }};
|
||||||
|
$follow_me: {{ isset $P "followMe" }};
|
||||||
|
$motion_trans_coll_header: {{ $P.motion.transition.collHeader }};
|
||||||
|
$motion_trans_post_block: {{ $P.motion.transition.postBlock }};
|
||||||
|
$motion_trans_post_body: {{ $P.motion.transition.postBody }};
|
||||||
|
$motion_trans_post_header: {{ $P.motion.transition.postHeader }};
|
||||||
|
$post_edit_enable: {{ $P.postEdit.enable }};
|
||||||
|
$post_meta_item_text: {{ $P.postMeta.itemText }};
|
||||||
|
$reward_settings_animation: {{ $P.rewardSets.animation }};
|
||||||
|
|
||||||
|
// TODO find the paramters
|
||||||
|
$text_align_desktop: center;
|
||||||
|
$text_align_mobile: center;
|
||||||
|
|
||||||
// Note
|
// Note
|
||||||
$note_icons: {{ $P.note.icons }};
|
$note_icons: {{ $P.note.icons }};
|
||||||
$note_light_bg_offset: {{ $P.note.lightBgOffset }};
|
$note_light_bg_offset: {{ $P.note.lightBgOffset }};
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
// Schemes Layer
|
// Schemes Layer
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// @import '"_schemes/" + theme.scheme';
|
@import '_schemes/Gemini/';
|
||||||
|
|
||||||
|
|
||||||
// Custom Layer
|
// Custom Layer
|
||||||
|
@ -66,7 +66,7 @@ params:
|
|||||||
|
|
||||||
# Creative Commons 4.0 International License.
|
# Creative Commons 4.0 International License.
|
||||||
# See: https://creativecommons.org/about/cclicenses/
|
# See: https://creativecommons.org/about/cclicenses/
|
||||||
creative_commons:
|
creativeCommons:
|
||||||
# Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero
|
# Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero
|
||||||
license: by-nc-sa
|
license: by-nc-sa
|
||||||
# Available values: big | small
|
# Available values: big | small
|
||||||
@ -110,7 +110,7 @@ params:
|
|||||||
#commonweal: /404/ || fa fa-heartbeat
|
#commonweal: /404/ || fa fa-heartbeat
|
||||||
|
|
||||||
# Enable / Disable menu icons / item badges.
|
# Enable / Disable menu icons / item badges.
|
||||||
menu_settings:
|
menuSets:
|
||||||
icons: true
|
icons: true
|
||||||
badges: false
|
badges: false
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ params:
|
|||||||
transition: false
|
transition: false
|
||||||
|
|
||||||
# Blog rolls
|
# Blog rolls
|
||||||
links_settings:
|
linksSets:
|
||||||
icon: fa fa-globe
|
icon: fa fa-globe
|
||||||
title: Links
|
title: Links
|
||||||
# Available values: block | inline
|
# Available values: block | inline
|
||||||
@ -251,12 +251,12 @@ params:
|
|||||||
read_more_btn: true
|
read_more_btn: true
|
||||||
|
|
||||||
# Post meta display settings
|
# Post meta display settings
|
||||||
post_meta:
|
postMeta:
|
||||||
item_text: true
|
itemText: true
|
||||||
created_at: true
|
created: true
|
||||||
updated_at:
|
updated:
|
||||||
enable: true
|
enable: true
|
||||||
another_day: true
|
anotherDay: true
|
||||||
categories: true
|
categories: true
|
||||||
|
|
||||||
# Post wordcount display settings
|
# Post wordcount display settings
|
||||||
@ -270,7 +270,7 @@ params:
|
|||||||
|
|
||||||
# Donate (Sponsor) settings
|
# Donate (Sponsor) settings
|
||||||
# Front-matter variable (nonsupport animation).
|
# Front-matter variable (nonsupport animation).
|
||||||
reward_settings:
|
rewardSets:
|
||||||
# If true, a donate button will be displayed in every article by default.
|
# If true, a donate button will be displayed in every article by default.
|
||||||
enable: false
|
enable: false
|
||||||
animation: false
|
animation: false
|
||||||
@ -284,8 +284,8 @@ params:
|
|||||||
|
|
||||||
# Subscribe through Telegram Channel, Twitter, etc.
|
# Subscribe through Telegram Channel, Twitter, etc.
|
||||||
# Usage: `Key: permalink || icon` (Font Awesome)
|
# Usage: `Key: permalink || icon` (Font Awesome)
|
||||||
follow_me:
|
followMe:
|
||||||
#Twitter: https://twitter.com/username || fab fa-twitter
|
Twitter: https://twitter.com/username || fab fa-twitter
|
||||||
#Telegram: https://t.me/channel_name || fab fa-telegram
|
#Telegram: https://t.me/channel_name || fab fa-telegram
|
||||||
#WeChat: /images/wechat_channel.jpg || fab fa-weixin
|
#WeChat: /images/wechat_channel.jpg || fab fa-weixin
|
||||||
#RSS: /atom.xml || fa fa-rss
|
#RSS: /atom.xml || fa fa-rss
|
||||||
@ -299,14 +299,14 @@ params:
|
|||||||
|
|
||||||
# Post edit
|
# Post edit
|
||||||
# Easily browse and edit blog source code online.
|
# Easily browse and edit blog source code online.
|
||||||
post_edit:
|
postEdit:
|
||||||
enable: false
|
enable: false
|
||||||
url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source
|
url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source
|
||||||
#url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ # Link for fork & edit
|
#url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ # Link for fork & edit
|
||||||
|
|
||||||
# Show previous post and next post in post footer if exists
|
# Show previous post and next post in post footer if exists
|
||||||
# Available values: left | right | false
|
# Available values: left | right | false
|
||||||
post_navigation: left
|
postNavigation: left
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
@ -381,7 +381,7 @@ params:
|
|||||||
# Available values: default | flat | mac
|
# Available values: default | flat | mac
|
||||||
style: default
|
style: default
|
||||||
|
|
||||||
back2top:
|
backTop:
|
||||||
enable: true
|
enable: true
|
||||||
# Back to top in sidebar.
|
# Back to top in sidebar.
|
||||||
sidebar: false
|
sidebar: false
|
||||||
@ -849,10 +849,10 @@ params:
|
|||||||
async: false
|
async: false
|
||||||
transition:
|
transition:
|
||||||
# All available transition variants: https://theme-next.js.org/animate/
|
# All available transition variants: https://theme-next.js.org/animate/
|
||||||
post_block: fadeIn
|
postBlock: fadeIn
|
||||||
post_header: fadeInDown
|
postHeader: fadeInDown
|
||||||
post_body: fadeInDown
|
postBody: fadeInDown
|
||||||
coll_header: fadeInLeft
|
collHeader: fadeInLeft
|
||||||
# Only for Pisces | Gemini.
|
# Only for Pisces | Gemini.
|
||||||
sidebar: fadeInUp
|
sidebar: fadeInUp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user