2025-2-26-fixed
This commit is contained in:
27
themes/next/source/css/_schemes/Pisces/_header.styl
Normal file
27
themes/next/source/css/_schemes/Pisces/_header.styl
Normal file
@ -0,0 +1,27 @@
|
||||
.site-brand-container {
|
||||
background: $black-deep;
|
||||
|
||||
+tablet-mobile() {
|
||||
box-shadow: 0 0 16px rgba(0, 0, 0, .5);
|
||||
}
|
||||
}
|
||||
|
||||
.site-meta {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.brand {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.site-subtitle {
|
||||
margin: 10px 10px 0;
|
||||
}
|
||||
|
||||
.custom-logo-image {
|
||||
margin-top: 20px;
|
||||
|
||||
+tablet-mobile() {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
102
themes/next/source/css/_schemes/Pisces/_layout.styl
Normal file
102
themes/next/source/css/_schemes/Pisces/_layout.styl
Normal file
@ -0,0 +1,102 @@
|
||||
.header {
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
width: $content-desktop;
|
||||
|
||||
+desktop-large() {
|
||||
width: $content-desktop-large;
|
||||
}
|
||||
|
||||
+desktop-largest() {
|
||||
width: $content-desktop-largest;
|
||||
}
|
||||
|
||||
+tablet-mobile() {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius-inner;
|
||||
box-shadow: $box-shadow-inner;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: $sidebar-desktop;
|
||||
|
||||
+desktop-large() {
|
||||
width: $sidebar-desktop;
|
||||
}
|
||||
|
||||
+tablet-mobile() {
|
||||
border-radius: initial;
|
||||
position: relative;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.main-inner {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
if (hexo-config('sidebar.position') != 'right') {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
+tablet-mobile() {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.content-wrap {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius-inner;
|
||||
box-shadow: $box-shadow-inner;
|
||||
box-sizing: border-box;
|
||||
padding: $content-desktop-padding;
|
||||
width: $content-wrap;
|
||||
|
||||
+tablet-mobile() {
|
||||
border-radius: initial;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
if (hexo-config('sidebar.position') == 'right') {
|
||||
.header-inner {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.book-mark-link {
|
||||
left: $b2t-position-right;
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
padding-right: 260px;
|
||||
}
|
||||
} else {
|
||||
.footer-inner {
|
||||
padding-left: 260px;
|
||||
}
|
||||
|
||||
.back-to-top {
|
||||
left: auto;
|
||||
right: $b2t-position-right;
|
||||
|
||||
+tablet-mobile() {
|
||||
right: $b2t-position-right-mobile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
|
||||
+tablet-mobile() {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
65
themes/next/source/css/_schemes/Pisces/_menu.styl
Normal file
65
themes/next/source/css/_schemes/Pisces/_menu.styl
Normal file
@ -0,0 +1,65 @@
|
||||
.site-nav-toggle, .site-nav-right {
|
||||
+tablet() {
|
||||
flex-column();
|
||||
}
|
||||
|
||||
.toggle {
|
||||
color: white;
|
||||
|
||||
.toggle-line {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
+tablet() {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.menu .menu-item {
|
||||
display: block;
|
||||
margin: 0;
|
||||
|
||||
a, span.exturl {
|
||||
padding: 5px 20px;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
transition-property: background-color;
|
||||
|
||||
&:hover {
|
||||
@extend .menu-item-active a;
|
||||
}
|
||||
}
|
||||
|
||||
+tablet-mobile() {
|
||||
&.menu-item-search {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.badge {
|
||||
background: $grey-light;
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
float: right;
|
||||
padding: 2px 5px;
|
||||
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hexo-config('menu_settings.badges')) {
|
||||
.main-menu .menu-item-active a::after {
|
||||
background: $grey;
|
||||
border-radius: 50%;
|
||||
content: ' ';
|
||||
height: 6px;
|
||||
margin-top: -3px;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 50%;
|
||||
width: 6px;
|
||||
}
|
||||
}
|
||||
123
themes/next/source/css/_schemes/Pisces/_sidebar.styl
Normal file
123
themes/next/source/css/_schemes/Pisces/_sidebar.styl
Normal file
@ -0,0 +1,123 @@
|
||||
.sidebar {
|
||||
background: var(--body-bg-color);
|
||||
box-shadow: none;
|
||||
margin-top: 100%;
|
||||
position: static;
|
||||
width: $sidebar-desktop;
|
||||
|
||||
+tablet-mobile() {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-inner {
|
||||
background: var(--content-bg-color);
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $box-shadow;
|
||||
box-sizing: border-box;
|
||||
color: var(--text-color);
|
||||
width: $sidebar-desktop;
|
||||
|
||||
if (hexo-config('motion.enable') && hexo-config('motion.transition.sidebar')) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&.affix {
|
||||
position: fixed;
|
||||
top: $sidebar-offset;
|
||||
}
|
||||
|
||||
&.affix-bottom {
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
||||
.site-state-item {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.sidebar-button {
|
||||
border-bottom: 1px dotted $grey-light;
|
||||
border-top: 1px dotted $grey-light;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
border: 0;
|
||||
color: $orange;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
border: 0;
|
||||
color: darken($orange, 20%);
|
||||
|
||||
.fa, .fab, .far, .fas {
|
||||
color: darken($orange, 20%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-author {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.links-of-author-item {
|
||||
sidebar-inline-links-item();
|
||||
|
||||
if (!hexo-config('social_icons.icons_only')) {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
a, span.exturl {
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--body-bg-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.fa, .fab, .far, .fas {
|
||||
margin-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.links-of-blogroll-item {
|
||||
padding: 0;
|
||||
|
||||
if (hexo-config('links_settings.layout') == 'inline') {
|
||||
display: inline-block;
|
||||
sidebar-inline-links-item();
|
||||
|
||||
if (!hexo-config('social_icons.icons_only')) {
|
||||
width: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (hexo-config('back2top.sidebar')) {
|
||||
// Only when back2top.sidebar is true, apply the following styles
|
||||
.back-to-top {
|
||||
background: var(--body-bg-color);
|
||||
margin: 8px - $sidebar-offset -10px -18px;
|
||||
|
||||
&.back-to-top-on {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
30
themes/next/source/css/_schemes/Pisces/_sub-menu.styl
Normal file
30
themes/next/source/css/_schemes/Pisces/_sub-menu.styl
Normal file
@ -0,0 +1,30 @@
|
||||
.sub-menu {
|
||||
background: var(--content-bg-color);
|
||||
border-bottom: 1px solid $table-border-color;
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
|
||||
.menu-item {
|
||||
display: inline-block;
|
||||
|
||||
a, span.exturl {
|
||||
background: transparent;
|
||||
margin: 5px 10px;
|
||||
padding: initial;
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
color: $sidebar-highlight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-item-active a {
|
||||
border-bottom-color: $sidebar-highlight;
|
||||
color: $sidebar-highlight;
|
||||
|
||||
&:hover {
|
||||
border-bottom-color: $sidebar-highlight;
|
||||
}
|
||||
}
|
||||
}
|
||||
5
themes/next/source/css/_schemes/Pisces/index.styl
Normal file
5
themes/next/source/css/_schemes/Pisces/index.styl
Normal file
@ -0,0 +1,5 @@
|
||||
@import '_layout';
|
||||
@import '_header';
|
||||
@import '_menu';
|
||||
@import '_sub-menu';
|
||||
@import '_sidebar';
|
||||
Reference in New Issue
Block a user