This commit is contained in:
杜恒 2021-06-17 09:52:58 +08:00
parent 98d570bf8b
commit 4d2d4a49c7
10 changed files with 1678 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -58,6 +58,15 @@
.joe_header__below {
border-top: none;
}
&.current {
.joe_header__below-title {
display: block;
}
.joe_header__below-class {
display: none;
}
}
}
&__above {
position: relative;
@ -295,6 +304,18 @@
position: relative;
border-top: 1px solid var(--classC);
height: 45px;
&-title {
max-width: 450px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: none;
line-height: 45px;
font-size: 17px;
font-weight: 700;
color: var(--main);
animation: showHeaderTitle 0.35s;
}
&-class {
display: flex;
.item {
@ -3967,3 +3988,14 @@
background-color: #409eff;
}
}
@keyframes showHeaderTitle {
0% {
opacity: 0.25;
transform: scale(0.25);
}
100% {
opacity: 1;
transform: scale(1);
}
}

View File

@ -188,7 +188,7 @@ class Editor
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.2.4/plugin/prism/prism.min.js"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/parse/parse.min.js') ?>"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.bundle.js?v=7.2.6') ?>"></script>
<script src="<?php Helper::options()->themeUrl('typecho/write/dist/index.bundle.js?v=7.2.8') ?>"></script>
<script src="<?php Helper::options()->themeUrl('assets/js/joe.short.min.js') ?>"></script>
<?php
}

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "7.2.7";
return "7.2.8";
};
/* 判断是否是手机 */

View File

@ -1,6 +1,6 @@
{
"name": "typecho-joe-next",
"version": "7.2.7",
"version": "7.2.8",
"description": "A Theme Of Typecho",
"main": "index.php",
"keywords": [

View File

@ -1,4 +1,4 @@
<header class="joe_header">
<header class="joe_header <?php echo $this->is('post') ? 'current' : '' ?>">
<div class="joe_header__above">
<div class="joe_container">
@ -160,6 +160,9 @@
<div class="joe_header__below">
<div class="joe_container">
<?php if ($this->is('post')) : ?>
<div class="joe_header__below-title"><?php $this->title() ?></div>
<?php endif; ?>
<nav class="joe_header__below-class">
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php while ($category->next()) : ?>

View File

@ -18,7 +18,7 @@
<?php endif; ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.mode.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.normalize.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.global.min.css?v=20210616'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.global.min.css?v=7.2.8'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('assets/css/joe.responsive.min.css'); ?>">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typecho-joe-next@6.0.0/plugin/qmsg/qmsg.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css" />
@ -40,6 +40,6 @@
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
<script src="<?php $this->options->themeUrl('assets/cursor/' . $this->options->JCursorEffects); ?>" async></script>
<?php endif; ?>
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js?v=20210616'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.global.min.js?v=7.2.8'); ?>"></script>
<script src="<?php $this->options->themeUrl('assets/js/joe.short.min.js'); ?>"></script>
<?php $this->options->JCustomHeadEnd() ?>

File diff suppressed because one or more lines are too long

1632
typecho/write/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"@codemirror/commands": "^0.18.3",
"@codemirror/highlight": "^0.18.4",
"@codemirror/history": "^0.18.1",
"@codemirror/lang-markdown": "^0.18.3",
"@codemirror/lang-markdown": "^0.18.4",
"@codemirror/language-data": "^0.18.0",
"@codemirror/matchbrackets": "^0.18.0",
"@codemirror/state": "^0.18.7",
@ -15,7 +15,7 @@
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"rollup": "^2.51.2",
"rollup": "^2.52.0",
"rollup-plugin-terser": "^7.0.2"
}
}