2025-2-26-fixed
This commit is contained in:
24
themes/next/source/css/_common/outline/header/bookmark.styl
Normal file
24
themes/next/source/css/_common/outline/header/bookmark.styl
Normal 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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
themes/next/source/css/_common/outline/header/header.styl
Normal file
33
themes/next/source/css/_common/outline/header/header.styl
Normal 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'));
|
||||
@ -0,0 +1,4 @@
|
||||
.headband {
|
||||
background: $headband-bg;
|
||||
height: $headband-height;
|
||||
}
|
||||
64
themes/next/source/css/_common/outline/header/menu.styl
Normal file
64
themes/next/source/css/_common/outline/header/menu.styl
Normal 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;
|
||||
}
|
||||
46
themes/next/source/css/_common/outline/header/site-meta.styl
Normal file
46
themes/next/source/css/_common/outline/header/site-meta.styl
Normal 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;
|
||||
}
|
||||
}
|
||||
31
themes/next/source/css/_common/outline/header/site-nav.styl
Normal file
31
themes/next/source/css/_common/outline/header/site-nav.styl
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user