Skip to content

Commit

Permalink
update toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Alomerry committed Oct 4, 2020
1 parent b75667e commit 6824b12
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 114 deletions.
8 changes: 4 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,18 @@ public static function header()
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/font.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/style.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/card.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/head-title.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/quote/quote.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/head/head-title.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/comment.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/toc.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/tag.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/code.css" />';

if($SkyMo->headSpin == "open"){
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/head-spin.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/head/head-spin.css" />';
}

if($SkyMo->heatBeat == "open"){
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/heat-beat.css" />';
echo '<link rel="stylesheet" type="text/css" href="' . $path . '/css/head/heat-beat.css" />';
}

if($SkyMo->visibilityTextShow == "open"){
Expand Down
84 changes: 0 additions & 84 deletions css/code.css

This file was deleted.

45 changes: 37 additions & 8 deletions css/code/code.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,44 @@
/* 修改 code 样式 */

#post-content pre code {
margin: 0 0 !important;
padding: 0 0 !important;
}
#post-content pre:before {
content: unset !important;
/* background: unset !important; */
color: unset !important;
padding: unset !important;
padding: 2px 4px;
background-color: #ccc !important;
}

pre code::-webkit-scrollbar-track-piece {
background: #474949;
}

span[class$="keyword"] {
color: #d800dc;
}

span[class$="string"],
span[class$="char"],
span[class$="attr-value"],
span[class$="regex"],
span[class$="variable"] {
color: #26d065;
}

span[class$="bash"],
span[class$="boolean"],
span[class$="number"],
span[class$="function"] {
color: #c15a14;
}

span[class$="comment"],
span[class$="block-comment"],
span[class$="prolog"],
span[class$="doctype"],
span[class$="cdata"] {
color: #757373;
}

span[class$="property"],
span[class$="class-name"],
span[class$="constant"],
span[class$="symbol"] {
color: #ffb20a;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions css/quote/quote.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#post-content blockquote {
color: #4a4a4a!important;
padding: unset!important;
border-left: unset!important;
background-color: rgba(66, 185, 131, .1)!important;
padding: 13px 15px!important;
border-left: 5px solid #099e43!important;
}

#post-content blockquote.content-copyright {
background-color: rgba(255, 255, 255, 0)!important;
background: rgb(255 255 255 / .3)!important
}
45 changes: 36 additions & 9 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
font-size: 16px;
}


/*首页文章图片获取焦点放大*/

.item-thumb {
Expand All @@ -24,18 +25,21 @@
transform: scale(1.05);
}


/* 去除头像阴影 */

div.dropdown.wrapper span img.normal-shadow {
box-shadow: unset !important;
}


/* 大图圆角 */

.item-thumb {
border-radius: 6px 6px 6px 6px;
}


/* bilibili视频挂载 */

.iframe_video {
Expand Down Expand Up @@ -82,12 +86,14 @@ div.dropdown.wrapper span img.normal-shadow {
top: 0
}


/* 赞赏模态框样式修改 */

#myModal div.modal-content {
background: rgba(255, 255, 255, 0.53);
}


/* 博文面板样式修改 */

#postpage div.panel:not(.b-light) {
Expand All @@ -106,7 +112,8 @@ div.dropdown.wrapper span img.normal-shadow {
background: rgba(255, 255, 255, 0.17);
}

.show-foot .notebook span, .show-foot .copyright span {
.show-foot .notebook span,
.show-foot .copyright span {
/* 修改日期字体大小 */
font-size: 14px;
}
Expand Down Expand Up @@ -136,7 +143,7 @@ div.dropdown.wrapper span img.normal-shadow {

#post-content {
/* 正文文字大小 */
font-size: 2rem !important;
font-size: 1.7rem !important;
}

h5.text-md {
Expand All @@ -160,14 +167,18 @@ nav.navi ul.nav>li>a {
font-weight: 300 !important;
}


span.badge.pull-right {
/* 博文信息气泡文字大小 */
font-size: 14px !important;
font-weight: 300 !important;
}

#post-content h1, #post-content h2, #post-content h3, #post-content h4, #post-content h5, #post-content h6 {
#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
color: #464646 !important;
}

Expand All @@ -181,7 +192,8 @@ code:not(.hljs) {
background-color: rgba(255, 255, 255, 0.1) !important;
}

.panel-default>.panel-footer, .panel-default>.panel-heading {
.panel-default>.panel-footer,
.panel-default>.panel-heading {
/* 修改折叠框背景 */
background: rgba(0, 0, 0, .17) !important;
}
Expand All @@ -196,13 +208,16 @@ code:not(.hljs) {
color: #333333c9 !important;
}

.comment-content-true a, .wrapper-lg .entry-content a {
.comment-content-true a,
.wrapper-lg .entry-content a {
/* 超链接样式 */
color: rgb(189, 56, 95) !important;
border-bottom: 1px solid #ffffff00 !important;
}


/* 字体加粗 */

#small_widgetsul ul.entry-meta.text-muted,
#post-panel .breadcrumb,
#widget-tabs-4-hots h4,
Expand All @@ -213,11 +228,15 @@ code:not(.hljs) {
font-weight: 300;
}


/* 热门文章 */
#widget-tabs-4-hots h5,#widget-tabs-4-comments a{

#widget-tabs-4-hots h5,
#widget-tabs-4-comments a {
font-weight: 300;
}


/* 网站消息背景文字大小颜色 */

.alert-warning {
Expand All @@ -229,26 +248,31 @@ code:not(.hljs) {
font-size: 18px !important;
}


/* 修改首页面板背景透明度 */

#post-panel {
background: rgba(255, 255, 255, 0) !important;
}


/* 首页文章列表标题 */

h2.text-ellipsis>a, h3.text-ellipsis>a {
h2.text-ellipsis>a,
h3.text-ellipsis>a {
/* 标题炫光 */
text-shadow: 0 0 3px #fff !important;
font-size: 1.8em !important;
}


/* 评论可见背景颜色修改 */

.hideContent {
background: rgba(255, 255, 255, 0.3);
}


/* 修改站内文章分享样式 */

.post-inser .text-muted {
Expand All @@ -260,6 +284,7 @@ h2.text-ellipsis>a, h3.text-ellipsis>a {
margin: 0 !important;
}


/* github 页面修改 */

.panel div.b-light.bg-info {
Expand Down Expand Up @@ -311,6 +336,7 @@ h2.text-ellipsis>a, h3.text-ellipsis>a {
background-color: #f05050;
}


/* 文章版权 */

#post-content blockquote.content-copyright {
Expand All @@ -320,6 +346,7 @@ h2.text-ellipsis>a, h3.text-ellipsis>a {
color: #000000d4;
}


/* 复制模态框 */

.swal-title:first-child {
Expand All @@ -338,4 +365,4 @@ h2.text-ellipsis>a, h3.text-ellipsis>a {
text-align: center;
border-radius: 5px;
margin: 20px auto;
}
}
Loading

0 comments on commit 6824b12

Please sign in to comment.