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; transition: bottom $transition-ease;
sidebar-toggle(); sidebar-toggle();
if (!hexo-config('back2top.scrollpercent')) { if (not hexo-config('back2top.scrollpercent')) {
width: 24px; width: 24px;
} }

View File

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

View File

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

View File

@ -29,12 +29,12 @@
} }
+tablet-mobile() { +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; display: none;
} }
svg { svg {
if (($scheme == 'Pisces') || ($scheme == 'Gemini')) { if (($scheme == 'Pisces') or ($scheme == 'Gemini')) {
color: $bg-color; color: $bg-color;
fill: white; fill: white;
} }

View File

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

View File

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

View File

@ -48,7 +48,7 @@ kbd {
white-space: nowrap; 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 // in Hexo config generates code.highlight elements
figure.highlight { figure.highlight {
@extend $code-block; @extend $code-block;

View File

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

View File

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

View File

@ -31,7 +31,7 @@ if (hexo-config('sidebar.position') == 'right') {
.sidebar { .sidebar {
background: $black-deep; background: $black-deep;
bottom: 0; bottom: 0;
if (!hexo-config('back2top.sidebar')) { if (not hexo-config('back2top.sidebar')) {
box-shadow: inset 0 2px 6px black; box-shadow: inset 0 2px 6px black;
} }
position: fixed; 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 { .main-menu .menu-item-active::after {
background: $grey; background: $grey;
border-radius: 50%; border-radius: 50%;

View File

@ -9,7 +9,7 @@
display: none; 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; visibility: hidden;
} }
} }
@ -58,7 +58,7 @@
.links-of-author-item { .links-of-author-item {
sidebar-inline-links-item(); sidebar-inline-links-item();
if (!hexo-config('social_icons.icons_only')) { if (not hexo-config('social_icons.icons_only')) {
width: 50%; width: 50%;
} }