🏗️ First time sync the css & js files from hexo theme NexT

This commit is contained in:
凡梦星尘
2022-05-21 17:47:26 +08:00
commit 9eb7a32d23
167 changed files with 8043 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
.sidebar-inner {
color: $grey-dark;
// Init Sidebar & TOC inner dimensions on all pages and for all schemes.
$offset : if(($scheme == 'Pisces') or ($scheme == 'Gemini'), $sidebar-offset, $sidebar-padding);
max-height: calc(100vh - #{$offset * 2});
padding: $sidebar-padding 10px;
text-align: center;
@include flex-column();
}
.site-overview-item:not(:first-child) {
margin-top: 10px;
}
.cc-license {
.cc-opacity {
border-bottom: 0;
opacity: .7;
&:hover {
opacity: .9;
}
}
img {
display: inline-block;
}
}
@import 'sidebar-author';
@import 'sidebar-author-links';
@import 'sidebar-button';
@import 'sidebar-blogroll';
@import 'sidebar-dimmer';
@import 'sidebar-nav';
@import 'sidebar-toggle';
@import 'sidebar-toc';
@import 'site-state';

View File

@@ -0,0 +1,11 @@
.links-of-author {
a {
font-size: $font-size-smaller;
}
@if not hexo-config('social_icons.icons_only') {
.fa, .fab, .far, .fas {
margin-right: 2px;
}
}
}

View File

@@ -0,0 +1,29 @@
.site-author-image {
border: $site-author-image-border-width solid $site-author-image-border-color;
max-width: $site-author-image-width;
padding: 2px;
@if hexo-config('avatar.rounded') {
border-radius: 50%;
}
@if hexo-config('avatar.rotated') {
transition: transform 1s ease-out;
&:hover {
transform: rotateZ(360deg);
}
}
}
.site-author-name {
color: $site-author-name-color;
font-weight: $site-author-name-weight;
margin: $site-author-name-margin;
}
.site-description {
color: $site-description-color;
font-size: $site-description-font-size;
margin-top: $site-description-margin-top;
}

View File

@@ -0,0 +1,15 @@
.links-of-blogroll {
font-size: $font-size-smaller;
}
.links-of-blogroll-title {
font-size: $font-size-small;
font-weight: 600;
margin-top: 0;
}
.links-of-blogroll-list {
list-style: none;
margin: 0;
padding: 0;
}

View File

@@ -0,0 +1,15 @@
.sidebar .sidebar-button {
&:not(:first-child) {
margin-top: 15px;
}
button {
@include button($orange);
border: 1px solid $orange;
border-radius: 4px;
.fa, .fab, .far, .fas {
margin-right: 5px;
}
}
}

View File

@@ -0,0 +1,24 @@
.sidebar-dimmer {
display: none;
}
@include tablet-mobile() {
.sidebar-dimmer {
background: black;
display: block;
height: 100%;
left: 0;
opacity: 0;
position: fixed;
top: 0;
transition: visibility .4s, opacity .4s;
visibility: hidden;
width: 100%;
z-index: $zindex-1;
.sidebar-active & {
opacity: .7;
visibility: visible;
}
}
}

View File

@@ -0,0 +1,57 @@
// Sidebar Navigation
.sidebar-nav {
display: none;
margin: 0;
padding-bottom: 20px;
padding-left: 0;
.sidebar-nav-active & {
display: block;
}
li {
border-bottom: 1px solid transparent;
color: $sidebar-nav-color;
cursor: pointer;
display: inline-block;
font-size: $font-size-small;
&.sidebar-nav-overview {
margin-left: 10px;
}
&:hover {
color: $sidebar-nav-hover-color;
}
}
}
.sidebar-toc-active .sidebar-nav-toc, .sidebar-overview-active .sidebar-nav-overview {
border-bottom-color: $sidebar-highlight;
color: $sidebar-highlight;
&:hover {
color: $sidebar-highlight;
}
}
// Need for Sidebar/TOC inner scrolling if content taller then viewport.
.sidebar-panel-container {
flex: 1;
overflow-x: hidden;
overflow-y: auto;
}
.sidebar-panel {
display: none;
}
.sidebar-overview-active .site-overview-wrap {
// Flexbox layout makes it possible to reorder the child
// elements of .site-overview-item through the `order` CSS property
@include flex-column();
}
.sidebar-toc-active .post-toc-wrap {
display: block;
}

View File

@@ -0,0 +1,61 @@
@if hexo-config('toc.enable') {
.post-toc {
font-size: $font-size-small;
ol {
list-style: none;
margin: 0;
padding: 0 2px 5px 10px;
text-align: left;
> ol {
padding-left: 0;
}
a {
transition: all $transition-ease;
}
}
.nav-item {
line-height: 1.8;
overflow: hidden;
text-overflow: ellipsis;
@if not hexo-config('toc.wrap') {
white-space: nowrap;
}
}
.nav {
.nav-child {
display: if(hexo-config('toc.expand_all'), block, none);
}
.active > .nav-child {
display: block;
}
.active-current > .nav-child {
display: block;
> .nav-item {
display: block;
}
}
.active > a {
border-bottom-color: $sidebar-highlight;
color: $sidebar-highlight;
}
.active-current > a {
color: $sidebar-highlight;
&:hover {
color: $sidebar-highlight;
}
}
}
}
}

View File

@@ -0,0 +1,21 @@
.sidebar-toggle {
bottom: 45px;
height: 12px;
padding: 6px 5px;
width: 14px;
@include sidebar-toggle();
}
.sidebar-toggle:hover .toggle-line {
background: $sidebar-highlight;
}
@media (any-hover: hover) {
body:not(.sidebar-active) .sidebar-toggle:hover {
@include toggle-arrow(hexo-config('sidebar.position'));
}
}
.sidebar-active .sidebar-toggle {
@include toggle-close(hexo-config('sidebar.position'));
}

View File

@@ -0,0 +1,28 @@
@if hexo-config('site_state') {
.site-state {
@include flex-wrap();
line-height: 1.4;
}
.site-state-item {
// Fix issue #103
// The click area of the link becomes smaller
padding: 0 15px;
a {
border-bottom: 0;
display: block;
}
}
.site-state-item-count {
display: block;
font-size: $site-state-item-count-font-size;
font-weight: 600;
}
.site-state-item-name {
color: $site-state-item-name-color;
font-size: $site-state-item-name-font-size;
}
}