🏗️ First time sync the css & js files from hexo theme NexT
This commit is contained in:
38
assets/css/_common/outline/sidebar/index.scss
Normal file
38
assets/css/_common/outline/sidebar/index.scss
Normal 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';
|
||||
11
assets/css/_common/outline/sidebar/sidebar-author-links.scss
Normal file
11
assets/css/_common/outline/sidebar/sidebar-author-links.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
29
assets/css/_common/outline/sidebar/sidebar-author.scss
Normal file
29
assets/css/_common/outline/sidebar/sidebar-author.scss
Normal 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;
|
||||
}
|
||||
15
assets/css/_common/outline/sidebar/sidebar-blogroll.scss
Normal file
15
assets/css/_common/outline/sidebar/sidebar-blogroll.scss
Normal 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;
|
||||
}
|
||||
15
assets/css/_common/outline/sidebar/sidebar-button.scss
Normal file
15
assets/css/_common/outline/sidebar/sidebar-button.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
24
assets/css/_common/outline/sidebar/sidebar-dimmer.scss
Normal file
24
assets/css/_common/outline/sidebar/sidebar-dimmer.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
57
assets/css/_common/outline/sidebar/sidebar-nav.scss
Normal file
57
assets/css/_common/outline/sidebar/sidebar-nav.scss
Normal 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;
|
||||
}
|
||||
61
assets/css/_common/outline/sidebar/sidebar-toc.scss
Normal file
61
assets/css/_common/outline/sidebar/sidebar-toc.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
21
assets/css/_common/outline/sidebar/sidebar-toggle.scss
Normal file
21
assets/css/_common/outline/sidebar/sidebar-toggle.scss
Normal 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'));
|
||||
}
|
||||
28
assets/css/_common/outline/sidebar/site-state.scss
Normal file
28
assets/css/_common/outline/sidebar/site-state.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user