Code style update

This commit is contained in:
Mimi 2020-12-08 00:43:02 +08:00
parent 8b3cd82c0d
commit 90962975c6
12 changed files with 20 additions and 22 deletions

View File

@ -6,7 +6,7 @@
transition: bottom $transition-ease;
sidebar-toggle();
if (!hexo-config('back2top.scrollpercent')) {
if (not hexo-config('back2top.scrollpercent')) {
width: 24px;
}

View File

@ -2,7 +2,7 @@ if (hexo-config('back2top.enable')) {
.back-to-top {
font-size: $b2t-font-size;
if (!hexo-config('back2top.scrollpercent')) {
if (not hexo-config('back2top.scrollpercent')) {
span {
display: none;
}
@ -14,7 +14,7 @@ if (hexo-config('back2top.enable')) {
.noscript-warning {
background-color: lighten($red, 20%);
color: #fff;
color: white;
font-family: sans-serif;
font-size: 1rem;
font-weight: bold;

View File

@ -101,7 +101,7 @@
}
.post-meta-item-text {
if (!hexo-config('post_meta.item_text')) {
if (not hexo-config('post_meta.item_text')) {
display: none;
}

View File

@ -29,12 +29,12 @@
}
+tablet-mobile() {
if (hexo-config('local_search.enable') || hexo-config('algolia_search.enable')) {
if (hexo-config('local_search.enable') or hexo-config('algolia_search.enable')) {
display: none;
}
svg {
if (($scheme == 'Pisces') || ($scheme == 'Gemini')) {
if (($scheme == 'Pisces') or ($scheme == 'Gemini')) {
color: $bg-color;
fill: white;
}

View File

@ -3,7 +3,7 @@
font-size: $font-size-smaller;
}
if (!hexo-config('social_icons.icons_only')) {
if (not hexo-config('social_icons.icons_only')) {
.fa, .fab, .far, .fas {
margin-right: 2px;
}

View File

@ -21,7 +21,7 @@
overflow: hidden;
text-overflow: ellipsis;
if (!hexo-config('toc.wrap')) {
if (not hexo-config('toc.wrap')) {
white-space: nowrap;
}
}

View File

@ -48,7 +48,7 @@ kbd {
white-space: nowrap;
}
// `highlight.line_number: false` && `highlight.wrap: false`
// `highlight.line_number: false` and `highlight.wrap: false`
// in Hexo config generates code.highlight elements
figure.highlight {
@extend $code-block;

View File

@ -77,15 +77,13 @@
border-color: $note-modern-border[$type];
color: $note-modern-text[$type];
a {
&:not(.btn) {
border-bottom-color: $note-modern-text[$type];
color: $note-modern-text[$type];
a:not(.btn) {
border-bottom-color: $note-modern-text[$type];
color: $note-modern-text[$type];
&:hover {
border-bottom-color: $note-modern-hover[$type];
color: $note-modern-hover[$type];
}
&:hover {
border-bottom-color: $note-modern-hover[$type];
color: $note-modern-hover[$type];
}
}
}

View File

@ -122,7 +122,7 @@ main-container() {
sidebar-toggle-position($reverse = false) {
$condition = hexo-config('sidebar.position') == 'right';
if (($scheme == 'Muse') || ($scheme == 'Mist')) {
if (($scheme == 'Muse') or ($scheme == 'Mist')) {
$condition = $condition == $reverse;
}
if ($condition) {

View File

@ -31,7 +31,7 @@ if (hexo-config('sidebar.position') == 'right') {
.sidebar {
background: $black-deep;
bottom: 0;
if (!hexo-config('back2top.sidebar')) {
if (not hexo-config('back2top.sidebar')) {
box-shadow: inset 0 2px 6px black;
}
position: fixed;

View File

@ -31,7 +31,7 @@
}
}
if (!hexo-config('menu_settings.badges')) {
if (not hexo-config('menu_settings.badges')) {
.main-menu .menu-item-active::after {
background: $grey;
border-radius: 50%;

View File

@ -9,7 +9,7 @@
display: none;
}
if (hexo-config('motion.enable') && hexo-config('motion.transition.sidebar')) {
if (hexo-config('motion.enable') and hexo-config('motion.transition.sidebar')) {
visibility: hidden;
}
}
@ -58,7 +58,7 @@
.links-of-author-item {
sidebar-inline-links-item();
if (!hexo-config('social_icons.icons_only')) {
if (not hexo-config('social_icons.icons_only')) {
width: 50%;
}