🔧 🚩 🚧 Finished all variables replace content.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@if hexo-config('follow_me') {
|
||||
@if $follow_me {
|
||||
.followme {
|
||||
color: $grey;
|
||||
padding: 1em 1.5em;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('creative_commons.post') {
|
||||
@if $creative_commons_post {
|
||||
.post-copyright ul {
|
||||
list-style: none;
|
||||
padding: .5em 1em;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
@if $sidebar_position == 'right' {
|
||||
.sidebar-active {
|
||||
@include desktop() {
|
||||
padding-right: $sidebar-desktop;
|
||||
@@ -31,7 +31,7 @@
|
||||
.sidebar {
|
||||
background: $black-deep;
|
||||
bottom: 0;
|
||||
@if not hexo-config('back2top.sidebar') {
|
||||
@if not $back2top_sidebar {
|
||||
box-shadow: inset 0 2px 6px black;
|
||||
}
|
||||
position: fixed;
|
||||
@@ -63,7 +63,7 @@
|
||||
margin-right: 10px;
|
||||
vertical-align: middle;
|
||||
|
||||
@if hexo-config('social_icons.transition') {
|
||||
@if $social_icons_transition {
|
||||
transition: all $transition-ease;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
@if hexo-config('links_settings.layout') == 'inline' {
|
||||
@if $links_settings_layout == 'inline' {
|
||||
display: inline-block;
|
||||
}
|
||||
padding: 2px 10px;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
justify-content: space-between;
|
||||
@include main-container();
|
||||
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
@if $sidebar_position == 'right' {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
@if hexo-config('sidebar.position') == 'right' {
|
||||
@if $sidebar_position == 'right' {
|
||||
padding-right: $sidebar-desktop + $sidebar-offset;
|
||||
} @else {
|
||||
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 {
|
||||
background: $grey;
|
||||
border-radius: 50%;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
@if hexo-config('motion.enable') and hexo-config('motion.transition.sidebar') {
|
||||
@if $motion_enable and $motion_transition_sidebar {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@
|
||||
.links-of-author-item {
|
||||
@include sidebar-inline-links-item();
|
||||
|
||||
@if not hexo-config('social_icons.icons_only') {
|
||||
@if not $social_icons_only {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
@@ -72,14 +72,14 @@
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
@if hexo-config('links_settings.layout') == 'inline' {
|
||||
@if $links_settings_layout == 'inline' {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
@include sidebar-inline-links-item();
|
||||
}
|
||||
}
|
||||
|
||||
@if hexo-config('back2top.sidebar') {
|
||||
@if $back2top_sidebar {
|
||||
// Only when back2top.sidebar is true, apply the following styles
|
||||
.back-to-top {
|
||||
background: var(--body-bg-color);
|
||||
|
||||
@@ -13,9 +13,10 @@ $theme_color_dark: {{ $P.themeColor.dark }};
|
||||
$theme_color_light: {{ $P.themeColor.light }};
|
||||
|
||||
// Header
|
||||
$bookmark_enable: {{ $P.bookmark.enable }};
|
||||
$bookmark_color: {{ $P.bookmark.color }};
|
||||
$bookmark_enable: {{ $P.bookmark.enable }};
|
||||
$github_banner_enable: {{ $P.githubBanner.enable }};
|
||||
$menu_settings_badges: {{ $P.menuSets.badges }};
|
||||
|
||||
// Footer
|
||||
$footer_icon_color: {{ $P.footer.icon.color }};
|
||||
@@ -26,6 +27,7 @@ $footer_beian_enable: {{ $P.footer.beian.enable }};
|
||||
$busuanzi_enable: {{ $P.busuanzi.enable }};
|
||||
$busuanzi_visitors: {{ $P.busuanzi.visitors }};
|
||||
$busuanzi_views: {{ $P.busuanzi.views }};
|
||||
$busuanzi_post_views: {{ $P.busuanzi.postViews }};
|
||||
|
||||
// Font
|
||||
$font_enable: {{ $P.font.enable }};
|
||||
@@ -48,15 +50,39 @@ $sidebar_padding: {{ $P.sidebar.padding }};
|
||||
$sidebar_position: {{ $P.sidebar.position }};
|
||||
$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_rounded: {{ $P.avatar.rounded }};
|
||||
$avatar_rounded: {{ $P.avatar.rounded }};
|
||||
$site_state: {{ $P.siteState }};
|
||||
$social_icons_only: {{ $P.socialIcons.iconsOnly }};
|
||||
$social_icons_transition: {{ $P.socialIcons.transition }};
|
||||
$links_settings_layout: {{ $P.linksSets.layout }};
|
||||
$toc_enable: {{ $P.toc.enable }};
|
||||
$toc_expand_all: {{ $P.toc.expandAll }};
|
||||
$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_icons: {{ $P.note.icons }};
|
||||
$note_light_bg_offset: {{ $P.note.lightBgOffset }};
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
// Schemes Layer
|
||||
// --------------------------------------------------
|
||||
// @import '"_schemes/" + theme.scheme';
|
||||
@import '_schemes/Gemini/';
|
||||
|
||||
|
||||
// Custom Layer
|
||||
|
||||
Reference in New Issue
Block a user