summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-08-10 16:49:07 +0800
committerGitHub <noreply@github.com>2019-08-10 16:49:07 +0800
commit01d183d2be8e56509929842f56bf313f2637f578 (patch)
tree2481998e1fec848058b97b78e6ea8280aa870b68 /includes
parente70a3aa7486fd4b759918893476dff1c4e6147ef (diff)
规范代码结构、优化样式、控制台输出版权信息
Diffstat (limited to 'includes')
-rw-r--r--includes/head.php10
-rw-r--r--includes/header.php4
2 files changed, 5 insertions, 9 deletions
diff --git a/includes/head.php b/includes/head.php
index e32bef0..efa89b7 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -47,22 +47,18 @@ if (isset($_POST['action'])) {
<?php if($this->options->CDN && $this->options->CDN=1): ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/prism.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/owo.min.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/normalize.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/fancybox.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/prism.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/miracles.min.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/dark.miracles.css" />
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/main/miracles.min.css" />
<?php else: ?>
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/prism.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/owo.min.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/normalize.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/nprogress.css'); ?>" />
<link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/fancybox.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/miracles.min.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/dark.miracles.css'); ?>" />
+ <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/main/miracles.min.css'); ?>" />
<?php endif; ?>
<!-- icon font -->
- <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_nczm02by8we.css" />
+ <link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_nsy3b6pbkb.css" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+SC:300|Noto+Serif+SC:300&display=swap" rel="stylesheet">
<style>.body-dark .pio-action .pio-home{background-image: url(<?php Utils::indexTheme('images/icons/home.png'); ?>);}.body-dark .pio-action .pio-close{background-image: url(<?php Utils::indexTheme('images/icons/remove.png'); ?>);}.body-dark .pio-action .pio-skin{background-image: url(<?php Utils::indexTheme('images/icons/skin.png'); ?>);}.body-dark .pio-action .pio-info{background-image: url(<?php Utils::indexTheme('images/icons/info.png'); ?>);}.body-dark .pio-action .pio-night{background-image: url(<?php Utils::indexTheme('images/icons/night.png'); ?>);}@media (min-width:992px) {.search{background-image:url(<?php Utils::indexTheme('images/search.png'); ?>);}.login{background-image:url(<?php Utils::indexTheme('images/login.png'); ?>)}}.search {background-position: bottom right;background-repeat: no-repeat}.login {background-position: bottom left;background-repeat:no-repeat}<?php $this->options->cssEcho(); ?></style>
diff --git a/includes/header.php b/includes/header.php
index 724c780..26f8590 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,5 +1,5 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
- <div class="mask" onclick="toggleDrawer()"></div>
+ <div class="mask" onclick="toggleDrawer();$('.options').addClass('ready');"></div>
<div class="alert ready"><p class="alert-content">错误!未定义的 alert 信息</p><button onclick="alertClose()" class="alert-close"><i class="iconfont icon-x"></i></button></div>
<!-- 搜索 -->
<div class="search ready">
@@ -128,7 +128,7 @@
<!-- 抽屉栏 -->
<nav class="drawer"><div class="drawer-relative">
<div class="drawer-main">
- <button class="drawer-button" onclick="toggleDrawer()"><i class="iconfont icon-list"></i></button>
+ <button class="drawer-button" onclick="toggleDrawer();$('.options').addClass('ready');"><i class="iconfont icon-list"></i></button>
<div class="drawer-header">
<div class="drawer-avatar">
<?php echo $this->author->gravatar(500); ?>