2025-2-26-fixed

This commit is contained in:
2025-02-26 09:16:07 +08:00
parent bf50b6c865
commit 4968d276dc
456 changed files with 27801 additions and 1 deletions

View File

@@ -0,0 +1,80 @@
// Footer Section
// --------------------------------------------------
.footer {
color: $grey-dark;
font-size: $font-size-small;
padding: 20px 0;
&.footer-fixed {
bottom: 0;
left: 0;
position: absolute;
right: 0;
}
}
.footer-inner {
box-sizing: border-box;
margin: 0 auto;
text-align: center;
width: $content-desktop;
+desktop-large() {
width: $content-desktop-large;
}
+desktop-largest() {
width: $content-desktop-largest;
}
}
@keyframes iconAnimate {
0%, 100% {
transform: scale(1);
}
10%, 30% {
transform: scale(.9);
}
20%, 40%, 60%, 80% {
transform: scale(1.1);
}
50%, 70% {
transform: scale(1.1);
}
}
.languages {
display: inline-block;
font-size: $font-size-large;
position: relative;
.lang-select-label span {
margin: 0 .5em;
}
.lang-select {
height: 100%;
left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 100%;
}
}
.with-love {
color: unquote(hexo-config('footer.icon.color'));
display: inline-block;
margin: 0 5px;
if (hexo-config('footer.icon.animated')) {
animation: iconAnimate 1.33s ease-in-out infinite;
}
}
.powered-by, .theme-info {
display: inline-block;
}

View File

@@ -0,0 +1,24 @@
.book-mark-link {
border-bottom: none;
display: inline-block;
position: fixed;
right: $b2t-position-right;
top: -10px;
transition: .3s;
+tablet-mobile() {
display: none;
}
&::before {
color: unquote(hexo-config('bookmark.color'));
content: '\f02e';
font-size: 32px;
line-height: 1;
font-family-icons();
}
}
.book-mark-link:hover, .book-mark-link-fixed {
top: -2px;
}

View File

@@ -0,0 +1,60 @@
@keyframes octocat-wave {
0%, 100% {
transform: rotate(0);
}
20%, 60% {
transform: rotate(-25deg);
}
40%, 80% {
transform: rotate(10deg);
}
}
.github-corner {
$bg-color = unquote(hexo-config('android_chrome_color'));
:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
svg {
border: 0;
color: white;
fill: $bg-color;
position: absolute;
right: 0;
top: 0;
z-index: $zindex-0;
}
+tablet-mobile() {
if (hexo-config('local_search.enable') || hexo-config('algolia_search.enable')) {
display: none;
}
svg {
if (($scheme == 'Pisces') || ($scheme == 'Gemini')) {
color: $bg-color;
fill: white;
}
}
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
if ($scheme == 'Mist') {
+mobile() {
svg {
top: inherit;
}
}
}
}

View File

@@ -0,0 +1,33 @@
// Header Section
// --------------------------------------------------
.header {
background: $head-bg;
}
.header-inner {
margin: 0 auto;
width: $content-desktop;
+desktop-large() {
width: $content-desktop-large;
}
+desktop-largest() {
width: $content-desktop-largest;
}
}
.site-brand-container {
display: flex;
flex-shrink: 0;
padding: 0 10px;
}
@import 'headerband';
@import 'site-meta';
@import 'site-nav';
@import 'menu';
@import 'bookmark' if (hexo-config('bookmark.enable'));
@import 'github-banner' if (hexo-config('github_banner.enable'));

View File

@@ -0,0 +1,4 @@
.headband {
background: $headband-bg;
height: $headband-height;
}

View File

@@ -0,0 +1,64 @@
// Menu
// --------------------------------------------------
.menu {
margin-top: 20px;
padding-left: 0;
text-align: center;
}
.menu-item {
display: inline-block;
list-style: none;
margin: 0 10px;
+mobile() {
display: block;
margin-top: 10px;
&.menu-item-search {
display: none;
}
}
a, span.exturl {
border-bottom: 0;
display: block;
font-size: $font-size-smaller;
transition-property: border-color;
the-transition();
// To prevent hover on external links with touch devices after click.
@media (hover: none) {
&:hover {
border-bottom-color: transparent !important;
}
}
}
.fa, .fab, .far, .fas {
margin-right: 8px;
}
.badge {
display: inline-block;
font-weight: bold;
line-height: 1;
margin-left: .35em;
margin-top: .35em;
text-align: center;
white-space: nowrap;
+mobile() {
float: right;
margin-left: 0;
}
}
}
.menu-item-active a {
background: var(--menu-item-bg-color);
}
.use-motion .menu-item {
opacity: 0;
}

View File

@@ -0,0 +1,46 @@
.site-meta {
flex-grow: 1;
text-align: $site-meta-text-align;
+mobile() {
text-align: center;
}
}
.brand {
border-bottom: none;
color: var(--brand-color);
display: inline-block;
line-height: $font-size-title;
padding: 0 40px;
position: relative;
&:hover {
color: var(--brand-hover-color);
}
}
.site-title {
font-family: $font-family-logo;
font-size: $font-size-title;
font-weight: normal;
margin: 0;
}
.site-subtitle {
color: $subtitle-color;
font-size: $font-size-subtitle;
margin: 10px 0;
}
.use-motion {
.brand {
opacity: 0;
}
.site-title, .site-subtitle, .custom-logo-image {
opacity: 0;
position: relative;
top: -10px;
}
}

View File

@@ -0,0 +1,31 @@
.site-nav-toggle, .site-nav-right {
display: none;
+mobile() {
flex-column();
}
.toggle {
color: var(--text-color);
padding: 10px;
width: 22px;
.toggle-line {
background: var(--text-color);
border-radius: 1px;
}
}
}
.site-nav {
display: block;
+mobile() {
clear: both;
display: none;
}
&.site-nav-on {
display: block;
}
}

View File

@@ -0,0 +1,89 @@
/*
// < 767px
+mobile() {
}
*/
+mobile-small() {
// For Pisces & Gemini schemes only wider width (remove main blocks in Gemini).
.content-wrap {
padding: initial !important;
}
// For all schemes wider width.
.posts-expand {
.post-meta {
margin: 3px 0 10px 0 !important;
}
}
.post-block {
margin-top: initial !important;
// Inside posts blocks content padding (default 40px).
padding: $content-mobile-padding 18px $content-mobile-padding !important;
}
.posts-collapse {
margin-left: 0;
margin-right: 0;
}
.post-body {
// For headers narrow width.
h1, h2, h3, h4, h5, h6 {
margin: 10px 0 8px;
}
// Rewrite paddings & margins inside tags.
.note, .tabs .tab-content .tab-pane {
h1, h2, h3, h4, h5, h6 {
margin: 0 5px;
}
}
// For paragraphs narrow width.
> p {
margin: 0 0 10px 0;
}
// Rewrite paddings & margins inside tags.
.note > p, .tabs .tab-content .tab-pane > p {
padding: 0 5px;
}
img, video {
margin-bottom: 10px !important;
}
.note {
margin-bottom: 10px !important;
padding: 10px !important;
if (hexo-config('note.icons')) {
&:not(.no-icon) {
padding-left: 35px !important;
}
}
}
.tabs .tab-content .tab-pane {
padding: 10px 10px 0 10px !important;
}
}
.post-eof {
margin: 40px auto 20px !important;
}
.pagination {
margin-top: 40px;
}
}
/*
// < 413px
+mobile-smallest() {
}
*/

View File

@@ -0,0 +1,29 @@
.container {
min-height: 100%;
position: relative;
}
.main-inner {
margin: 0 auto;
width: $content-desktop;
+desktop-large() {
width: $content-desktop-large;
}
+desktop-largest() {
width: $content-desktop-largest;
}
}
.content-wrap {
+mobile() {
padding: 0 20px;
}
}
@import 'header';
@import 'sidebar';
@import 'footer';
@import 'mobile' if (hexo-config('mobile_layout_economy'));

View File

@@ -0,0 +1,27 @@
.links-of-author {
margin-top: 15px;
a, span.exturl {
border-bottom-color: $black-light;
display: inline-block;
font-size: $font-size-smaller;
margin-bottom: 10px;
margin-right: 10px;
vertical-align: middle;
if (hexo-config('social_icons.transition')) {
the-transition();
}
&::before {
background: rgb(random-color(0, 255) - 50%, random-color(0, 255) - 50%, random-color(0, 255) - 50%);
border-radius: 50%;
content: ' ';
display: inline-block;
height: 4px;
margin-right: 3px;
vertical-align: middle;
width: 4px;
}
}
}

View File

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

View File

@@ -0,0 +1,16 @@
.links-of-blogroll {
font-size: $font-size-smaller;
margin-top: 10px;
}
.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,25 @@
.sidebar-button {
margin-top: 15px;
a {
border: 1px solid $orange;
border-radius: 4px;
color: $orange;
display: inline-block;
padding: 0 15px;
.fa, .fab, .far, .fas {
margin-right: 5px;
}
&:hover {
background: $orange;
border: 1px solid $orange;
color: white;
.fa, .fab, .far, .fas {
color: white;
}
}
}
}

View File

@@ -0,0 +1,23 @@
#sidebar-dimmer {
display: none;
}
+mobile() {
#sidebar-dimmer {
background: black;
display: block;
height: 100%;
left: 100%;
opacity: 0;
position: fixed;
top: 0;
width: 100%;
z-index: $zindex-1;
}
.sidebar-active + #sidebar-dimmer {
opacity: .7;
transform: translateX(-100%);
transition: opacity .5s;
}
}

View File

@@ -0,0 +1,41 @@
// Sidebar Navigation
.sidebar-nav {
margin: 0;
padding-bottom: 20px;
padding-left: 0;
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-nav-active {
border-bottom-color: $sidebar-highlight;
color: $sidebar-highlight;
&:hover {
color: $sidebar-highlight;
}
}
}
.sidebar-panel {
display: none;
overflow-x: hidden;
overflow-y: auto;
}
.sidebar-panel-active {
display: block;
}

View File

@@ -0,0 +1,61 @@
.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-property: all;
the-transition();
}
}
.nav-item {
line-height: 1.8;
overflow: hidden;
text-overflow: ellipsis;
// text-align: justify;
if (!hexo-config('toc.wrap')) {
white-space: nowrap;
}
}
.nav {
.nav-child {
display: 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,24 @@
.sidebar-toggle {
background: $black-deep;
bottom: 45px;
cursor: pointer;
height: 14px;
left: $b2t-position-right;
padding: 5px;
position: fixed;
width: 14px;
z-index: $zindex-3;
+tablet-mobile() {
left: $b2t-position-right-mobile;
opacity: $b2t-opacity-hover;
if (!hexo-config('sidebar.onmobile')) {
display: none;
}
}
}
.sidebar-toggle:hover .toggle-line {
background: $sidebar-highlight;
}

View File

@@ -0,0 +1,51 @@
.sidebar {
background: $black-deep;
bottom: 0;
if (!hexo-config('back2top.sidebar')){
box-shadow: inset 0 2px 6px black;
}
position: fixed;
top: 0;
+tablet-mobile() {
if (!hexo-config('sidebar.onmobile')) {
display: none;
}
}
}
.sidebar-inner {
color: $grey-dark;
padding: $sidebar-padding 10px;
text-align: center;
}
.cc-license {
margin-top: 10px;
text-align: center;
.cc-opacity {
border-bottom: none;
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' if (hexo-config('toc.enable'));
@import 'site-state' if (hexo-config('site_state'));

View File

@@ -0,0 +1,33 @@
.site-state {
display: flex;
justify-content: center;
line-height: 1.4;
margin-top: 10px;
overflow: hidden;
text-align: center;
white-space: nowrap;
}
.site-state-item {
padding: 0 15px;
&:not(:first-child) {
border-left: 1px solid $site-state-item-border-color;
}
a {
border-bottom: none;
}
}
.site-state-item-count {
display: block;
font-size: $site-state-item-count-font-size;
font-weight: 600;
text-align: center;
}
.site-state-item-name {
color: $site-state-item-name-color;
font-size: $site-state-item-name-font-size;
}