mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Code style update
This commit is contained in:
parent
8b3cd82c0d
commit
90962975c6
@ -6,7 +6,7 @@
|
||||
transition: bottom $transition-ease;
|
||||
sidebar-toggle();
|
||||
|
||||
if (!hexo-config('back2top.scrollpercent')) {
|
||||
if (not hexo-config('back2top.scrollpercent')) {
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
if (!hexo-config('toc.wrap')) {
|
||||
if (not hexo-config('toc.wrap')) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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%;
|
||||
|
||||
@ -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%;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user