博客园 cn book 主题备份
又到了一年一度的换肤环节
cnbook
- 👔 作者:GShang
- 💻 兼容手机、平板、桌面
- 🌓 深色模式
预览
博客侧边栏公告
<script>
let avatar = "https://pic.cnblogs.com/avatar/2913706/20230129104342.png",
homepage = $('#profile_block a').eq(0).attr('href'),
name = $('#profile_block a').eq(0).text(),
desc = $('#blogTitle h2').html(),
join = $('#profile_block a').eq(1).attr('title'),
age = $('#profile_block a').eq(1).text(),
fans_link = $('#profile_block a').eq(2).attr('href'),
fans = $('#profile_block a').eq(2).text(),
follow_link = $('#profile_block a').eq(3).attr('href'),
follow = $('#profile_block a').eq(3).text(),
post = $('#stats_post_count').text().replace(/[^0-9]/ig, ""),
article = $('#stats_article_count').text().replace(/[^0-9]/ig, ""),
comment = $('#stats-comment_count').text().replace(/[^0-9]/ig, ""),
view_text = $('#stats-total-view-count span').text(),
view_num = $('#stats-total-view-count span').attr('title').replace(/[^0-9]/ig, "")
let profile =`
<div id="my-profile">
<div id="top-info">
<div id="user-avatar">
<div class="avater-border"></div>
<a href="${homepage}" class="my-logo-container"><img src="${avatar}" class="my-logo" /></a>
</div>
<div class="my-name-container">
<div>
<span class="my-name"><a href="${homepage}">${name}</a></span>
<span id="age" title="join">${age}</span>
</div>
<div class="my-desc">${desc}</div>
</div>
</div>
<div class="my-detaial">
<ul>
<li id="follow"><a href="${follow_link}" title=" follow">${follow}</a></li>
<li id="fans"><a href="${fans_link}" title=" fans">${fans}</a></li>
<li id="more">
<div class="my-stats">
<div class="btn-more"></div>
<ul class="dropwon-content">
<li id="post" title="随笔: ${post}"> ${post}</li>
<li id="article" title="文章: ${article}"> ${article}</li>
<li id="comment" title="评论: ${comment}"> ${comment}</li>
<li id="view" title="阅读: ${view_num}"> ${view_text}</li>
</ul>
</div>
</li>
</ul>
</div>
<div id="follow-btn"></div>
</div>
`;
$('#blog-news').append(profile);
$('#follow-btn').append($('#p_b_follow'));
if ($("#topics").length > 0) {
// setZan();
$('#digg_tips').bind("DOMNodeInserted", function() {
//console.log($('#digg_tips').text())
if ($('#digg_tips').text() == "支持成功" || $('#digg_tips').text() == "取消支持成功") {
ele.$message({
showClose: true,
message: $('#digg_tips').text(),
duration: 1000,
type: "success",
});
}
if ($('#digg_tips').text() == "您已支持过" || $('#digg_tips').text() == "不能推荐自己的内容") {
ele.$message({
showClose: true,
message: $('#digg_tips').text(),
duration: 1000,
type: "warning",
});
}
})
}
window.onload =function()
{
setTimeout(function(){
$('.math,.MathJax,.footnote-ref,.mrow,math').attr('translate','no');
},"10000");
}
</script>
页面定制 CSS 代码
@charset "utf-8";
@import url("//unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css");
@import url(https://cdn.cnblogs.com/npm/font-awesome/css/font-awesome.min.css) screen and (min-width:0px);
@import url(https://blog-static.cnblogs.com/files/gshang/material_color.css);
@import url(https://blog-static.cnblogs.com/files/gshang/notiflix-2.0.0.min.css) screen and (min-width:0px);
/************** 基本样式 开始 ***************/
:root {
--color-primary: #2faee3;
--color-success: #67c23a;
--color-success-0: #85ce61;
--color-success-1: #e1f3d8;
--color-success-2: #f0f9eb;
--color-warning: #e6a23c;
--color-warning-0: #ebb563;
--color-warning-1: #faecd8;
--color-warning-2: #fdf6ec;
--color-danger: #FA7298;
--color-danger-0: #ec89a8;
--color-danger-1: #f1bccd;
--color-danger-2: #fdeaf0;
--color-info: #909399;
--color-info-0: #a6a9ad;
--color-info-1: #e9e9eb;
--color-info-2: #f4f4f5;
--color-text-primary: #303133;
--color-text-regular: #606266;
--color-text-secondary: #909399;
--color-text-placeholder: #c0c4cc;
--border-color-base: #dcdfe6;
--border-color-light: #e4e7ed;
--border-color-lighter: #ebeef5;
--border-color-extra-linght: #f2f6fc;
--color-white: #ffffff;
--color-black: #000000;
--background-color-base: #f5f7fa;
--text-h1: 24px;
--text-h2: 22px;
--text-h3: 20px;
--text-h4: 18px;
--text-h5: 16px;
--text-h6: 14px;
--basic-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
--light-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
--blur-bg: rgba(255, 255, 255, 0.7);
/** old ***/
--ThemeColor: var(--color-primary);
--TextColor1: #141418;
--TextColor2: #5f5f6b;
--TextColor3: #97979f;
--DividColor: #e7eaf0;
--BlockColor: #fff;
--BackgroundColor: #f4f6fa;
}
:root[theme='dark'] {
--color-primary: #2faee3;
--color-success: #67c23a;
--color-success-0: #85ce61;
--color-success-1: #e1f3d8;
--color-success-2: #f0f9eb;
--color-warning: #e6a23c;
--color-warning-0: #ebb563;
--color-warning-1: #faecd8;
--color-warning-2: #fdf6ec;
--color-danger: #FA7298;
--color-danger-0: #ec89a8;
--color-danger-1: #f1bccd;
--color-danger-2: #fdeaf0;
--color-info: #909399;
--color-info-0: #a6a9ad;
--color-info-1: #e9e9eb;
--color-info-2: #f4f4f5;
--color-text-primary: #fafbfc;
--color-text-regular: #f2f4f5;
--color-text-secondary: #909399;
--color-text-placeholder: #c0c4cc;
--border-color-base: #4c5054;
--border-color-light: #414446;
--border-color-lighter: #323435;
--border-color-extra-linght: #313233;
--color-white: #292929;
--color-black: #000000;
--background-color-base: #333;
--text-h1: 24px;
--text-h2: 22px;
--text-h3: 20px;
--text-h4: 18px;
--text-h5: 16px;
--text-h6: 14px;
--basic-shadow: 0 2px 4px rgba(255, 255, 255, 0.12), 0 0 6px rgba(255, 255, 255, 0.04);
--light-shadow: 0 2px 12px 0 rgba(255, 254, 254, 0.1);
--blur-bg: rgb(41 41 41 / 60%);
/** old ***/
--ThemeColor: var(--color-primary);
--TextColor1: #fafbfc;
--TextColor2: #f2f4f5;
--TextColor3: #909399;
--DividColor: #4c5054;
--BlockColor: #333;
--BackgroundColor: #333;
}
/* 去广告 */
#ad_c1,
#ad_c2,
#bannerbar,
#under_post_card2,
.under-post-card,
#ad_t2,
#cnblogs_ch,
#ad_text_under_commentbox,
#under_post_news,
.c_ad_block {
display: none
}
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 20px;
color: var(--color-text-primary);
font-size: var(--text-h5);
line-height: 1.5;
background: var(--color-white);
font-family:"思源黑体 CN","JetBrains Mono","微软雅黑",sans-serif,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial;
font-weight: 400;
/* transition: all 300ms; */
-moz-hyphens: auto!important;
hyphens: auto!important;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
a {
text-decoration: none;
color: inherit;
}
img {
max-width: 100% !important;
}
/* :before,
:after {
font-family: fontawesome, element-icons;
} */
#main {
animation-duration: 1s;
animation-name: fadeIn;
}
#sideBar {
width: 300px !important;
position: fixed;
top: 0;
left: 0;
bottom: 0;
height: 100vh;
border-right: 1px solid var(--border-color-extra-linght);
overflow-y: auto;
background: var(--color-white);
transition: left 300ms;
z-index: 99;
/* overflow: visible; */
}
#mainContent {
position: absolute;
left: 300px;
/* top: 70px; */
right: 0;
/* overflow-y: auto; */
transition: left 300ms;
/* background: var(--color-info-2); */
}
.main-widthout-sidebar #sideBar {
left: 0px;
/* transition:300ms; */
}
#sideBar::-webkit-scrollbar {
display: none
}
.main-widthout-sidebar #mainContent {
left: 300px;
/* transition:300ms; */
}
@media screen and (max-width:767px) {
.main-widthout-sidebar #mainContent {
left: 0px;
transition: 300ms;
}
.post-header {
min-height: 150px!important;
}
}
#lnkBlogLogo,
#blogTitle h2,
.blogStats {
display: none;
}
#header,
#navList,
.hd-menu ul {
display: flex;
height: 70px;
align-items: center;
}
#header {
padding: 0 8px;
justify-content: space-between;
z-index: 9;
background: var(--color-white);
/* backdrop-filter: blur(10px); */
position: sticky;
/* left: 0; */
/* right: 0; */
/* top:0; */
border-bottom: 1px solid var(--border-color-extra-linght) !important;
transform: translatey(0%);
transition: transform 300ms, left 300ms!important;
flex-wrap: wrap;
/* overflow: hidden; */
}
@media screen and (min-width:767px) {}
.header-hidde {
transform: translatey(-100%)!important;
transition: 0.3s transform!important;
}
#blogTitle {
height: 50px;
flex-grow: 1;
/* text-align: center; */
}
#blogTitle h1 {
margin: 0;
height: 50px;
display: flex;
/*justify-content: center;*/
line-height: 50px;
padding: 0 0 0 10px;
font-weight: 500;
}
#blogTitle h1 a {
font-size: var(--text-h2);
text-decoration: none;
color: inherit;
}
#blogTitle:hover h1 a {
display: block;
transition: 300ms;
}
#navList,
.hd-menu ul {
padding: 0;
margin: 0;
list-style-type: none
}
#navList li a,
.hd-menu li a {
color: var(--color-text-placeholder);
text-decoration: none;
/* padding:0 15px; */
font-size: 0;
width: 40px;
display: block;
text-align: center;
cursor: pointer;
}
#navList li a:hover,
.hd-menu li a:hover {
color: var(--color-text-primary);
}
#navList li a:before,
.hd-menu li a:before {
font-size: 16px;
font-family:fontawesome;
}
#blog_nav_sitehome:before {
content: "\f29a";
}
#blog_nav_myhome:before {
content: "\f015";
}
#blog_nav_newpost:before {
content: "\f040";
}
#blog_nav_contact:before {
content: "\f0e0"
}
#blog_nav_rss:before {
content: "\f09e"
}
#blog_nav_admin:before {
content: "\f013"
}
#sidebar-toggler:before {
content: "\f0c9"
}
#theme:before,
.btn-theme a:before {
content: "\f186"
}
.btn-share a:before {
content: "\f029"
}
.forFlow {
max-width: 960px;
margin: 0 auto 0px;
margin-left: 200px;
display: flex;
flex-direction: column;
/* animation: fadeIn 0.5s; */
position: relative;
overflow-x: hidden;
}
/*************************/
.day,
.postSeparator {
/* margin-bottom:30px; */
}
.dayTitle {
display: none;
}
.postTitle {
padding: 20px;
font-size: var(--text-h2);
color: var(--color-text-primary);
/* letter-spacing: 4px; */
}
.postCon {
padding: 0 20px;
font-size: var(--text-h5);
color: var(--color-text-regular);
}
.postDesc {
padding: 10px 20px;
font-size: var(--text-h6);
color: var(--color-text-secondary);
}
.side-choose {
background: var(--color-white);
display: flex;
justify-content: space-between;
z-index: 99;
background: var(--color-white);
position: sticky;
/* width: 300px; */
left: 0;
/* backdrop-filter: blur(10px); */
top: 0;
/* box-shadow: var(--basic-shadow); */
border-bottom: 1px solid var(--border-color-extra-linght);
/* border-right: 1px solid var(--border-color-extra-linght); */
}
#myside,
#mycontent {
flex-grow: 1;
text-align: center;
line-height: 69px;
color: var(--color-text-placeholder);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.side-choose .active {
color: var(--color-text-primary) !important;
}
.content-active #mycontent {
color: var(--text-color-regular);
}
.side-active #myside:after,
.content-active #mycontent:after {
content: "";
width: 30px;
height: 4px;
border-radius: 0px;
position: absolute;
background: var(--color-primary);
bottom: 0;
margin: 0 auto;
}
.side-active #sidebar_scroller {
animation-name: fadeOutLeft;
animation-duration: 0.5s;
display: none;
}
.side-active #myside {
color: var(--text-color-regular);
}
.side-active #sideBarMain {
animation-name: fadeInRight;
animation-duration: 0.5s;
display: block!important;
}
/*****************************************/
/************** 侧边栏 开始 ***************/
@media screen and (min-width:0px) {
#blog-calendar {
border: 0px solid var(--border-color-light);
/* padding: 14px; */
border-radius: 0;
line-height: 2;
margin-bottom: 20px;
/*box-shadow:var(--light-shadow);*/
/* background: var(--color-white); */
/* transition: all 300ms; */
}
#blogCalendar {
padding: 0px 14px;
width: 100%;
text-align: center;
margin: 0 !important;
}
.CalTitle {
width: 100%;
font-weight: 600;
}
.CalNextPrev a {
font-size: 0;
}
.CalNextPrev:nth-child(1) a:before {
content: "\f104";
/* font-family: element-icons; */
font-size: 18px;
/* font-weight: bolder; */
}
.CalNextPrev:nth-child(3) a:before {
content: "\f105";
/* font-family: element-icons; */
font-size: 18px;
}
.CalDayHeader {
padding: 10px;
/* border-bottom: 1px solid var(--border-color-base); */
margin-bottom: 10px;
}
.CalOtherMonthDay {
color: var(--color-info-1);
}
#blog-calendar u {
color: var(--color-primary);
text-decoration: none;
font-weight: bold;
}
.CalTodayDay u {
color: #fff!important;
}
@media screen and (max-width:1200px) {
#sideBarMain,
#leftcontentcontainer,
#blog-sidecolumn,
#sidebar_categories,
#sidebar_search_box {
display: grid;
grid-template-columns: 100%;
/* grid-gap: 10px; */
width: 100%;
font-family: FontAwesome;
}
#sidebar_scroller {
margin: 0 !important
}
}
#sideBarMain {
padding: 0;
}
@media screen and (min-width:1200px) {
#sideBarMain,
#leftcontentcontainer,
#blog-sidecolumn,
#sidebar_categories,
#sidebar_search_box {
display: flex;
grid-template-columns: 100%;
flex-direction: column;
/* gap: 10px; */
/* width: 100%; */
font-family: FontAwesome;
}
}
#sidebar_shortcut ul {
display: grid;
grid-template-columns: 1fr 1fr;
}
#sidebar_recentposts li,
#sidebar_topviewedposts li,
#sidebar_topdiggedposts li,
#sidebar_topcommentedposts li {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0;
transition: background 500ms;
}
#sidebar_postarchive li,
#sidebar_articlearchive li {
padding: 0;
line-height: 2;
transition: background 500ms;
}
#sidebar_recentposts li:hover,
#sidebar_articlearchive li:hover,
#sidebar_postarchive li:hover,
#sidebar_topviewedposts li:hover,
#sidebar_topcommentedposts li:hover,
.recent_comment_title a:hover,
#sidebar_shortcut a:hover,
#sidebar_topdiggedposts li:hover {
/* background: rgba(0,0,0,0.08); */
/* border-radius: 4px; */
color: var(--color-primary);
}
html[theme="dark"] #sidebar_recentposts li:hover,
html[theme="dark"] #sidebar_articlearchive li:hover,
html[theme="dark"] #sidebar_postarchive li:hover,
html[theme="dark"] #sidebar_topviewedposts li:hover,
html[theme="dark"] #sidebar_topcommentedposts li:hover,
html[theme="dark"] #sidebar_topdiggedposts li:hover {
/* background: rgba(255,255,255,0.08); */
/* border-radius: 4px; */
color: var(--color-primary);
}
#sidebar_toptags ul
{
display: flex;
flex-wrap: wrap;
padding: 8px 20px;
}
#sidebar_toptags li a{
margin: 4px;
display:block;
background: transparent;
padding: 4px 10px;
border-radius: 4px;
border: 1px solid var(--border-color-light);
font-size: var(--text-h6)!important;
line-height: var(--text-h3)!important;
transition: all 200ms;
transition-timing-function:ease-in-out;
}
#sidebar_toptags{
position:relative;
}
#sidebar_toptags li a[href$="tag/"]{
color:var(--color-text-secondary);
border:none;
position:absolute;
top: 11px;
right:20px;
padding:0;
margin:0;
}
#sidebar_toptags li a[href$="tag/"]:after{
content:" \f101";
}
#sidebar_toptags li a[href$="tag/"]:hover{
color:var(--color-text-primary);
background:transparent;
border:none;
}
#sidebar_toptags a:before,
#sidebar_articlecategory a:before {
/* content: "#"; */
margin-right: 3px;
}
#sidebar_imagecategory li,
.sidebar-block[id^="sidebar_link"] li {
margin: 4px 8px 4px 0;
background: transparent;
/* padding: 4px 10px; */
border-radius: 4px;
/* font-size: var(--text-h6); */
line-height: 1.4;
/* border: 1px solid var(--border-color-light); */
transition: all 300ms;
}
#sidebar_imagecategory li a,
.sidebar-block[id^="sidebar_link"] li a {
display: block;
padding: 4px 0px;
}
.sidebar-block[id^="sidebar_link"] li a:before {
margin-right:8px;
}
#sidebar_imagecategory li:hover,
.sidebar-block[id^="sidebar_link"] li:hover {
/* border: 1px solid var(--color-primary); */
/* background: var(--color-primary); */
color: var(--color-primary);
transition: all 300ms;
}
#sidebar_postcategory li {
margin: 0;
background: transparent;
/* color: var(--color-warning); */
/* padding: 4px 10px; */
border-radius: 4px;
/* font-size: var(--text-h6); */
/* line-height: 1.6; */
/* border: 1px solid var(--border-color-light); */
}
/* #sidebar_postcategory li a,.category-item-link {
display: block;
padding: 4px 0px;
} */
#sidebar_postcategory a:before {
/* content: "\e784"; */
}
#sidebar_toptags li a:hover {
background: var(--color-primary);
border: 1px solid var(--color-primary);;
color: #fff;
cursor: pointer;
transition: all 200ms;
transition-timing-function:ease-in-out;
}
#sidebar_postcategory li:hover,
#sidebar_articlecategory li:hover {
/* background: var(--color-warning); */
/* border: 1px solid var(--color-warning); */
color: var(--color-primary);
cursor: pointer;
transition: background 300ms;
}
.sidebar-block,
#sidebar_news,
#sidebar_scroller {
/* border-bottom: 1px solid var(--border-color-base); */
/* padding: 10px 0px 0; */
background: var(--color-white);
border-radius: 0;
line-height: 2;
margin: 0px 0px 10px;
/* transition: all 300ms; */
/* border: 1px solid var(--border-color-light); */
/* box-shadow: var(--light-shadow); */
}
.sidebar-block a[href="javascript:void(0)"]{
display:block;
margin: 10px 0;
text-align:center;
padding: 8px!important;
background: var(--color-info-2);
color:var(--color-text-regular);
border-radius:4px;
transition:all .3s ease-in-out;
font-size: var(--text-h6);
line-height: 1.4;
}
.sidebar-block a[href="javascript:void(0)"]:before{
content:""!important;
}
.sidebar-block a[href="javascript:void(0)"]:hover{
background:var(--color-info-1);
color:var(--color-text-primary);
transition:all .3s ease-in-out;
}
#sidebar_news .catListTitle,
#sidebar_search .catListTitle {
display: none;
}
/*
#sidebar_recentposts li a:before {
content: "\f017";
margin-right: 10px;
}
.liScore:before {
content: "\f005";
margin-right: 10px;
}
.liRank:before {
content: "\f091";
margin-right: 10px;
}
#sidebar_postarchive li a:before,
#sidebar_articlearchive li a:before {
content: "\f073";
margin-right: 10px;
}
.sidebar-block[id^="sidebar_link"] li a:before {
content: "\f0c1";
}
.recent_comment_title a:before {
content: "\f27a";
margin-right: 10px;
}
#sidebar_imagecategory li a:before {
content: "\f03e";
}
#sidebar_topviewedposts li a:before {
content: "\f06e";
margin-right: 10px;
}
#sidebar_topcommentedposts li a:before {
content: "\f086";
margin-right: 10px;
}
#sidebar_topdiggedposts li a:before {
content: "\f164";
margin-right: 10px;
}
*/
.recent_comment_author {
border-bottom: 1px dashed var(--border-color-base);
padding-bottom: 10px;
margin-bottom: 10px;
/* padding-right: 16px; */
margin-top: 6px;
}
.sidebar-block:hover,
#sidebar_news:hover,
#blog-calendar:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 300ms;
}
.catListTitle {
margin: 0;
font-size: var(--text-h5);
font-weight: 600;
/* text-indent:10px; */
padding: 4px 14px 4px;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
position: relative;
}
.catListTitle:before {/* content: ""; *//* border-left: solid 4px var(--color-primary); */margin-right: 4px;width: fit-content;}
.sidebar-block ul, #profile_block, #sidebar_search_box {
padding: 0px 24px 14px;
margin: 0;
/* line-height: 1.8; */
list-style-type: none;
}
#top-info {
display:flex;
justify-content:flex-start;
align-items: center;
/* margin-bottom: 14px; */
gap: 10px;
flex-direction: column;
}
#p_b_follow {
/* margin: 10px 0 20px; */
}
#p_b_follow a {
background: var(--color-danger);
color: #fff;
display: block;
text-align: center;
line-height: 2.8;
border-radius: 4px;
transition: all 300ms;
}
#p_b_follow a:hover {
background: var(--color-danger-0);
transition: all 300ms;
}
#p_b_follow span {
background: var(--color-info);
color: var(--color-white) !important;
display: block;
text-align: center;
line-height: 2.4;
border-radius: 4px;
transition: all 300ms;
}
#p_b_follow span:hover {
background: var(--color-info-0);
transition: all 300ms;
}
.div_my_zzk {
display: flex;
/* padding: 0 14px; */
align-items: center;
}
.input_my_zzk {
width: 0 !important;
border-radius: 4px;
flex-grow: 1;
border: 1px solid var(--color-info-1);
height: 30px;
margin: 4px 0;
padding: 0 10px;
outline: none;
color: var(--TextColor1);
background: var(--color-info-2);
}
.btn_my_zzk {
height: 30px !important;
background: var(--ThemeColor);
border: none;
color: #fff;
border-radius: 4px;
padding: 0 10px !important;
}
.btn_my_zzk:hover {
opacity: .8;
cursor: pointer;
}
}
/*
#sidebar_search .catListTitle:before {
content: "\f002";
font-family: FontAwesome;
margin-right: 8px;
}
#sidebar_shortcut .catListTitle:before {
content: "\f0c1";
font-family: FontAwesome;
}
#sidebar_recentposts .catListTitle:before {
content: "\f024 ";
font-family: FontAwesome;
}
#sidebar_toptags .catListTitle:before {
content: "\f02c ";
font-family: FontAwesome;
}
#sidebar_scorerank .catListTitle:before {
content: "\f080 ";
font-family: FontAwesome;
}
#sidebar_postcategory .catListTitle:before {
content: "\f07c";
font-family: FontAwesome;
}
#sidebar_articlecategory .catListTitle:before {
content: "\f07c";
font-family: FontAwesome;
}
#sidebar_articlearchive .catListTitle:before,
#sidebar_postarchive .catListTitle:before {
content: "\f073";
font-family: FontAwesome;
}
#sidebar_recentcomments .catListTitle:before {
content: "\f075 ";
font-family: FontAwesome;
}
#sidebar_topviewedposts .catListTitle:before {
content: "\f06e ";
font-family: FontAwesome;
}
#sidebar_topcommentedposts .catListTitle:before {
content: "\f086 ";
font-family: FontAwesome;
}
#sidebar_imagecategory .catListTitle:before {
content: "\f03e";
font-family: FontAwesome;
}
#sidebar_topdiggedposts .catListTitle:before {
content: "\f004 ";
font-family: FontAwesome;
}
#sidebar_links1575513 .catListTitle:before,
.catList .catListTitle:before {
content: "\f0c2";
font-family: FontAwesome;
}
*/
/************** 侧边栏 结束 ***************/
/************** 随笔/档案 开始 ***************/
@media screen and (min-width:0) {
.day,
.entrylistItem {
background: var(--color-white);
border-radius: 0px;
overflow: hidden;
/* transition: all 300ms; */
/*padding:0 10px;*/
border-bottom: 1px solid var(--border-color-extra-linght) !important;
/* box-shadow: var(--light-shadow); */
}
#homepage_top_pager {
border-bottom: 1px solid var(--border-color-extra-linght) !important;
}
.entrylistTitle .day:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 300ms;
}
.dayTitle,
.forFlow>.entrylistTitle {
padding: 20px 20px 0px;
margin: 0;
font-size: var(--text-h3);
/* line-height: 70px; */
position: relative;
font-size: 24px;
font-weight: 500;
text-align: center;
/* background: var(--color-white); */
/* margin-bottom: 10px; */
/* border-left: 1px solid var(--border-color-light); */
}
.entrylist .entrylistTitle{
margin: 0;
/* line-height: 60px; */
padding: 10px 0 0;
font-size: var(--text-h3);
position: relative;
font-size: 24px;
font-weight: 500;
text-align: center;
}
.dayTitle {
display: none;
}
.entrylistDescription {
/* padding: 0; */
max-width: 960px;
border-bottom: 1px solid var(--border-color-lighter);
padding: 0px 20px 10px;
color: var(--color-text-regular);
/* text-align: center; */
}
/*
.dayTitle:after,
.entrylistTitle:after {
content: "";
width: 40px;
height: 2px;
border-radius: 4px;
display: block;
background: var(--color-primary);
position: absolute;
bottom: -1px;
left: 20px;
z-index: 4;
transition: width 500ms;
}
.day:hover .dayTitle:after,
.entrylistTitle:hover:after {
width: 80px;
transition: width 500ms;
}
*/
.day .postTitle,
.entrylistPosttitle {
font-size: var(--text-h3);
/* background: var(--color-white); */
padding: 20px 20px 10px;
/* border-radius:4px 4px 0 0;*/
font-weight: 500;
}
.day .postTitle a:hover,
.entrylistPosttitle a:hover {
color: var(--color-primary);
}
.postCon,
.entrylistPostSummary {
/* background: var(--color-white); */
padding: 0 20px 0px;
color: var(--color-text-regular);
}
.postDesc,
.entrylistItemPostDesc {
/* background: var(--color-white); */
padding: 14px 20px 20px;
color: var(--color-text-secondary);
/*border-radius:0 0 4px 4px;*/
/*border-top: 1px solid var(--DividColor); */
/* display: none; */
/* margin-top: 10px; */
display: flex;
}
.postDesc *:before,
.postDesc2 *:before,
.entrylistItemPostDesc *:before{
font-family:fontawesome;
}
.day .postDesc,
.postDesc2,
.entrylistItemPostDesc {
/* font-size:0; */
/* display: none; */
width: 100%;
display: inline-flex;
flex-direction: row-reverse;
text-overflow: ellipsis;
}
.entrylistItemPostDesc a[title="permalink"] {
display: unset;
order: -1;
}
.entrylistItemPostDesc text {
margin-right: 8px;
}
.day .postDesc span,
.postDesc2 span,
.entrylistItemPostDesc span,
.day .postDesc a,
.entrylistItemPostDesc a {
margin-right: 14px;
font-size: var(--text-h6)!important;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.post-view-count:before {
content: "\f06e";
margin-right: 4px;
}
.post-comment-count:before {
content: "\f27b";
margin-right: 4px;
}
.post-digg-count:before {
content: "\f08a";
margin-right: 4px;
}
.post-view-count {
flex: 1;
}
.day .postDesc a[rel="nofollow"],
.postDesc2 a[target="_blank"],
.entrylistItemPostDesc a[rel="nofollow"] {
/* flex:1; */
/* right:0; */
margin-right: 14px;
text-align: right;
font-size: var(--text-h6)!important;
/* display:none; */
transition: display 300ms;
}
.day .postDesc:hover a[rel="nofollow"],
.postDesc2:hover a[target="_blank"],
.entrylistItemPostDesc:hover a[rel="nofollow"] {
display: unset;
float: right;
transition: display 300ms;
}
.day .postDesc a[rel="nofollow"]:hover,
.postDesc2 a[target="_blank"]:hover,
.entrylistItemPostDesc a[rel="nofollow"]:hover {
color: var(--color-danger)
}
.day .postDesc a[rel="nofollow"]:before {
content: "\f040";
margin-right: 0px;
}
.postDesc2 a[target="_blank"]:before {
content: "\f040";
margin-right: 4px;
}
.entrylistItemPostDesc a[rel="nofollow"]:before {
content: "\f040";
margin-right: 4px;
}
.entrylist p:last-child {
display: none;
}
.day .postSeparator {
/* margin:10px 0; */
height: 1px;
overflow: hidden;
border-bottom: 1px solid var(--border-color-extra-linght);
/* padding-bottom: 20px; */
background: transparent;
}
.c_b_p_desc {
line-height: 24px !important;
display: -webkit-box;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
font-size: var(--text-h5);
position: relative;
}
.c_b_p_desc_readmore {
position: absolute;
width: 100%;
left: 0;
top: 0;
height: 100%;
/* display: none; */
font-size: 0;
background: transparent;
/* margin: 20px 0 10px; */
/* border-top: 1px solid var(--border-color-lighter); */
/* padding: 10px 0 0 0; */
}
.c_b_p_desc_readmore:after {
/* content:"\e6e0"; */
font-family: element-icons;
float: right;
}
.c_b_p_desc img {
margin-top: 0px;
margin-left: 10px;
border-radius: 8px;
object-fit: cover;
/* float: left; */
}
@media screen and (max-width:767px) {
.c_b_p_desc {
-webkit-line-clamp: 3;
}
.c_b_p_desc img {
height: 72px;
width: 128.16px;
border: 1px solid rgba(0, 0, 0, .05);
}
}
@media screen and (min-width:767px) {
.c_b_p_desc {
-webkit-line-clamp: 5;
}
.c_b_p_desc img {
height: 120px;
width: 213.6px;
}
}
}
/************** 随笔/档案 结束 ***************/
/************** 常用链接子界面/相册 开始 ***************/
@media screen and (min-width: 0px) {
.PostListTitle {
margin: 0;
font-size: 24px;
font-weight: 500;
text-align: center;
/* text-indent:10px; */
padding: 20px 20px;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
position: relative;
background: var(--color-white);
border-radius: 0;
}
/*
.PostListTitle:after {
content: "";
width: 40px;
height: 2px;
border-radius: 4px;
display: block;
background: var(--color-primary);
position: absolute;
bottom: -1px;
left: 20px;
z-index: 4;
transition: width 500ms;
}
.PostListTitle:hover:after {
width: 80px;
transition: width 500ms;
}
*/
#myposts,
.PostList {
margin: 0 !important;
background: var(--color-white);
}
#myposts {
border-top: 1px solid var(--border-color-extra-linght);
border-radius: 0;
overflow: hidden;
}
.PostList {
display: grid;
grid-template-columns: 100%;
border-bottom: 1px solid var(--border-color-extra-linght);
}
.postTitl2 {
font-size: var(--text-h3);
background: var(--color-white);
padding: 20px 20px 10px;
}
.postDesc2 {
background: var(--color-white);
padding: 0 20px 20px;
font-size: var(--text-h6) !important;
color: var( --color-text-secondary);
order: 1;
}
.postText2 {
background: var(--color-white);
padding: 0 20px 0px;
margin: 0 !important;
font-size: var(--text-h5) !important;
color: var(--color-text-regular);
}
#taglist_main,
.gallery {
margin: 0;
background: var(--color-white);
padding: 0;
border-radius: 0;
box-sizing: border-box;
transition: all 500ms;
text-align: center;
}
#taglist_title,
.thumbTitle,
.galleryTitle {
margin: 0;
/* font-size: 24px; */
font-weight: 500;
/* text-indent:10px; */
padding: 20px 20px;
text-align: center;
/* text-align: left; */
border-bottom: 1px solid var(--border-color-extra-linght);
position: relative;
}
/*
#taglist_title:after,
.galleryTitle:after {
content: "";
width: 40px;
height: 2px;
border-radius: 4px;
display: block;
background: var(--color-primary);
position: absolute;
bottom: -1px;
left: 20px;
z-index: 4;
transition: width 500ms;
}
#taglist_title:hover:after,
.galleryTitle:hover:after {
width: 80px;
transition: width 500ms;
}
*/
#taglist,
#GalleryThumbNailViewer1_ThumbNails {
padding: 20px;
width: 100%;
}
#MyTag1_dtTagList {
width: 100%;
/* table-layout: fixed; */
}
#MyTag1_dtTagList td {
padding: 0;
margin: 0;
width: 25%;
padding: 10px 4px;
box-sizing: border-box;
/* height: 100px; */
white-space: nowrap;
overflow: hidden;
display: inline-flex;
align-items: center;
text-align: center;
float: left;
}
#MyTag1_dtTagList td a {
display: inline-flex;
display: block;
text-overflow: ellipsis;
overflow: hidden;
}
#MyTag1_dtTagList td small {
flex: 1;
}
@media screen and (max-width:540px) {
#MyTag1_dtTagList td {
width: 50% !important;
}
}
.divPhoto {
padding: 10px;
/* height: 100px; */
overflow: hidden;
}
.divPhoto img {
/* height: 100px; */
object-fit: cover;
}
#ViewPicture1_GalleryImage {
/* margin-left:20px; */
max-width: calc(100% - 40px) !important;
}
.gallery:after {
content: "";
height: 30px;
display: block;
}
}
/************** 常用链接子界面/相册 结束 ***************/
/************** 分页模块 开始 ***************/
@media screen and (min-width:0) {
.topicListFooter {
margin: 0;
}
#nav_next_page {
background: var(--color-white);
line-height: 2.6;
border-radius: 10px;
text-align: center;
/* transition: all 500ms; */
/* margin-top: 20px; */
/* box-shadow: var(--light-shadow); */
}
#nav_next_page a {
font-size: var(--text-h6);
display: block;
width: fit-content;
line-height: 28px;
display: inline-block;
padding: 0 10px;
margin: 20px;
border-radius: 4px;
border: 1px solid var(--DividColor);
}
#nav_next_page:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 500ms;
}
.pager {
margin: 0;
font-size: var(--text-h6);
color: var(--color-primary);
line-height: 1.8;
}
.pager a {
padding: 0 4px;
color: var(--color-text-regular);
border: none;
border-radius: 4px;
/* transition: all 500ms; */
display: inline-block;
line-height: 28px;
display: inline-block;
padding: 0 10px;
margin: 8px 8px;
min-width: 28px;
min-height: 28px;
/* background: var(--BackgroundColor); */
/* font-size: small; */
border: 1px solid var(--DividColor);
}
.pager a:hover,
#nav_next_page a:hover {
color: #fff;
background: var(--color-primary);
transition: all 300ms;
border-color: var(--color-primary);
}
.Pager {
padding: 20px;
text-align: center;
background: var(--color-white);
border-top: 1px solid var(--border-color-extra-linght);
}
span.current {
border: none !important;
background: transparent !important;
color: var(--color-primary) !important;
font-weight: normal !important;
}
#homepage_top_pager,
#homepage_bottom_pager,
#comment_pager_top,
#comment_pager_bottom {
/* background: var(--color-white); */
border-radius: 0;
/* margin-bottom: 20px; */
padding: 20px;
/* transition: all 500ms; */
border-bottom: 1px solid var(--border-color-extra-linght);
}
#homepage_top_pager:hover,
#homepage_bottom_pager:hover,
#comment_pager_top:hover,
#comment_pager_bottom:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 500ms;
}
}
/************** 分页模块 开始 ***************/
/************** 页脚 开始 ***************/
@media screen and (min-width:0) {
#footer {
display: none;
text-align: center;
padding: 30px 14px;
background: var(--color-white);
color: var(--color-text-secondary);
}
}
/************** 页脚 结束 ***************/
/************** 博客正文基本样式 开始 ***************/
@media screen and (min-width:0px) {
.post {
display: flex;
flex-direction: column;
grid-template-columns: 100%;
width: 100%;
border: 0px solid var(--border-color-light);
}
.postBody {
order: 1;
/* background: var(--color-white); */
padding: 20px 20px 20px 80px !important;
border-radius: 0;
box-sizing: border-box;
display: grid;
grid-template-columns: 100%;
width: 100%;
overflow: hidden;
}
.post .postTitle,
.post-header .postTitle {
margin: 0;
border-radius: 0;
position: relative;
font-size: 1.7em;
font-weight: 500;
text-align: center;
padding: 30px 20px 0;
/* background: var(--color-white); */
/* border-bottom: 1px solid var(--border-color-extra-linght); */
}
.post .postTitle:after {
content: "";
width: 40px;
height: 2px;
border-radius: 4px;
display: block;
background: var(--color-primary);
position: absolute;
bottom: -1px;
left: 20px;
z-index: 4;
transition: width 500ms;
display: none;
}
.post .postTitle:hover:after {
width: 80px;
transition: width 500ms;
}
.post .postDesc,
.post-header .postDesc {
padding: 10px 20px 30px;
font-size: 0;
display: flex;
line-height: 1.8;
align-items: center;
justify-content: center;
flex-wrap: wrap;
text-align: center;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
}
.post .postDesc span,
.post-header .postDesc span,
.post .postDesc a,
.post-header .postDesc a {
font-size: var(--text-h6);
margin: 0 10px;
}
.post .postDesc span:before,
.post .postDesc a:before,
.post-header .postDesc span:before,
.post-header .postDesc a:before {
margin-right: 4px;
font-family:fontawesome;
}
#post-date:before {
content: "\f017";
/* font-family: element-icons; */
}
#post_view_count:before {
content: "\f06e";
/* font-family: element-icons; */
}
#post_comment_count:before {
content: "\f27a";
/* font-family: element-icons; */
}
#post_comment_count {
/* flex-grow: 1; */
}
.post .postDesc a[href^="https://www.cnblogs.com/"]:before,
.post-header .postDesc a[href^="https://www.cnblogs.com/"]:before {
content: "\f2be";
/* font-family: element-icons; */
}
.post .postDesc a[target="_blank"]:before,
.post-header .postDesc a[target="_blank"]:before {
content: "\f15c";
/* font-family: element-icons; */
}
.post .postDesc a[rel="nofollow"]:before,
.post-header .postDesc a[rel="nofollow"]:before {
content: "\f040";
/* font-family: element-icons; */
}
.post .postDesc a[onclick^="AddToWz"],
.post-header .postDesc a[onclick^="AddToWz"] {
margin: 0 10px;
}
.post .postDesc a[onclick^="reportManager"],
.post-header .postDesc a[onclick^="reportManager"] {
margin: 0 10px;
}
.post .postDesc a[onclick^="AddToWz"]:before,
.post-header .postDesc a[onclick^="AddToWz"]:before {
content: "\f005";
/* font-family: element-icons; */
}
.post .postDesc a[onclick^="reportManager"]:before,
.post-header .postDesc a[onclick^="reportManager"]:before {
content: "\f071";
/* font-family: element-icons; */
}
}
/************** 博客正文基本样式 结束 ***************/
/************** markdown 开始 ***************/
@media screen and (min-width:0) {
.cnblogs-markdown {
line-height: 1.8;
}
.cnblogs-markdown a {
color: var(--color-primary);
/* text-decoration:underline; */
word-break: break-all;
transition:color .3s;
}
/* .cnblogs-markdown a:hover{
color: var(--color-primary);
transition:color .3s;
} */
.fancybox-image {
max-width: 100% !important;
}
.img-caption {
text-align: center;
width: fit-content;
min-width: 20%;
max-width: 80%;
display: block;
margin: 0 auto;
padding: 10px 10px 40px;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
font-size: 1em;
color: #999;
}
#cnblogs_post_body p img {
width: auto;
display: flex;
margin: 0 auto;
align-items: center;
text-align: center;
}
pre code,
pre code .hljs {
border: none !important;
/* color: #abb2bf; */
/* padding: 16px 16px!important; */
/* padding-left: 10px; */
/* background: #282c34 !important; */
font-size: var(--text-h6) !important;
/* line-height: unset!important; */
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}
#cnblogs_post_body ul {
margin-left: 0 !important;
}
.cnblogs-markdown li li li {
list-style-type: square !important;
}
.cnblogs-markdown blockquote {
margin: 0;
border-top: 0px;
border-bottom: 0px;
border-right: 0px;
}
.cnblogs-markdown .table-wrapper table {
width: 100% !important;
display: table !important;
border: none !important;
}
#cnblogs_post_body .table-wrapper th,
#cnblogs_post_body .table-wrapper td,
.cnblogs-post-body .table-wrapper th,
.cnblogs-post-body .table-wrapper td {
border: 1px solid var(--color-text-placeholder) !important;
word-break: break-all;
white-space: nowrap;
/* width: auto; */
}
}
/************** markdown 结束 ***************/
/************** github markdown 开始 ***************/
@media screen and (min-width:0) {
.cnblogs-markdown {
/* font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji !important; */
font-size: 16px !important;
line-height: 1.8 !important;
/* word-wrap: break-word !important; */
overflow: hidden;
}
.cnblogs-markdown kbd {
display: inline-block !important;
padding: 3px 5px !important;
font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace !important;
line-height: 10px !important;
color: #444d56 !important;
vertical-align: middle !important;
background-color: #fafbfc !important;
border: 1px solid #d1d5da !important;
border-radius: 3px !important;
box-shadow: inset 0 -1px 0 #d1d5da !important;
}
.cnblogs-markdown:after,
.cnblogs-markdown:before {
display: table !important;
content: "" !important;
}
.cnblogs-markdown:after {
clear: both !important;
}
.cnblogs-markdown>:first-child {
margin-top: 0 !important
}
.cnblogs-markdown>:last-child {
margin-bottom: 0 !important
}
.cnblogs-markdown a:not([href]) {
color: inherit !important;
text-decoration: none !important;
}
.cnblogs-markdown .absent {
color: #cb2431 !important;
}
.cnblogs-markdown .anchor {
float: left !important;
padding-right: 4px !important;
margin-left: -20px !important;
line-height: 1 !important;
}
.cnblogs-markdown .anchor:focus {
outline: none !important;
}
.cnblogs-markdown blockquote,
.cnblogs-markdown details,
.cnblogs-markdown dl,
.cnblogs-markdown ol,
.cnblogs-markdown p,
.cnblogs-markdown pre,
.cnblogs-markdown ul {
/*word-break: break-all;*/
margin-top: 0 !important;
margin-bottom: 16px !important;
}
.cnblogs-markdown hr {
height: .25em !important;
padding: 0 !important;
margin: 24px 0 !important;
background-color: #e1e4e8 !important;
border: 0 !important;
}
.cnblogs-markdown blockquote {
padding: 0 1em !important;
color: #6a737d !important;
border-left: .25em solid #dfe2e5 !important;
}
.cnblogs-markdown blockquote>:first-child {
margin-top: 0 !important;
}
.cnblogs-markdown blockquote>:last-child {
margin-bottom: 0 !important;
}
.cnblogs-markdown h1,
.cnblogs-markdown h2,
.cnblogs-markdown h3,
.cnblogs-markdown h4,
.cnblogs-markdown h5,
.cnblogs-markdown h6 {
margin-top: 24px !important;
margin-bottom: 16px !important;
/* font-weight: 500 !important; */
line-height: 1.8 !important;
}
.cnblogs-markdown h1 .octicon-link,
.cnblogs-markdown h2 .octicon-link,
.cnblogs-markdown h3 .octicon-link,
.cnblogs-markdown h4 .octicon-link,
.cnblogs-markdown h5 .octicon-link,
.cnblogs-markdown h6 .octicon-link {
color: #1b1f23 !important;
vertical-align: middle !important;
visibility: hidden !important;
}
.cnblogs-markdown h1:hover .anchor,
.cnblogs-markdown h2:hover .anchor,
.cnblogs-markdown h3:hover .anchor,
.cnblogs-markdown h4:hover .anchor,
.cnblogs-markdown h5:hover .anchor,
.cnblogs-markdown h6:hover .anchor {
text-decoration: none !important;
}
.cnblogs-markdown h1:hover .anchor .octicon-link,
.cnblogs-markdown h2:hover .anchor .octicon-link,
.cnblogs-markdown h3:hover .anchor .octicon-link,
.cnblogs-markdown h4:hover .anchor .octicon-link,
.cnblogs-markdown h5:hover .anchor .octicon-link,
.cnblogs-markdown h6:hover .anchor .octicon-link {
visibility: visible !important;
}
.cnblogs-markdown h1 code,
.cnblogs-markdown h1 tt,
.cnblogs-markdown h2 code,
.cnblogs-markdown h2 tt,
.cnblogs-markdown h3 code,
.cnblogs-markdown h3 tt,
.cnblogs-markdown h4 code,
.cnblogs-markdown h4 tt,
.cnblogs-markdown h5 code,
.cnblogs-markdown h5 tt,
.cnblogs-markdown h6 code,
.cnblogs-markdown h6 tt {
font-size: inherit !important;
}
.cnblogs-markdown h1 {
font-size: 1.5em !important;
}
.cnblogs-markdown h1,
.cnblogs-markdown h2 {
padding-bottom: .3em !important;
border-bottom: 1px solid var(--border-color-extra-linght) !important;
}
.cnblogs-markdown h2 {
font-size: 1.4em !important;
}
.cnblogs-markdown h3 {
font-size: 1.3em !important;
}
.cnblogs-markdown h4 {
font-size: 1.2em !important;
}
.cnblogs-markdown h5 {
font-size: 1em !important;
}
.cnblogs-markdown h6 {
font-size: 1em !important;
color: #6a737d !important;
}
.cnblogs-markdown ol,
.cnblogs-markdown ul {
padding-left: 2em !important;
}
.cnblogs-markdown ol.no-list,
.cnblogs-markdown ul.no-list {
padding: 0 !important;
list-style-type: none !important;
}
.cnblogs-markdown ol ol,
.cnblogs-markdown ol ul,
.cnblogs-markdown ul ol,
.cnblogs-markdown ul ul {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.cnblogs-markdown li {
word-wrap: break-all !important;
}
.cnblogs-markdown li>p {
margin-top: 16px !important;
}
.cnblogs-markdown li+li {
margin-top: .25em !important;
}
.cnblogs-markdown dl {
padding: 0 !important;
}
.cnblogs-markdown dl dt {
padding: 0 !important;
margin-top: 16px !important;
font-size: 1em !important;
font-style: italic !important;
font-weight: 600 !important;
}
.cnblogs-markdown dl dd {
padding: 0 16px !important;
margin-bottom: 16px !important;
}
.cnblogs-markdown .table-wrapper table {
display: table !important;
width: 100% !important;
overflow-x: auto !important;
}
.cnblogs-markdown .table-wrapper table th {
font-weight: 600 !important;
background: var(--color-info-2)!important;
}
.cnblogs-markdown .table-wrapper table td {
padding: 6px 13px !important;
border: 1px solid #dfe2e5 !important;
background: transparent !important;
text-align: initial;
}
.cnblogs-markdown .table-wrapper table tr {
background-color: var(--color-white);
border-top: 1px solid #c6cbd1 !important;
}
.cnblogs-markdown .table-wrapper table tr:nth-child(2n) {
background-color: var(--color-info-2)!important;
}
.cnblogs-markdown .table-wrapper table img {
background-color: initial !important;
}
.cnblogs-markdown.blog_comment_body img {
max-width: 100% !important;
box-sizing: initial !important;
background-color: var(--color-white) !important;
}
#cnblogs_post_body p img, .cnblogs-post-body p img {
max-width: 100% !important;
height: auto;
}
#cnblogs_post_body img {
/* max-width: unset!important; */
}
.cnblogs-markdown img[align=right] {
padding-left: 20px !important;
}
.cnblogs-markdown img[align=left] {
padding-right: 20px !important;
}
.cnblogs-markdown .emoji {
max-width: none !important;
vertical-align: text-top !important;
background-color: initial !important;
}
.cnblogs-markdown span.frame {
display: block !important;
overflow: hidden !important;
}
.cnblogs-markdown span.frame>span {
display: block !important;
float: left !important;
width: auto !important;
padding: 7px !important;
margin: 13px 0 0 !important;
overflow: hidden !important;
border: 1px solid #dfe2e5 !important;
}
.cnblogs-markdown span.frame span img {
display: block !important;
float: left !important;
}
.cnblogs-markdown span.frame span span {
display: block !important;
padding: 5px 0 0 !important;
clear: both !important;
color: #24292e !important;
}
.cnblogs-markdown span.align-center {
display: block !important;
overflow: hidden !important;
clear: both !important;
}
.cnblogs-markdown span.align-center>span {
display: block !important;
margin: 13px auto 0 !important;
overflow: hidden !important;
text-align: center !important;
}
.cnblogs-markdown span.align-center span img {
margin: 0 auto !important;
text-align: center !important;
}
.cnblogs-markdown span.align-right {
display: block !important;
overflow: hidden !important;
clear: both !important;
}
.cnblogs-markdown span.align-right>span {
display: block !important;
margin: 13px 0 0 !important;
overflow: hidden !important;
text-align: right !important;
}
.cnblogs-markdown span.align-right span img {
margin: 0 !important;
text-align: right !important;
}
.cnblogs-markdown span.float-left {
display: block !important;
float: left !important;
margin-right: 13px !important;
overflow: hidden !important;
}
.cnblogs-markdown span.float-left span {
margin: 13px 0 0 !important;
}
.cnblogs-markdown span.float-right {
display: block !important;
float: right !important;
margin-left: 13px !important;
overflow: hidden !important;
}
.cnblogs-markdown span.float-right>span {
display: block !important;
margin: 13px auto 0 !important;
overflow: hidden !important;
text-align: right !important;
}
.cnblogs-markdown p code {
padding: 0.1em .2em !important;
margin: 0 2px !important;
font-size: 0.9rem!important;
display: inline!important;
/* border: none !important; */
/* color: var(--color-text-placeholder); */
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
background-color: var(--border-color-lighter);
border-radius: 3px !important;
/* border: 1px solid var(--border-color-base); */
}
.cnblogs-markdown code br,
.cnblogs-markdown tt br {
display: none !important;
}
.cnblogs-markdown del code {
text-decoration: inherit !important;
}
.cnblogs-markdown pre>code {
padding: 16px !important;
/* background: transparent !important; */
border: 0 !important;
}
.cnblogs-markdown .highlight {
margin-bottom: 16px !important;
}
.cnblogs-markdown .highlight pre {
margin-bottom: 0 !important;
/*word-break: normal !important;*/
}
.cnblogs-markdown .highlight pre, .cnblogs-markdown pre,pre[class*="language-"] {
padding: 0px !important;
overflow-x: auto !important;
font-size: 85% !important;
width: 100%;
line-height: 1.45 !important;
/* background-color: #282c34 !important; */
border-radius: 3px !important;
border: none;
}
.cnblogs-markdown pre code,
.cnblogs-markdown pre tt {
/*display: inline !important;*/
/*max-width: auto !important;*/
/* padding: 0px !important; */
/* padding: 16px !important; */
/* line-height: inherit !important; */
white-space: pre !important;
word-break: keep-all;
/* text-overflow: clip; */
/* background-color: initial !important; */
border: 0 !important;
}
.cnblogs-markdown .csv-data td,
.cnblogs-markdown .csv-data th {
padding: 5px !important;
overflow: hidden !important;
font-size: 12px !important;
line-height: 1 !important;
text-align: left !important;
white-space: nowrap !important;
}
.cnblogs-markdown .csv-data .blob-num {
padding: 10px 8px 9px !important;
text-align: right !important;
background: #fff !important;
border: 0 !important;
}
.cnblogs-markdown .csv-data tr {
border-top: 0 !important;
}
.cnblogs-markdown .csv-data th {
font-weight: 600 !important;
background: #f6f8fa !important;
border-top: 0 !important;
}
}
/************** github markdown 结束 ***************/
/************** 博文互动开始 ***************/
@media screen and (min-width:0px) {
#BlogPostCategory,
#EntryTag,
#BlogCollection {
font-family: element-icons;
margin: 10px 0;
font-size: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
}
#BlogPostCategory a,
#EntryTag a ,
#BlogCollection a{
margin: 4px 8px 4px 0;
display: inline-block;
font-size: small;
}
#BlogPostCategory:before {
content:" 分类:";
font-size: var(--text-h5);
}
#EntryTag:before {
content: " 标签:";
font-size: var(--text-h5);
}
#BlogCollection:before {
content: " 合集:";
font-size: var(--text-h5);
}
#BlogPostCategory a {
background: var(--color-info-2);
color:var(--color-text-regular);
padding: 2px 12px;
border-radius: 100px;
transition-property: color , border;
transition-duration:.3s , .3s;
font-size: 14px;
}
#BlogPostCategory a:before {
content:"\f07b";
font-family:fontawesome;
font-size: 14px!important;
}
#BlogPostCategory a:hover {
background: var(--color-primary);
color: #fff;
transition-property: color , border, background;
transition-duration:.3s , .3s;
}
#EntryTag a {
background: var(--color-info-2);
color:var(--color-text-regular);
padding: 2px 12px;
border-radius: 100px;
transition-property: color , border;
transition-duration:.3s , .3s;
font-size: 14px;
}
#EntryTag a:before {
content:"\f02b";
font-family:fontawesome;
font-size: 14px!important;
}
#EntryTag a:hover {
background: var(--color-primary);
color: #fff;
transition-property: color , border, background;
transition-duration:.3s , .3s;
}
#BlogCollection a {
background: var(--color-info-2);
color:var(--color-text-regular);
padding: 2px 12px;
border-radius: 100px;
transition-property: color , border;
transition-duration:.3s , .3s;
font-size: 14px;
}
#BlogCollection a:before {
content:"\f02e";
font-family:fontawesome;
font-size: 14px!important;
}
#BlogCollection a:hover {
background: var(--color-primary);
color: #fff;
transition-property: color , border, background;
transition-duration:.3s , .3s;
}
#BlogPostCategory a:before,
#EntryTag a:before,
#BlogCollection a:before{
margin-right: 4px;
}
#BlogPostCategory a:before {
/* content: "\e784"; */
}
#EntryTag a:before {
/* content: "#"; */
}
#blog_post_info {
display: flex;
flex-wrap: wrap;
align-items: center;
/* grid-template-columns:100%; */
/* grid-gap:20px; */
margin-top: 40px;
position: relative;
justify-content: flex-start;
border-bottom: 1px solid var(--border-color-extra-linght);
}
#green_channel {
/* width: 100% !important; */
/* padding: 20px 10px; */
border: none;
margin: 20px auto 40px 0px;
display: flex;
align-items: center;
/* grid-template-columns: repeat(3, 1fr); */
/* grid-gap: 30px; */
justify-content: center;
font-family: FontAwesome;
/* flex: auto; */
width: fit-content!important;
order: 1;
float: left;
}
#green_channel a {
padding: 0 20px;
}
#green_channel a {
background: transparent !important;
border: none !important;
box-shadow: none !important;
text-shadow: none !important;
color: var(--color-text-primary) !important;
padding: 0 !important;
margin: 0 10px !important;
}
#green_channel a:link,
#green_channel a:visited,
#green_channel a:active {
color: var(--color-text-primary) !important;
}
#green_channel a {
/* display: flex; */
/* align-items: center; */
font-size: 0;
font-weight: normal;
/* grid-template-columns: 100%; */
margin: 0 20px;
position: relative;
}
#green_channel a:before {
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-h4);
border-radius: 100px;
line-height: 40px;
height: 40px;
width: 40px;
border: 1px solid var(--BackgroundColor);
/* transition: all 300ms; */
}
#green_channel_digg,
#green_channel span,
#green_channel_follow {
display: none !important;
}
#green_channel_digg:before {
content: "\f087";
}
#green_channel_follow:before {
content: "\f08a";
}
#green_channel_favorite:before {
content: "\f005";
color: var(--color-info-0);
}
#green_channel_favorite:hover:after {
font-size: 14px;
content: "收藏本文";
font-size: 10px;
color: var(--color-text-secondary);
top: -50%;
left: -2px;
right: 0;
width: max-content;
position: absolute;
animation-name: fadeInUp;
animation-duration: 0.3s
}
#green_channel_favorite:hover:before {
content: "\f005";
color: var(--color-warning);
transition: 300ms;
}
#green_channel_weibo:before {
content: "\f18a";
color: var(--color-info-0);
}
#green_channel_weibo:hover:before {
content: "\f18a";
color: #F44336;
transition: 300ms;
}
#green_channel_weibo img {
display: none;
}
#green_channel_weibo:after {
content: "微博分享"
}
#green_channel_weibo:hover:after {
font-size: 14px;
content: "微博分享";
font-size: 10px;
color: var(--color-text-secondary);
top: -50%;
left: -2px;
right: 0;
width: max-content;
position: absolute;
animation-name: fadeInUp;
animation-duration: 0.3s
}
#green_channel_wechat:before {
content: "\f1d7";
color: var(--color-info-0);
}
#green_channel_wechat:hover:after {
font-size: 14px;
content: "微信分享";
font-size: 10px;
color: var(--color-text-secondary);
top: -50%;
left: -2px;
right: 0;
width: max-content;
position: absolute;
animation-name: fadeInUp;
animation-duration: 0.3s
}
#green_channel_wechat:hover:before {
content: "\f1d7";
color: var(--color-success);
}
#green_channel_wechat img {
display: none;
}
#green_channel_wechat:after {
content: "微信分享"
}
#div_digg {
margin: 20px 10px 40px auto;
padding: 0;
width: fit-content;
color: var(--color-text-primary) !important;
/* flex-grow: 1; */
text-align: center;
display: flex;
/* flex-direction: column; */
/* position: absolute; */
}
.diggit {
background: transparent!important;
color: var(--color-info-0);
margin: 0;
padding: 0;
width: fit-content;
height: fit-content;
transition: 300ms;
/* position:relative; */
}
.diggit:hover:after {
font-size: 14px;
content: "支持一下";
font-size: 10px;
color: var(--color-text-secondary);
top: 10px;
margin: 0 auto 0 -23.5px;
width: max-content;
position: absolute;
animation-name: fadeInUp;
animation-duration: 0.3s;
}
.zan .diggit:before {
color: #FA7298;
animation-name: zan;
animation-duration: 0.5s;
}
#digg_tips {
font-size: 0;
}
#digg_tips a {
/* position: relative; */
font-size: 0px;
/* right:0; */
margin: -2px!important;
padding: 0!important;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
/* z-index: -2; */
text-decoration: none;
}
#digg_tips a:before {
font-size: 14px;
content: "\f004";
width: 40px;
line-height: 40px;
height: 40px;
color: #FA7298;
font-size: var(--text-h4);
}
#digg_tips a:hover:after {
font-size: 14px;
content: "取消支持";
font-size: 10px;
color: var(--color-text-secondary);
top: -50%;
width: max-content;
position: absolute;
animation-name: fadeInUp;
animation-duration: 0.3s
}
.diggnum {
/* display:none; */
color: var(--tect-color-regular)!important;
font-family: inherit;
position: absolute;
top: 80px;
margin: 0 auto;
left: 0;
right: 0;
width: max-content;
pointer-events: none;
}
.diggnum:after {
content: " 人觉得很赞";
}
.buryit {
display: none;
}
.diggit:hover:before {
color: #FA7298
}
@keyframes zan {
from {
opacity: 0;
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
.diggit:before {
content: "\f004";
font-family: 'FontAwesome';
font-size: var(--text-h4);
/* font-family: 'Material Icons'; */
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-h4);
border-radius: 100px;
line-height: 40px;
height: 40px;
width: 40px;
border: 1px solid var(--BackgroundColor);
}
/*:after {
position:absolute;
top:0;
content: "+1";
font-size: var(--text-h4);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-h4);
border-radius: 100px;
line-height: 40px;
height: 40px;
width: 40px;
display:none;
animation-name:fadeOutUp;
animation-duration: 0.5s;
} */
@media screen and (max-width:540px) {
#div_digg {
margin: 20px 10px 40px auto;
}
#author_profile_honor {
display: none;
}
}
/* 博主信息 */
#author_profile {
order: 1;
width: 100%;
display: flex;
align-items: center;
margin: 20px 0;
border: 1px solid var(--BackgroundColor);
padding: 20px;
border-radius: 4px;
}
.author_profile_info {
flex-grow: 1;
color: var(--color-text-primary);
}
#author_profile a:hover {
text-decoration: none;
}
.author_avatar {
margin: 0;
padding: 0;
height: 54px;
height: 54px;
border-radius: 100px;
}
#author_profile_detail {
margin: 0 20px;
}
#author_profile_honor {
padding: 4px 12px;
border-radius: 4px;
margin: 0 20px;
font-size: var(--text-h6);
color: #fff;
background: var(--color-primary);
cursor: pointer
}
#author_profile_honor:empty {
display: none;
}
#author_profile_honor:before {
content: "\f091";
margin-right: 10px;
/* color:#FF9800 */
/* font-family:element-icons; */
;
}
#author_profile_follow {
font-size: 0;
}
#author_profile_follow a,
#author_profile_follow span {
background: #fdedf1;
border: 1px solid #ffe1ea;
color: #ff5182!important;
padding: 6px 12px;
border-radius: 4px;
font-size: var( --text-h6);
transition: all 300ms;
}
#author_profile_follow a:hover {
background: var(--color-danger-0);
border: 1px solid var(--color-danger-0);
transition: all 300ms;
color: #fff!important;
}
/*上下篇*/
#post_next_prev {
font-size: var(--text-h5);
text-overflow: ellipsis;
width: 100% !important;
display: grid;
padding: 20px 0 0;
border-radius: 6px;
grid-template-columns: 0 auto 1fr 14px auto 1fr;
justify-content: space-between;
overflow: hidden;
}
#post_next_prev a {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#post_next_prev br {
width: 0 !important;
display: none;
margin: 0 7px !important;
}
.p_n_p_prefix {
font-size: 0;
}
}
/************** 博文互动结束 ***************/
/************** 评论开始 ***************/
@media screen and (min-width:0px) {
.login_tips {
padding: 20px;
background: none;
text-align: center;
}
#blog-comments-placeholder div[style="color:green;margin:50px 0;font-weight:normal;"] {
margin: 0 !important;
padding: 20px;
text-align: center;
}
#blog-comments-placeholder div[style="color:green;margin:50px 0;font-weight:normal;"]:before {
content: "\e6cf";
font-family: element-icons;
margin-right: 6px;
}
#comment_form_container span[style="color:red"] {
text-align: center !important;
padding: 20px !important;
display: block;
}
#comment_form_container span[style="color:red"]:before {
content: "\f071";
font-family: FontAwesome;
margin-right: 6px;
}
.commentbox_tab:hover,
.commentbox_tab.active {
border-bottom-color: var(--color-primary);
}
#comment_form {
border: 0px solid var(--border-color-light);
}
#comment_form,
#blog-comments-placeholder {
margin: 0 0 20px 0;
background: var(--color-white);
border-radius: 0;
}
#blog-comments-placeholder br {
display: none;
}
#comment_nav {
padding: 20px;
text-align: center;
display: none;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
}
#commentform_title {
background: none;
padding: 0;
margin: 0;
}
#commentform_title,
.feedback_area_title {
margin: 0;
font-size: var(--text-h4);
font-weight: 500;
/* text-indent:10px; */
padding: 14px 14px 14px;
/* border-top: 1px solid var(--border-color-extra-linght); */
border-bottom: 1px solid var(--border-color-extra-linght);
position: relative;
/* order: 1; */
}
#commentform_title:before,
.feedback_area_title:before {
/* content: ""; */
border-left: solid 4px var(--color-primary);
margin-right: 10px;
width: fit-content;
}
#commentform_title:after,
.feedback_area_title:after {
/* content: ""; */
width: 40px;
height: 2px;
border-radius: 4px;
display: block;
background: var(--color-primary);
position: absolute;
bottom: -1px;
left: 20px;
z-index: 4;
transition: width 500ms;
}
#commentform_title:hover:after,
.feedback_area_title:hover:after {
width: 80px;
}
.feedbackItem {
/* border-bottom: 1px solid var(--border-color-extra-linght); */
padding: 16px 10px 0;
box-sizing: border-box;
position: relative;
}
.feedbackListSubtitle {
display: flex;
/* line-height:2; */
color: var(--color-text-secondary);
font-size: 0;
white-space: nowrap;
overflow-x: auto;
/* width: 100%; */
flex-wrap: wrap;
/* position: relative; */
}
.comment_vote {
color: var(--color-text-secondary);
padding-bottom: 16px;
font-size: var(--text-h5) !important;
border-bottom: 1px solid var(--border-color-extra-linght);
}
.feedbackListSubtitle a {
font-size: var(--text-h5);
}
.layer {
/* width:100%; */
order: 1;
margin-right: 10px;
}
.feedbackManage {
order: 6;
position: absolute;
/* left: 20px; */
bottom: 0px;
margin-bottom: 16px;
}
.comment_date {
order: 3;
width: 100%;
font-size: var(--text-h5);
}
.feedbackListSubtitle a[id^="a_comment_author"] {
order: 2;
overflow: hidden;
/* width: 100%; */
/* margin-right: 120px; */
white-space: nowrap;
text-overflow: ellipsis;
color: var(--color-text-regular);
/* padding-right: 200px!important; */
}
.louzhu {
order: 3;
display: flex;
align-items: center;
justify-content: center;
}
.louzhu:before {
content: "作者";
font-size: 10px!important;
;
color: #fff;
margin-left: 4px;
background: #ea7197;
height: 14px;
line-height: 14px;
padding: 2px 4px;
border-radius: 2px;
font-family: fontawesome;
/* font-size: var(--text-h5) !important; */
}
.comment_textarea {
width: calc(100% - 28px)!important;
margin: 10px 14px 14px!important;
border: 1px solid var(--border-color-extra-linght);
background: var(--color-white);
transition: none;
}
#tbCommentBody {
background: var(--color-white);
color: var(--text-color-regular);
max-height: 200px;
font-size: 16px;
}
.commentbox_title,
.commentbox_tab:hover,
.commentbox_tab.active {
/* border-color: var(--color-primary); */
color: var(--color-text-regular);
}
.commentbox_title {
border-bottom: 1px solid var(--border-color-extra-linght) !important;
}
#commentbox_opt {
padding: 0 14px;
margin: 0!important;
}
#comment_form_container p:nth-child(7) {
padding: 10px 20px;
font-size: var(--text-h6);
color: var(--color-text-secondary);
}
#tbCommentBodyPreviewBody {
max-height: 200px;
overflow-y: auto;
margin: 0;
height: 250px;
padding: 14px 0;
}
#btn_comment_submit {
background:#d9665b;
border-radius: 4px;
border: none;
color: #fff;
cursor: pointer;
outline: none;
line-height: 30px;
height: 30px;
width: 80px;
}
#btn_comment_submit:hover {
/* color: #fff;
transition: all 300ms;
/* border: 1px solid var(--color-primary); */
/* background: var(--color-primary); */
opacity:.8;
}
.blog_comment_body {
padding: 10px 0;
}
#tip_comment,
#tip_comment2 {
display: none;
}
.comment_my_posted,
.new-comment-block {
padding: 20px;
border-bottom: 1px dashed var(--border-color-base);
}
.bq_post_comment {
border: none;
}
}
/************** 评论结束 ***************/
/************** 弹窗开始 ***************/
@media screen and (min-width:0px) {
.ui-popup {
max-width: calc(100vw - 28px) !important;
}
.art-dialog-content,
.alert-dialog-grid,
.alert-dialog-header,
.alert-dialog-body,
.alert-dialog-footer {
max-width: calc(100vw - 70px) !important;
}
.art-dialog-title {
max-width: 100px !important;
}
.art-dialog-content iframe {
overflow-y: auto !important;
}
}
/************** 弹窗结束 ***************/
.line-numbers .line-numbers-rows {
/* letter-spacing: 0!important; */
/* font-family: monospace!important; */
/* border-right: none!important; */
}
/*代码字体大小*/
pre[class*="language-"], code[class*="language-"]{
font-size:14px!important;
}
pre[class*="language-"] code::-webkit-scrollbar {
width: 8px;
height: 8px;
transition: height 3000ms;
}
pre[class*="language-"] code::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
}
/*** 代码复制 开始**/
@media screen and (min-width:0px) {
.codeType {
position: absolute;
top: 0;
right: 0px;
padding: 2px 10px;
border-radius: 4px;
/* background:#1e1e1e; */
color: #dcdcd0;
z-index: 2;
font-size: small;
/* box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1); */
}
.clipboard-button {
position: absolute;
display: none;
z-index: 2;
right: 10px;
top: 7px;
border-radius: 4px;
font-size: 12px !important;
color: #333;
padding: 2px 6px;
box-sizing: border-box;
background-color: #fff;
box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.clipboard-button:before {
content: "复制"
}
.copyItem:hover .clipboard-button {
display: block;
z-index: 2;
}
}
/*** 代码复制 结束**/
/*** 评论头像开始**/
@media screen and (min-width:0px) {
.feedbackListSubtitle_right,
.feedbackCon_right {
margin-left: 60px;
}
.comment_avatar {
width: 48px;
height: 48px;
border-radius: 100%;
border: 1px solid var(--DividColor);
}
.comment_avatar img {
box-shadow: 0 0 1px 0px rgba(51, 51, 51, .1) !important;
}
}
/*** 评论头像 结束**/
/**** owo开始 ****/
@media screen and (min-width:0px) {
.OwO {
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.OwO:hover .OwO-logo {
color: #444
}
.OwO.OwO-open .OwO-logo {
border-radius: 4px 4px 0 0;
/* border-bottom: none; */
color: #444;
}
.OwO.OwO-open .OwO-body {
display: block
}
.OwO.OwO-up .OwO-body {
top: inherit;
bottom: 40px;
border-radius: 4px 4px 4px 0;
width: 290px!important;
/* height: 150px; */
}
.OwO .OwO-body {
animation-name: fadeOutUp;
animation-duration: 0.4s;
}
.OwO-open .OwO-body {
animation-name: fadeInDown;
animation-duration: 0.4s;
}
.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
border-radius: 0
}
.OwO.OwO-up.OwO-open .OwO-logo {
border: none;
border-radius: 0 0 4px 4px;
/* border-top: none; */
}
.OwO .OwO-logo {
position: relative;
display: inline-block;
color: #888;
background: var(--color-white);
border: none;
border-radius: 4px;
font-size: 16px;
padding: 2px 5px;
cursor: pointer;
height: 22px;
box-sizing: border-box;
z-index: 2;
line-height: 16px;
}
.OwO .OwO-logo:hover span {
display: inline-block;
-webkit-animation: a 5s infinite ease-in-out;
animation: a 5s infinite ease-in-out
}
.OwO .OwO-body {
display: none;
position: absolute;
width: 400px;
background: var(--color-white);
border: 1px solid var(--border-color-extra-linght);
z-index: 1;
top: 21px;
border-radius: 0 4px 4px 4px;
}
.OwO .OwO-body .OwO-items {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
display: none;
padding: 10px;
margin: 0;
overflow: scroll;
font-size: 0
}
.OwO .OwO-body .OwO-items .OwO-item {
list-style-type: none;
background: var(--background-color-base);
padding: 5px 10px;
border-radius: 5px;
display: inline-block;
font-size: 12px;
line-height: 14px;
margin: 0 10px 12px 0;
cursor: pointer;
-webkit-transition: .3s;
transition: .3s;
}
.OwO .OwO-body .OwO-items .OwO-item:hover {
background: var(--background-color-base);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
-webkit-animation: a 5s infinite ease-in-out;
animation: a 5s infinite ease-in-out;
}
.OwO .OwO-body .OwO-items-emoji .OwO-item {
font-size: 20px;
line-height: 19px
}
.OwO .OwO-body .OwO-items-image .OwO-item {
max-width: calc(25% - 10px);
box-sizing: border-box
}
.OwO .OwO-body .OwO-items-image .OwO-item img {
max-width: 100%
}
.OwO .OwO-body .OwO-items-show {
display: block
}
.OwO .OwO-body .OwO-bar {
width: 100%;
height: 30px;
border-top: 1px solid var(--border-color-extra-linght);
background: var(--color-white);
border-radius: 0 0 4px 4px;
color: var(--color-text-regular);
}
.OwO .OwO-body .OwO-bar .OwO-packages {
margin: 0;
padding: 0;
font-size: 0
}
.OwO .OwO-body .OwO-bar .OwO-packages li {
list-style-type: none;
display: inline-block;
line-height: 30px;
font-size: 14px;
padding: 0 10px;
cursor: pointer;
margin-right: 3px
}
.OwO .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
border-radius: 0 0 0 3px
}
.OwO .OwO-body .OwO-bar .OwO-packages li:hover {
background: var(--border-color-light);
}
.OwO .OwO-body .OwO-bar .OwO-packages .OwO-package-active {
background: var(--background-color-base);
-webkit-transition: .3s;
transition: .3s;
}
/* 表情 */
img[src^="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/smilies"],
img[src^="https://images.cnblogs.com/cnblogs_com/gshang/1626876/"],
img[src^="https://images.cnblogs.com/cnblogs_com/gshang/1663431/"] {
width: 22px;
height: 22px;
margin-bottom: -4px;
}
}
/**** owo结束****/
/********* 悬浮按钮 ********/
@media screen and (min-width:0px) {
.float-btn {
position: fixed;
bottom: 20px;
right: 10px;
z-index: 97;
transition: 0.3s transform;
}
.float-btn-hide {
transform: translateX(200%);
transition: 0.3s transform;
}
.float-btn ul {
display: flex;
flex-direction: column;
/* grid-template-columns: 100%; */
/* grid-gap: 10px; */
padding: 0;
margin: 0;
}
.float-btn li {
background: var(--color-white);
color: var(--color-text-regular);
font-family: FontAwesome;
list-style-type: none;
width: 40px;
height: 40px;
display: flex;
line-height: 40px;
text-align: center;
align-items: center;
justify-content: center;
border-radius: 100px;
box-shadow: var(--light-shadow);
position: relative;
overflow: visible;
margin-bottom: 10px;
}
.float-btn li a {
display: block;
width: 40px;
height: 40px;
}
@media screen and (min-width:1200px) {
.float-btn li:before {
content: "";
position: absolute;
right: calc(100% + 10px);
display: block;
white-space: nowrap;
background: #222527;
border-radius: 4px;
height: 36px;
display: none;
color: white;
font-size: var(--text-h6);
align-items: center;
padding: 0 14px;
transformX: 0%;
transition: all 300ms;
}
.float-btn li:after {
content: "";
position: absolute;
right: calc(100% + 5px);
width: 10px;
height: 10px;
z-index: -1;
color: white;
background: #222527;
transform: rotate(45deg);
display: none;
transformX: 0%;
transition: all 300ms;
}
.float-btn li:hover:before,
.float-btn li:hover:after {
display: flex !important;
transition: all 300ms;
transformX: 100%;
}
.btn-top:before {
content: "返回顶部" !important;
}
.btn-content:before {
content: "切换到目录" !important;
}
.btn-content.btn-content-open:before {
content: "切换到默认" !important;
}
.btn-comment:before {
content: "发表评论" !important;
}
.btn-main:before {
content: "打开侧边" !important;
}
.btn-share:before {
content: "当前网址二维码" !important;
}
.btn-theme:before {
content: "夜间模式" !important;
}
html[theme='dark'] .btn-theme:before {
content: "日间模式" !important;
}
.btn-comment:before {
content: "发表评论" !important;
}
.main-widthout-sidebar .btn-main:before {
content: "隐藏侧边" !important;
}
}
.btn-top a:before {
content: "\f0d8"
}
.btn-content {
display: none;
}
.btn-content a:before {
content: "\f0ec";
}
.btn-content.btn-content-open a:before {
content: "\f0ec";
}
.btn-sidebar a:before {
content: "\f0c9"
}
.btn-sidebar.btn-sidebar-open a:before {
content: "\f00d" !important;
}
.btn-comment a:before {
content: "\f075";
}
.btn-main a:before {
content: "\f03c"
}
.main-widthout-sidebar .btn-main a:before {
content: "\f03b"!important;
}
.btn-commet a:before {
content: "\f27a"
}
@media screen and (max-width:1200px) {
.btn-main {
/* display: none !important; */
}
}
@media screen and (min-width:1200px) {
.btn-sidebar {
display: none !important;
}
.btn-main.btn-main-open a:before {
content: "\f0c9" !important;
}
.main-hide {
grid-template-columns: 100% !important;
transition: width 300ms;
}
.main-hide #sideBar {
display: none;
}
}
}
/******** 导航目录 *********/
@media screen and (min-width: 0px) {
.scroller-offset1 {
content: "";
padding-left: 0px;
}
.scroller-offset2 {
content: "";
padding-left: 20px!important;
}
.scroller-offset3 {
content: "";
padding-left: 30px!important;
}
.scroller-offset4 {
content: "";
padding-left: 40px!important;
}
.scroller-offset5 {
content: "";
padding-left: 50px!important;
}
.scroller-offset6 {
content: "";
padding-left: 60px!important;
}
.nav {
/* height: calc(100vh - 90px); */
overflow-y: auto;
padding: 10px;
white-space: nowrap;
}
.nav li.active:before {
background: var(--color-primary) !important;
}
.nav .active a {
/* background-color: #dfedf8; */
font-weight: 600;
border-radius: 6px;
color: var(--color-primary);
/* animation:blink 1s infinite; */
}
@keyframes blink {
0% {
border: 2px solid var(--color-primary);
/* box-shadow:0px 2px 10px #F44336; */
}
50% {
border: 2px solid transparent;
}
100% {
border: 2px solid var(--color-primary);
}
}
.nav .active a:hover {
/* background-color: var(--color-primary); */
border-radius: 4px;
/* color: #fff; */
/* border:1px solid var(--color-primary); */
}
.nav a:hover {
color: var(--color-primary);
background: var(--color-info-2);
border-radius: 4px;
/* border:2px solid var(--color-primary); */
transition: all .5s
}
@media screen and (min-width:1200px) {
.nav {
/* height: calc(100vh - 50px); */
}
}
.nav li {
padding: 0px;
display: flex;
/* border-left: 1px solid var(--border-color-extra-linght); */
justify-content: center;
align-items: center;
/* line-height: 2.4; */
overflow: hidden;
}
/* .nav li:before {
content: "";
width: 8px;
height: 8px;
display: block;
border: 2px solid var(--background-color-base);
z-index: 2;
margin: 4px 4px 4px -6px;
border-radius: 8px;
background: var(--border-color-extra-linght);
} */
.nav {
color: var(--color-info-0);
position: relative;
padding: 14px 14px 14px 20px !important;
}
/* .nav:before,
.nav:after {
content: "";
left: 36px;
width: 6px;
height: 6px;
display: block;
margin: 4px 4px 4px -4px;
border-radius: 8px;
background: var(--background-color-base);
border: 2px solid var(--color-primary);
} */
.nav li a {
text-overflow: ellipsis !important;
display: block !important;
flex: 1;
overflow: hidden;
width: 100%!important;
height: 100% !important;
white-space: nowrap;
margin: 1px 0px;
padding: 0 10px !important;
border: 2px solid transparent;
}
}
/****** 信息提示 *******/
@media screen and (min-width: 0px) {
.newscard {
border-radius: 4px;
margin: 0px 0px 10px;
padding: 0px 10px;
line-height: 40px;
height: 40px;
overflow: hidden;
background-color: #dfedf8;
color: #3162ae;
box-shadow: 0 0.05rem 1rem rgba(50, 50, 50, .04);
}
.newscard ul {
height: 40px;
margin: 0;
padding: 0;
}
.newstext {
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
height: 40px;
line-height: 40px;
text-overflow: ellipsis;
}
.newscard i {
float: left;
margin: 0 10px;
font-size: inherit;
line-height: 40px;
vertical-align: middle !important;
}
.infocard {
border-radius: 4px;
margin: 10px 0;
padding: 10px 16px;
text-align: justify;
word-break: break-all;
line-height: inherit !important;
display: inline-grid;
grid-template-columns: auto 1fr;
width: 100%;
align-items: center;
justify-content: center;
}
.infocard i {
/*float: left;*/
margin-right: 16px;
font-size: inherit;
line-height: inherit !important;
vertical-align: middle !important;
display: inline-block;
}
.infocard p {
padding: 0 !important;
margin: 0 !important;
text-align: left;
}
.tip {
background-color: #d5f1e5;
color: #20704d;
}
.warning {
background-color: #f9e8de;
color: #a84229;
}
.normal {
background-color: #dfedf8;
color: #3162ae;
}
}
/* 插入媒体 */
@media screen and (min-width: 0px) {
#cnblogs_post_body .video {
height: 0;
margin: 10px auto;
padding-bottom: 56.25%;
/* 16:9 */
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid var(--DividColor);
border-radius: 4px;
overflow: hidden;
}
#cnblogs_post_body .video iframe,
#cnblogs_post_body .video video {
position: absolute;
/*left: 0;*/
top: 0;
/*right:0;*/
width: 100%;
height: 100%;
z-index: 0;
}
#cnblogs_post_body .music {
height: 140px;
/*padding-bottom: 14.39%;*/
/* 16:9 */
position: relative;
width: 100%;
}
#cnblogs_post_body .music iframe {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.imgtext {
font-size: var(--text7);
text-align: center;
color: var(--color-text-regular);
}
}
#MySignature {
font-size: var(--text-h5);
color: var(--color-text-secondary);
margin: 40px 0 0;
/* padding: 14px; */
}
#MySignature i{
color:red;
margin-right:4px;
}
#the-end {
text-align: center;
display: flex;
margin: 14px auto;
align-items: center;
justify-content: center;
}
#the-end:before {
content: "";
width: 60px;
height: 1px;
display: inline-block;
opacity: 0.8;
border-bottom: 1px solid var(--border-color-base);
margin-right: 6px;
}
#the-end:after {
content: "";
width: 60px;
opacity: 0.8;
height: 1px;
display: inline-block;
border-bottom: 1px solid var(--border-color-base);
margin-left: 6px;
}
pre {
display: flex;
/* grid-template-columns: auto 1fr; */
}
.cnblogs_code pre {
display: inherit;
}
pre code {
flex-grow: 1;
}
ul.pre-numbering {
/* min-width: 20px !important; */
width: fit-content !important;
padding: 16px 10px!important;
border-right: 0px solid #abb2bf;
background-color: #1f1f1f !important;
color: #a7a7a7;
text-align: right;
margin-bottom: 0px !important;
font-size: var(--text-h6) !important;
line-height: 1.5 !important;
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
order: -1;
}
ul.pre-numbering li {
list-style-type: none !important;
padding: 0;
margin: 0 !important;
white-space: nowrap;
}
ul.pre-numbering li:before {
content: attr(data-number);
}
.sidebar-fixed #sidebar_scroller {
margin: 0
}
.theme {
width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
font-size: var(--text-h4);
}
html[theme="dark"] #theme:before,
html[theme="dark"] .btn-theme a:before {
content: "\f185" !important;
}
@media screen and (max-width:767px) {
.main-widthout-sidebar #mainContent {
height: 100% !important;
overflow: hidden !important;
}
.main-widthout-sidebar .mask {
z-index: 98;
background: rgba(0, 0, 0, .5);
position: fixed;
height: 100vh;
width: 100vw;
top: 0;
left: 0;
display: block;
}
}
.mask {
display: none;
}
.MathJax {
outline: none;
}
@media screen and (min-width:1200px) {
#navList li {
position: relative;
}
#navList li a {
width: 50px;
}
#navList li:before {
content: "";
position: absolute;
top: calc(100% + 10px);
left: 0;
right: 0;
display: none;
white-space: nowrap;
background: #222527;
border-radius: 4px;
width: fit-content;
margin: 0 auto;
color: white;
font-size: var(--text-h6);
align-items: center;
padding: 4px 6px;
transition: all 300ms;
}
#navList li:after {
content: "";
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
margin: 0 auto;
width: 10px;
height: 10px;
z-index: -1;
color: white;
background: #222527;
transform: rotate(45deg);
display: none;
transformX: 0%;
transition: all 300ms;
}
#navList li:hover:before,
#navList li:hover:after {
display: block !important;
transition: all 300ms;
transformX: 100%;
}
#navList li:nth-child(1):before {
content: "博客园" !important;
}
#navList li:nth-child(2):before {
content: "首页" !important;
}
#navList li:nth-child(3):before {
content: "新随笔" !important;
}
#navList li:nth-child(4):before {
content: "联系" !important;
}
#navList li:nth-child(5):before {
content: "订阅" !important;
}
#navList li:nth-child(6):before {
content: "管理" !important;
}
}
.tablebox {
margin: 20px 0;
}
.post-header {
background-repeat: no-repeat!important;
background-size: cover!important;
background-position: center!important;
min-height: 300px;
/* max-height: 300px; */
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/*padding:20px;*/
/* text-shadow: 2px 2px 10px #0000008a; */
text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.post-header .postTitle,
.post-header .postDesc {
/* z-index: 0; */
color: #fff!important;
}
.post-header .postDesc {
z-index:0;
}
.post-header * {
/* color: #fff!important; */
}
.post-header:before {
content: "";
background: rgba(0, 0, 0, .5);
/* backdrop-filter: blur(4px); */
display: block;
width: 100%;
height: 100%;
position: absolute;
/* z-index: 0; */
}
.post-header .entrylistDescription {
border: none
}
.entrylistTitle:nth-child(2) {
display: none;
}
.entrylistDescription .desc_img {
display: none!important;
}
.post-navbar {
display: table-cell;
width: 100%;
line-height: 70px;
transition: transform 300ms;
}
#blogTitle,
#navigator {
transition: transform 300ms;
}
.post-navbar-show #blogTitle,
.post-navbar-show #navigator,
.post-navbar-show .post-navbar {
transform: translatey(-70px)!important;
transition: transform 300ms;
}
.post-title {
font-size: 24px;
font-weight: 500;
max-width: 800px;
margin: 0 auto;
z-index: 1;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
padding: 0 20px;
text-align: center;
}
.day .postTitle2 span {
display: inline-block;
/* align-items: center; */
/* flex-wrap: wrap; */
vertical-align: text-bottom;
/* margin-right: 4px; */
}
.day .postTitle2 span span {
font-size: 0;
}
.day .postTitle2 img {
margin-left: 10px;
}
.day .postTitle2 span span:after {
content: "置顶";
display: inline-block;
/* margin-right: 0px; */
text-align: center;
padding: 0.1rem;
font-size: 12px!important;
color: #fff;
background: #ff81aa;
/* border: 1px solid #ff81aa; */
border-radius: 3px;
min-width: 30px;
line-height: var(--text-h4);
}
div#blog-comments-placeholder {
display: flex;
flex-direction: column;
}
div#comment_form {
display: flex;
flex-direction: column;
/* order: -1; */
}
div#post_detail {
order: -2;
}
/*******/
@media screen and (min-width:0) {
.bq_post_comment {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji !important;
font-size: 16px !important;
line-height: 1.8 !important;
/* word-wrap: break-word !important; */
}
.bq_post_comment kbd {
display: inline-block !important;
padding: 3px 5px !important;
font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace !important;
line-height: 10px !important;
color: #444d56 !important;
vertical-align: middle !important;
background-color: #fafbfc !important;
border: 1px solid #d1d5da !important;
border-radius: 3px !important;
box-shadow: inset 0 -1px 0 #d1d5da !important;
}
.bq_post_comment:after,
.bq_post_comment:before {
display: table !important;
content: "" !important;
}
.bq_post_comment:after {
clear: both !important;
}
.bq_post_comment>:first-child {
margin-top: 0 !important
}
.bq_post_comment>:last-child {
margin-bottom: 0 !important
}
.bq_post_comment a:not([href]) {
color: inherit !important;
text-decoration: none !important;
}
.bq_post_comment .absent {
color: #cb2431 !important;
}
.bq_post_comment .anchor {
float: left !important;
padding-right: 4px !important;
margin-left: -20px !important;
line-height: 1 !important;
}
.bq_post_comment .anchor:focus {
outline: none !important;
}
.bq_post_comment blockquote,
.bq_post_comment details,
.bq_post_comment dl,
.bq_post_comment ol,
.bq_post_comment p,
.bq_post_comment pre,
.bq_post_comment ul {
margin-top: 0 !important;
margin-bottom: 16px !important;
}
.bq_post_comment hr {
height: .25em !important;
padding: 0 !important;
margin: 24px 0 !important;
background-color: #e1e4e8 !important;
border: 0 !important;
}
.bq_post_comment blockquote {
padding: 0 1em !important;
color: #6a737d !important;
margin: 0;
border: none;
border-left: .25em solid #dfe2e5 !important;
}
.bq_post_comment blockquote>:first-child {
margin-top: 0 !important;
}
.bq_post_comment blockquote>:last-child {
margin-bottom: 0 !important;
}
.bq_post_comment h1,
.bq_post_comment h2,
.bq_post_comment h3,
.bq_post_comment h4,
.bq_post_comment h5,
.bq_post_comment h6 {
margin-top: 24px !important;
margin-bottom: 16px !important;
font-weight: 500 !important;
line-height: 1.8 !important;
}
.bq_post_comment h1 .octicon-link,
.bq_post_comment h2 .octicon-link,
.bq_post_comment h3 .octicon-link,
.bq_post_comment h4 .octicon-link,
.bq_post_comment h5 .octicon-link,
.bq_post_comment h6 .octicon-link {
color: #1b1f23 !important;
vertical-align: middle !important;
visibility: hidden !important;
}
.bq_post_comment h1:hover .anchor,
.bq_post_comment h2:hover .anchor,
.bq_post_comment h3:hover .anchor,
.bq_post_comment h4:hover .anchor,
.bq_post_comment h5:hover .anchor,
.bq_post_comment h6:hover .anchor {
text-decoration: none !important;
}
.bq_post_comment h1:hover .anchor .octicon-link,
.bq_post_comment h2:hover .anchor .octicon-link,
.bq_post_comment h3:hover .anchor .octicon-link,
.bq_post_comment h4:hover .anchor .octicon-link,
.bq_post_comment h5:hover .anchor .octicon-link,
.bq_post_comment h6:hover .anchor .octicon-link {
visibility: visible !important;
}
.bq_post_comment h1 code,
.bq_post_comment h1 tt,
.bq_post_comment h2 code,
.bq_post_comment h2 tt,
.bq_post_comment h3 code,
.bq_post_comment h3 tt,
.bq_post_comment h4 code,
.bq_post_comment h4 tt,
.bq_post_comment h5 code,
.bq_post_comment h5 tt,
.bq_post_comment h6 code,
.bq_post_comment h6 tt {
font-size: inherit !important;
}
.bq_post_comment h1 {
font-size: 2em !important;
}
.bq_post_comment h1,
.bq_post_comment h2 {
padding-bottom: .3em !important;
border-bottom: 1px solid var(--border-color-extra-linght) !important;
}
.bq_post_comment h2 {
font-size: 1.5em !important;
}
.bq_post_comment h3 {
font-size: 1.25em !important;
}
.bq_post_comment h4 {
font-size: 1em !important;
}
.bq_post_comment h5 {
font-size: .875em !important;
}
.bq_post_comment h6 {
font-size: .85em !important;
color: #6a737d !important;
}
.bq_post_comment ol,
.bq_post_comment ul {
padding-left: 2em !important;
}
.bq_post_comment ol.no-list,
.bq_post_comment ul.no-list {
padding: 0 !important;
list-style-type: none !important;
}
.bq_post_comment ol ol,
.bq_post_comment ol ul,
.bq_post_comment ul ol,
.bq_post_comment ul ul {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.bq_post_comment li {
word-wrap: break-all !important;
}
.bq_post_comment li>p {
margin-top: 16px !important;
}
.bq_post_comment li+li {
margin-top: .25em !important;
}
.bq_post_comment dl {
padding: 0 !important;
}
.bq_post_comment dl dt {
padding: 0 !important;
margin-top: 16px !important;
font-size: 1em !important;
font-style: italic !important;
font-weight: 600 !important;
}
.bq_post_comment dl dd {
padding: 0 16px !important;
margin-bottom: 16px !important;
}
.bq_post_comment .table-wrapper table {
display: table !important;
width: 100% !important;
overflow-x: auto !important;
border-collapse: collapse;
}
.bq_post_comment .table-wrapper table th {
font-weight: 600 !important;
}
.bq_post_comment .table-wrapper table td,
.bq_post_comment .table-wrapper table th {
padding: 6px 13px !important;
border: 1px solid #dfe2e5 !important;
background: transparent !important;
/* border-spacing: 0!important; */
}
.bq_post_comment .table-wrapper table tr {
background-color: var(--color-white);
border-top: 1px solid #c6cbd1 !important;
}
.bq_post_comment .table-wrapper table tr:nth-child(2n) {
background-color: var(--background-color-base) !important;
}
.bq_post_comment .table-wrapper table img {
background-color: initial !important;
}
.bq_post_comment img {
max-width: 100% !important;
box-sizing: initial !important;
background-color: var(--color-white) !important;
}
.bq_post_comment img[align=right] {
padding-left: 20px !important;
}
.bq_post_comment img[align=left] {
padding-right: 20px !important;
}
.bq_post_comment .emoji {
max-width: none !important;
vertical-align: text-top !important;
background-color: initial !important;
}
.bq_post_comment span.frame {
display: block !important;
overflow: hidden !important;
}
.bq_post_comment span.frame>span {
display: block !important;
float: left !important;
width: auto !important;
padding: 7px !important;
margin: 13px 0 0 !important;
overflow: hidden !important;
border: 1px solid #dfe2e5 !important;
}
.bq_post_comment span.frame span img {
display: block !important;
float: left !important;
}
.bq_post_comment span.frame span span {
display: block !important;
padding: 5px 0 0 !important;
clear: both !important;
color: #24292e !important;
}
.bq_post_comment span.align-center {
display: block !important;
overflow: hidden !important;
clear: both !important;
}
.bq_post_comment span.align-center>span {
display: block !important;
margin: 13px auto 0 !important;
overflow: hidden !important;
text-align: center !important;
}
.bq_post_comment span.align-center span img {
margin: 0 auto !important;
text-align: center !important;
}
.bq_post_comment span.align-right {
display: block !important;
overflow: hidden !important;
clear: both !important;
}
.bq_post_comment span.align-right>span {
display: block !important;
margin: 13px 0 0 !important;
overflow: hidden !important;
text-align: right !important;
}
.bq_post_comment span.align-right span img {
margin: 0 !important;
text-align: right !important;
}
.bq_post_comment span.float-left {
display: block !important;
float: left !important;
margin-right: 13px !important;
overflow: hidden !important;
}
.bq_post_comment span.float-left span {
margin: 13px 0 0 !important;
}
.bq_post_comment span.float-right {
display: block !important;
float: right !important;
margin-left: 13px !important;
overflow: hidden !important;
}
.bq_post_comment span.float-right>span {
display: block !important;
margin: 13px auto 0 !important;
overflow: hidden !important;
text-align: right !important;
}
.bq_post_comment code {
/* padding: 16px !important; */
margin: 0 4px !important;
/* font-size: 85% !important; */
display: inline;
border: none !important;
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
background-color: rgba(27, 31, 35, .05) !important;
border-radius: 3px !important;
}
.bq_post_comment code br,
.bq_post_comment tt br {
display: none !important;
}
.bq_post_comment del code {
text-decoration: inherit !important;
}
/* .bq_post_comment pre>code {
padding: 0 !important;
margin: 0 !important;
font-size: 100% !important;
/*word-break: normal !important;
white-space: pre !important;*/
background: transparent !important;
border: 0 !important;
}
*/ .bq_post_comment .highlight {
margin-bottom: 16px !important;
}
.bq_post_comment .highlight pre {
margin-bottom: 0 !important;
/*word-break: normal !important;*/
}
.bq_post_comment .highlight pre,
.bq_post_comment pre {
/* padding: 16px !important; */
overflow-x: auto !important;
font-size: 85% !important;
width: 100%;
line-height: 1.45 !important;
background-color: #282c34 !important;
border-radius: 3px !important;
}
/*
.bq_post_comment pre code,
.bq_post_comment pre tt {
/*display: inline !important;*/
/*max-width: auto !important;*/
padding: 20px 10px !important;
/* padding: 16px !important; */
/* line-height: inherit !important; */
white-space: pre !important;
word-break: keep-all;
/* text-overflow: clip; */
background-color: initial !important;
border: 0 !important;
color: #dcdcdc;
}
*/ .bq_post_comment .csv-data td,
.bq_post_comment .csv-data th {
padding: 5px !important;
overflow: hidden !important;
font-size: 12px !important;
line-height: 1 !important;
text-align: left !important;
white-space: nowrap !important;
}
.bq_post_comment .csv-data .blob-num {
padding: 10px 8px 9px !important;
text-align: right !important;
background: #fff !important;
border: 0 !important;
}
.bq_post_comment .csv-data tr {
border-top: 0 !important;
}
.bq_post_comment .csv-data th {
font-weight: 600 !important;
background: #f6f8fa !important;
border-top: 0 !important;
}
}
.feedbackItem table {
border-collapse: collapse;
}
.day .postTitle2.vertical-middle {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
}
#profile_block {
display: none!important;
}
/***********/
#my-profile {
padding: 20px;
position: relative;
display: flex;
flex-direction: column;
/* align-items: center; */
gap: 0px;
}
.my-logo {
width: 100%;
height: 100%;
}
.my-name {
/* FONT-WEIGHT: 500; */
font-weight: 500;
font-size: 20px;
line-height: 1.5;
}
.my-name-container {
display: flex;
/* align-items: center; */
flex-direction: column;
flex: 1;
gap: 10px;
}
#age {
background: var(--color-danger-2);
color: var(--color-danger-0);
border: 1px solid var(--color-danger-0);
font-size: 10px;
padding: 2px 8px;
/* line-height: 20px; */
width: fit-content;
white-space: nowrap;
margin-left: 10px;
border-radius: 20px;
}
.my-desc {
font-size: small;
/* margin-top: 10px; */
/* padding: 0 10px; */
color: var(--color-text-regular);
}
.my-detaial ul {
display: flex;
grid-template-columns: 1fr 1fr 1fr;
width: 100%;
grid-gap: 10px;
padding: 0;
margin: 4px auto;
justify-content: space-around;
}
.my-detaial ul li {
list-style-type: none;
/* margin-right: 20px; */
/* max-width: calc(50% - 25px); */
display: flex;
align-items: baseline;
}
.my-detaial ul li:last-child {
margin-right: 0;
/* float: right; */
}
.my-detaial a {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 1.1em;
}
.my-detaial ul li:after {
font-size: 10px;
white-space: nowrap;
}
#fans:after {
content: '粉丝';
margin-left: 4px;
color: var(--color-info);
}
#follow:after {
content: '关注';
margin-left: 4px;
color: var(--color-info);
}
.my-stats ul li {
list-style-type: none;
/* margin-right: 10px; */
/* background: var(--background-color-base); */
font-size: small;
padding: 0 12px;
width: 100%;
max-width: 100%;
border-radius: 20px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.my-stats ul li:last-child {
margin-right: 0;
}
.my-stats ul li:before {
font-family: fontawesome;
}
#post:before {
content: "随笔:";
margin-right: 4px;
}
#article:before {
content: "文章:";
margin-right: 4px;
}
#comment:before {
content: "评论:";
margin-right: 4px;
}
#follow-btn {
/* position:absolute; */
/* width: 180px; */
font-size: small;
top: 30px;
right: 20px;
}
.entrylist{
/* display:none; */
/* padding-top: 20px; */
}
.recent_comment_body,
.recent_comment_author {
font-size: var(--text-h6);
}
.recent_comment_body p:first-child ,
.recent_comment_body p:last-child
{
margin:0;
}
.recent_comment_author:last-child {
border: none;
}
.commentbox_footer {
border-top: 1px solid var(--border-color-extra-linght);
}
.login_tips {
background-color: #f9e8de;
color: #a84229;
border-radius: 6px;
padding: 16px 20px;
;
}
.login_tips {
margin: 0 20px;
}
#blog-news {
overflow: unset;
}
.my-stats {
position: relative;
/* line-height: 40px; */
display: flex;
align-items: baseline;
}
.btn-more:before {
/* font-size: 10px; */
/* line-height: 30px; */
cursor: pointer;
content: "\e7a8";
/* color: var(--color-); */
font-family: 'element-icons';
}
ul.dropwon-content {
display: none;
}
.my-stats:hover .dropwon-content {
display: flex;
flex-direction: column;
position: absolute;
line-height: 16px;
top: 70%;
right: 0!important;
width: 120px;
z-index: 10;
background: var(--color-white);
box-shadow: var(--light-shadow);
padding: 12px 0 12px;
border-radius: 4px;
animation: fadeInUp 0.3s;
}
#view:before {
content: "总阅读:";
}
li.recent_comment_title{
line-height:1.5;
}
li.recent_comment_body {
margin-top: 10px;
/* margin-left: 16px; */
/* margin-right: 16px; */
background: var(--color-info-2);
padding: 4px 10px;
border-radius: 4px;
position: relative;
line-height: 1.6;
}
li.recent_comment_body:after {
content: "";
display: block!important;
width: 10px;
height: 10px;
background: var(--color-info-2);
position: absolute;
bottom: -5px;
right: 10px;
transform: rotate(45deg);
}
#GalleryThumbNailViewer1_ThumbNails td {
width: 25%;
}
#comment_pager_bottom {
/* border-bottom: 1px solid var(--border-color-extra-linght); */
}
.comment_avatar_container {
width: 48px;
height: 48px;
overflow: hidden;
border-radius: 50px;
display: block;
position: absolute;
}
.comment_avatar_container img {
transform: scale(1);
transition: transform 300ms;
}
.comment_avatar_container:hover img {
transform: scale(1.5) translateY(6px);
transition: transform 300ms;
}
.my-logo-container {
width: 180px;
height: 180px;
overflow: hidden;
border-radius: 10px;
display: block;
border: 4px solid rgba(0,0,0,.08);
/* margin: 50px 0 0; */
}
#user-avatar{
position:relative;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 30px 0;
}
#user-avatar:after{
/* content:"\f222"; */
font-family:fontawesome;
display:block;
z-index:2;
position:absolute;
bottom:0;
right:15%;
background:dodgerblue;
width:30px;
height:30px;
text-align:center;
border-radius:50px;
color:#fff;
border:2px solid #fff;
font-weight:bold;
}
.my-logo-container img {
transform: scale(1);
transition: transform 300ms;
}
.my-logo-container:hover img {
transform: scale(1.5) translateY(12%);
transition: transform 300ms;
}
@media screen and (max-width:767px) {
.day .postDesc,
.PostList .postDesc2,
.entrylistItemPostDesc {
font-size: 0!important;
}
.day .postDesc a[rel="nofollow"],
.postDesc2 a[target="_blank"],
.entrylistItemPostDesc a[rel="nofollow"],
.entrylistItemPostDesc a[title='permalink'] {
display: none!important;
}
}
a[href="https://github.com/GShang2018"]:before {
content: "\f113"!important;
}
a[href="https://web.51.la/report/visit_details?comId=21054727"]:before {
/* content: "\f201"!important; */
}
.comment_option {
color: var(--color-text-secondary);
fill: var(--color-text-secondary);
}
.comment_option:hover {
color: var(--color-text-primary);
fill: var(--color-text-primary);
}
/****loading***********/
@-webkit-keyframes ball-scale-multiple {
0% {
-webkit-transform: scale(0);
transform: scale(0);
opacity: 0;
}
5% {
opacity: 1;
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0;
}
}
@keyframes ball-scale-multiple {
0% {
-webkit-transform: scale(0);
transform: scale(0);
opacity: 0;
}
5% {
opacity: 1;
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 0;
}
}
.ball-scale-multiple {
transform: scale(6);
position: relative;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
.ball-scale-multiple>div:nth-child(2) {
-webkit-animation-delay: -0.4s;
animation-delay: -0.4s;
}
.ball-scale-multiple>div:nth-child(3) {
-webkit-animation-delay: -0.2s;
animation-delay: -0.2s;
}
.ball-scale-multiple>div {
background-color: var(--ThemeColor);
width: 15px;
height: 15px;
border-radius: 100%;
margin: 2px;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
position: absolute;
left: -90px;
top: -70px;
opacity: 0;
margin: 0;
width: 180px;
height: 180px;
-webkit-animation: ball-scale-multiple 1s 0s linear infinite;
animation: ball-scale-multiple 1s 0s linear infinite;
}
#loading {
opacity: 1;
width: 100vw;
height: 100vh;
position: fixed;
z-index: 999999999999999;
display: flex;
align-items: center;
justify-content: center;
background: var(--blur-bg);
backdrop-filter: blur(50px);
}
#loading-container {
display: none;
}
.fa-smile-o:before {
content: "\f118";
font-weight: normal;
}
#blogCalendar tr:nth-child(n+3) td:hover {
background: var(--color-info-2);
border-radius: 4px;
cursor: pointer;
}
.CalTodayDay {
background: var(--color-primary)!important;
border-radius: 4px;
color: #fff;
}
#digg_tips {
/* display: none; */
align-items: center;
justify-content: center;
position: absolute;
font-family: inherit;
top: 31px;
/* left: 100%; */
/* right: 0; */
margin: 0 0 0 1px;
/* background: #ff000052; */
/* width: 40px; */
border-radius: 80px;
/* height: 40px; */
/* animation-name:fadeInUp; */
/* animation-duration:0.4s; */
/* z-index: -1; */
}
@keyframes fade-in {
0% {
opacity: 0;
}
/*初始状态 透明度为0*/
40% {
opacity: 0;
}
/*过渡状态 透明度为0*/
100% {
opacity: 1;
}
/*结束状态 透明度为1*/
}
@-webkit-keyframes fade-in {
/*针对webkit内核*/
0% {
opacity: 0;
}
40% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes fadeInUp {
from {
opacity: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeOutUp {
from {
opacity: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInDown {
from {
opacity: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInLeft {
from {
opacity: 0;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeInRight {
from {
opacity: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
to {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeOutLeft {
from {
opacity: 1;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
to {
opacity: 0;
-webkit-transform: none;
transform: none;
}
}
@keyframes fadeOutRight {
from {
opacity: 1;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
to {
opacity: 0;
-webkit-transform: none;
transform: none;
}
}
#sidebar_scroller {
animation-name: fadeInLeft;
animation-duration: 0.5s;
}
#sideBarMain {
animation-name: fadeInRight;
animation-duration: 0.5s;
}
#blog-comments-placeholder,
.OwO-body {
animation-name: fadeIn;
animation-duration: 0.3s;
}
/* .day,
.PostList,
.entrylistItem,
.entrylistTitle,
.entrylistDescription,
.postSeparator,
.topicListFooter {
animation-name: fadeInUp;
animation-duration: 1s;
} */
/*> *:not(div[id^="tippy"])*/
.forFlow {
animation-name: fadeInUp;
animation-duration: 1s;
}
img.medium-zoom-image.medium-zoom-image--opened {
z-index: 99999999999;
}
.medium-zoom-overlay {
z-index: 999;
}
@media only screen and (max-width: 767px) {
.cnblogs-post-body img,
.feedbackItem .blog_comment_body img {
/* max-width: unset; */
max-width: 100%!important;
}
}
.title-parent .title-link:before {
content: "¶";
font-size: 0.9em;
margin-left: 6px;
line-height: inherit;
display: none;
}
.title-parent:hover .title-link:before {
display: inline-block;
}
/******************/
.link-block a {
display: flex;
width: 100%;
background: var(--background-color-base);
padding: 10px 20px;
box-sizing: border-box;
margin: 10px 0;
border-radius: 4px;
align-items: center;
justify-content: center;
/* color: #333 !important; */
text-decoration: none;
}
.link-url:before {
content: "\f0c1";
font-family: FontAwesome;
margin-right: 6px;
}
.link-url,
.link-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.link-url {
color: var(--TextColor2);
}
.link-text {
flex: 1;
max-width: calc(100% - 40px);
}
.link-text span {
line-height: 2;
font-size: 20px;
color: var(--TextColor1);
}
.link-pic {
/* width: 40px; */
/* height: 40px; */
/* color: #fff; */
margin-left: 10px;
}
.link-pic i {
/* color: #333; */
width: 100%;
height: 100%;
}
hr.footnotes-sep {
display: none;
}
/***************/
.mermaid {
text-align: center;
margin: 10px 0;
}
.toc-container-header {
display: none;
}
/*
#mainContent:after {
content: "Copyright © 2022 GShang \A Powered by .NET 6 on Kubernetes";
display: block;
white-space: pre;
font-size: var(--text-h6);
text-align: center;
padding: 40px 10px;
font-size: 16px;
color: var(--color-text-secondary);
position: relative;
bottom: 0;
font-family: Arial,
"Helvetica Neue",
Helvetica,
sans-serif;
animation-name: fadeInUp;
animation-duration: 1s;
}
*/
pre[class*="language-"] code{
/* padding: 16px 16px 16px 10px!important; */
/* overflow-x: auto; */
}
.table-wrapper {
margin-bottom: 16px;
}
.hljs table {
margin-left: -16px;
}
#cnblogs_post_body table {
display: table!important;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
/*初始状态 透明度为0*/
40% {
opacity: 0;
}
/*过渡状态 透明度为0*/
100% {
opacity: 1;
}
/*结束状态 透明度为1*/
}
@-webkit-keyframes fadeIn {
/*针对webkit内核*/
0% {
opacity: 0;
}
40% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#blog_nav_contact {
position:relative;
}
#blog_nav_contact.has_msg:after {
content:"";
display:block;
width:6px;
height:6px;
background:red;
border-radius:10px;
border:2px solid var(--color-white);
font-size:16px;
z-index:9999;
position:absolute;
top:10%;
right:20%;
}
/**** hljs ****/
/*
@media screen and (min-width:0px) {
.hljs-keyword,
.hljs-literal,
.hljs-symbol,
.hljs-name {
color: #569CD6 !important;
}
.hljs-link {
color: #569CD6 !important;
text-decoration: underline !important;
}
.hljs-built_in,
.hljs-type {
color: #4EC9B0 !important;
}
.hljs-number,
.hljs-class {
color: #B8D7A3 !important;
}
.hljs-string,
.hljs-meta-string {
color: #D69D85 !important;
}
.hljs-regexp,
.hljs-template-tag {
color: #9A5334 !important;
}
.hljs-subst,
.hljs-function,
.hljs-title,
.hljs-params,
.hljs-formula {
color: #DCDCDC !important;
}
.hljs-comment,
.hljs-quote {
color: #57A64A !important;
font-style: normal!important;
}
.hljs-doctag {
color: #608B4E !important;
}
.hljs-meta,
.hljs-meta-keyword,
.hljs-tag {
color: #9B9B9B !important;
}
.hljs-variable,
.hljs-template-variable {
color: #BD63C5 !important;
}
.hljs-attr,
.hljs-attribute,
.hljs-builtin-name {
color: #9CDCFE !important;
}
.hljs-section {
color: gold !important;
}
.hljs-emphasis {
font-style: italic !important;
}
.hljs-strong {
font-weight: bold !important;
}
.hljs-bullet,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #D7BA7D !important;
}
.hljs-addition {
color: inherit !important;
background-color: #144212 !important;
display: inline-block !important;
width: 100% !important;
}
.hljs-deletion {
background-color: #600 !important;
display: inline-block !important;
width: 100% !important;
}
}*/
md-center{
display: block;
text-align: center;
font-weight: bold;
}
/* .avater-border {
background:url(https://images.cnblogs.com/cnblogs_com/gshang/1453531/o_220201012233_border.png);
background-size: contain;
background-repeat: no-repeat;
background-position: 2px 18px;
width: 180px;
height: 250px;
position: absolute;
z-index: 2;
margin: 0 auto;
} */
.tree-categories,
.footnote-item{
list-style-type:none;
margin:0;
padding:0;
}
.tippy-box,
.cnblogs-toc-pinned-navigator{
opacity:1;
background:white!important;
box-shadow: 0 0 30px #0000001a!important;
border-radius: 8px;
border: 1px solid #e3e5e7;
z-index:99999999;
}
.footnote-item p {
margin: 0;
}
/******************/
.link-block a {
display: flex;
width: 100%;
background: var(--background-color-base);
padding: 10px 20px;
box-sizing: border-box;
margin: 10px 0;
border-radius: 4px;
align-items: center;
justify-content: center;
/* color: #333 !important; */
text-decoration: none;
}
.link-url:before {
content: "\f0c1";
font-family: FontAwesome;
margin-right: 6px;
}
.link-url,
.link-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.link-url {
color: var(--TextColor2);
}
.link-text {
flex: 1;
max-width: calc(100% - 40px);
}
.link-text span {
line-height: 2;
font-size: 20px;
color: var(--TextColor1);
}
.link-pic {
/* width: 40px; */
/* height: 40px; */
/* color: #fff; */
margin-left: 10px;
}
.link-pic i {
/* color: #333; */
width: 100%;
height: 100%;
}
.cnblogs-toc-item:hover{
color:var(--color-primary);
}
.postTitle .cnblogs-toc-button {
display:inline-block!important;
}
/* 合集 */
.current-collection
{
background:white;
border:1px solid var(--border-color-base);
width:100%;
max-width:100%;
position:relative;
box-shadow: 0 -1px 8px 0 rgb(0 0 0 / 0.05);
/* box-shadow: 0 0 10px 0 rgb(232 232 237 / 40%); */
margin-bottom: 40px;
}
.current-collection-title
{
font-weight:500;
border-bottom:1px solid var(--border-color-base);
}
.current-collection-title:before
{
content: "\f02e";
font-family: fontawesome;
}
.clickable.title-link{
flex:1
}
.current-collection::before
{
content:"";
display:block;
position:absolute;
top:6px;
left:6px;
right:6px;
width: calc(100% - 12px);
height:100%;
background:white;
border:1px solid var(--border-color-base);
border-radius:4px;
/* box-shadow: 0 0 10px 0 rgb(232 232 237 / 40%); */
box-shadow: 0 -1px 8px 0 rgb(0 0 0 / 0.1));
z-index:-1;
}
.current-collection::after
{
content:"";
display:block;
position:absolute;
top:12px;
left:12px;
right:12px;
width: calc(100% - 24px);
height:100%;
background:white;
border:1px solid var(--border-color-base);
border-radius:4px;
box-shadow: 0 -1px 8px 0 rgb(0 0 0 / 0.1);
/* box-shadow: 0 0 10px 0 rgb(232 232 237 / 40%); */
z-index:-2;
}
.collapsed .current-collection-title
{
border:none;
}
.current-collection-link,.current{
border-bottom:1px dashed #efefef!important;
transition-timing-function:ease-in-out;
}
.current,
.current-collection-link:hover{
background:var(--color-success-2)!important;
transition:all .3s;
transition-timing-function:ease-in-out;
}
页首 HTML 代码
<div id="jsi-flying-fish-container" class="" ></div>
页脚 HTML 代码
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.13.2/index.js"></script>
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<script src="https://blog-static.cnblogs.com/files/hgy1044/fishb.js"></script>
<script src="https://myhkw.cn/api/player/164786043754" id="myhk" key="164786043754" m="1"></script>
<script>
// 参数初始化
var ele = new Vue({});
var windowTop = 0;
$(function() {
// 基础组件初始化
basicInit();
// 其他初始化
if ($("#topics").length > 0) {
magicMarkdown(); // 魔法注释
blogPostTitle(); // 博客正文标题背景图
//imgCaption();
ref();
$("#loading-container").fadeToggle("fast");
postBasicSetting(); // 博客基本样式初始化
setSideContent(); // 侧边目录
contentActiveListen(); // 侧边目录滚动激活
setCommet(); // 评论区
}
else {
// entryPostTitle(); 随笔分类背景图
// $("#loading-container").fadeToggle("fast");
}
$(document).ready(function () {
$("span.my-name").after('<img class="sidebar-vip-logo" src="https://common.cnblogs.com/vip.png" title="博客园第27位VIP会员">');
});
//setProfile(); // 公告信息
btnClick(); // 点击事件
//copyCodeTip(); // 代码复制提示
scrollListen(); // 滚动监听事件
myscroll(); // 平滑滚动控制
});
/* 初始化 */
basicInit = function() {
// 博客 favicon
$("#favicon").replaceWith(
'<link rel="shortcut icon" href="https://s1.ax1x.com/2022/10/31/xTEJMQ.png">'
);
// 页脚
//$('#mainContent').append($('#footer'));
//消息红点
msgDot();
$('#mainContent').prepend($('#header'));
// 初始化主题样式
// if ($.cookie("theme") == null) {
// $.cookie("theme", "light", {
// expires: 30,
// path: "/",
// domain: "cnblogs.com",
// });
// }
// if ($.cookie("theme") == "dark") {
// document.documentElement.setAttribute("theme", "dark");
// }
// 全屏黑幕
$("#main").append('<div class="mask"></div>');
// 侧边悬浮按钮
$("#home").append(
'<div class="float-btn"><ul>' +
'<li class="btn-top"><a href="#top"></a></li>' +
'<li class="btn-theme"><a href="javascript:changeTheme()"></a></li>' +
'<li class="btn-main"><a href="javascript:sidebarToggle()"></a></li>' +
"</ul></div>"
);
};
/* 魔法注释 */
magicMarkdown = function() {
// 添加 html 代码
$("code.language-html").each(function() {
if ($(this).text().split("\n")[0] == "<!-- run -->") {
$("#cnblogs_post_body").append($(this).text());
$(this).parent().remove();
}
});
// 添加 js 代码
$("code.language-html").each(function() {
if ($(this).text().split("\n")[0] == "<!-- script -->") {
$("head").append($(this).text());
$(this).parent().remove();
}
});
// 运行脚本
$("code.language-js").each(function() {
if ($(this).text().split("\n")[0] == "// run") {
window.eval($(this).text());
$(this).parent().remove();
}
});
};
// 参考文献
function ref() {
$(".footnote-ref a").each(function() {
$(this).attr("title", $($(this).attr("href")).text().replace(/↩︎/g, ''));
});
}
// 图注释文字
function imgCaption() {
$('.cnblogs-markdown p img').each(function() {
if (typeof $(this).attr("alt") != "undefined") {
if ($(this).attr("alt") != "") {
$(this)
.parent()
.after(
'<div class="img-caption">' + $(this).attr("alt") + "</div>"
);
}
}
})
}
/* 按钮点击事件 */
btnClick = function() {
// 侧边开关
$("#sidebar-toggler,.mask").click(function() {
sidebarToggle();
});
// 移动端目录点击隐藏
$(".nav a").click(function() {
var w = document.body.clientWidth;
if (w <= 1200) {
sidebarToggle();
}
});
};
/* 博客正文标题背景图 */
blogPostTitle = function() {
if ($("#cnblogs_post_description .desc_img").length > 0) {
$(".forFlow").before('<div class="post-header"></div>');
$(".post-header").append($(".postTitle"));
$(".post-header").append($(".postDesc"));
$(".post-header").css(
"background",
"url(" + $("#cnblogs_post_description .desc_img").attr("src") + ")"
);
}
};
/* 随笔分类背景图 */
entryPostTitle = function() {
if ($(".entrylistDescription .desc_img").length > 0) {
$("#mainContent").prepend('<div class="post-header"></div>');
$(".post-header").append($(".entrylistTitle"));
$(".post-header").append($(".entrylistDescription"));
$(".post-header").css(
"background",
"url(" + $(".entrylistDescription .desc_img").attr("src") + ")"
);
}
};
/* 切换主题 */
changeTheme = function() {
if ($.cookie("theme") == "light") {
$.cookie("theme", "dark", {
expires: 30,
path: "/",
domain: "cnblogs.com",
});
document.documentElement.setAttribute("theme", "dark");
} else {
$.cookie("theme", "light", {
expires: 30,
path: "/",
domain: "cnblogs.com",
});
document.documentElement.removeAttribute("theme", "dark");
}
};
/* 侧边开关 */
sidebarToggle = function() {
$("body").toggleClass("main-widthout-sidebar");
};
/* 侧边显示 */
showSide = function() {
$("#sideBar").removeClass("content-active");
$("#sideBar").addClass("side-active");
$("#sideBar").scrollTop(0);
};
/* 目录显示 */
showContent = function() {
$("#sideBar").removeClass("side-active");
$("#sideBar").addClass("content-active");
contentScroll();
};
/* 平滑滚动控制 */
myscroll = function() {
$(".float-btn a[href*=\\#]").click(function() {
if (
location.pathname.replace(/^\//, "") ==
this.pathname.replace(/^\//, "") &&
location.hostname == this.hostname
) {
var $target = $(this.hash);
$target =
($target.length && $target) || $("[name=" + this.hash.slice(1) + "]");
if ($target.length) {
var targetOffset = $target.offset().top;
//
$("html,body").animate({
scrollTop: targetOffset - 0,
},
500
);
return false;
}
window.location.href = "#" + this.attr('id');
}
});
};
// 滚动监听事件
scrollListen = function() {
$(window).scroll(function() {
var scrolls = $(this).scrollTop();
if (scrolls >= windowTop) {
//当scrolls>windowTop时,表示页面在向下滑动
$(".float-btn").addClass("float-btn-hide");
// if ($("#topics").length > 0 && scrolls > $(".postTitle").offset().top) {
// $("#header").addClass("header-hidde");
//}
windowTop = scrolls;
} else {
$(".float-btn").removeClass("float-btn-hide");
// $("#header").removeClass("header-hidde");
windowTop = scrolls;
}
});
};
postBasicSetting = function() {
// 代码高亮
// $("pre code").each(function(i, block) {
// hljs.highlightBlock(block);
// });
// // 表格滚动
// $("table").each(function() {
// $(this).css("cssText", "width:100%!important;display:table;");
// $(this).wrapAll('<div class="tablebox"></div>');
// $(".tablebox").css("overflow", "auto");
// });
// 新窗口打开链接
$('#cnblogs_post_body a[href^="http"]').each(function() {
$(this).attr("target", "_blank");
});
// 侧边悬浮评论按钮
$(".btn-main").before(
'<li class="btn-comment"><a href="#comment_form_container"></a></li>'
);
// 博客标题向下滚动显示
// $("#header").append(
// '<div class="post-navbar"><div class="post-title"></div>'
// );
// $(".post-title").text($(".postTitle span").text());
// 图片查看器
// fancyBox($(".cnblogs-markdown img"));
// 代码复制
//codeCopy($("pre"), "post");
};
// 图片查看器
fancyBox = function(Img) {
// $(".cnblogs-markdown img")
Img.each(function() {
var element = document.createElement("a");
$(element).attr("data-fancybox", "gallery");
$(element).attr("href", $(this).attr("src"));
$(element).attr("data-caption", $(this).attr("alt"));
$(this).wrap(element);
if (typeof $(this).attr("alt") != "undefined") {
if ($(this).attr("alt") != "") {
$(this)
.parent()
.after(
'<div class="img-caption">' + $(this).attr("alt") + "</div>"
);
}
}
});
};
/* 代码复制 */
codeCopy = function(codeElement, prefix) {
// 代码复制按钮
for (i = 0; i <= codeElement.length; i++) {
codeElement.eq(i).wrapAll('<div class="copyItem"></div>');
$(".copyItem").css("position", "relative");
if (codeElement.eq(i).children("code").length > 0) {
var codeType = codeElement
.eq(i)
// .children("code")
.attr("class")
// .split(" ")[0]
.split("-")[1];
if (codeType == null) {
codeType = "";
} else {
codeType = codeType.toLowerCase();
}
codeElement
.eq(i)
.before('<div class="codeType">' + codeType + "</div>");
}
codeElement
.eq(i)
.before(
'<div class="clipboard-button" id="copy_btn_' +
i +
' " data-clipboard-target="#' +
prefix +
"_copy_target_" +
i +
'"title="复制"></div>'
);
codeElement.eq(i).attr("id", prefix + "_copy_target_" + i);
}
codeElement.children("code").each(function() {
var lines = $(this).text().split("\n").length - 1;
var $numbering = $("<ul/>").addClass("pre-numbering");
$(this).addClass("has-numbering").parent().append($numbering);
for (i = 1; i <= lines; i++) {
$numbering.append($("<li/>").attr("data-number", i));
}
});
};
/* 代码复制提示 */
copyCodeTip = function() {
var clipboard = new ClipboardJS(".clipboard-button");
clipboard.on("success", function(e) {
ele.$message({
showClose: true,
message: "代码复制成功!",
duration: 1000,
type: "success",
});
e.clearSelection();
});
clipboard.on("error", function(e) {
ele.$message({
showClose: true,
message: "代码复制失败!",
duration: 1000,
type: "error",
});
e.clearSelection();
});
};
/* owo 表情包插件 */
owoEmoji = function() {
$(".commentbox_footer").prepend(
'<div class="OwO" onclick="load_face(this)"><div class="OwO-logo"><i class="fa fa-smile-o" aria-hidden="true"></i></div></div>'
);
// 表情按钮按下
load_face = function(b) {
var c = new OwO({
logo: '<i class="fa fa-smile-o" aria-hidden="true"></i>',
container: document.getElementsByClassName("OwO")[0],
target: document.getElementById("tbCommentBody"),
api: "https://cdn.jsdelivr.net/gh/gshang2018/home/gshang.owo.json",
position: "up",
width: "100%",
maxHeight: "250px",
});
b.classList.add("OwO-open");
b.onclick = null;
};
};
/* 侧边目录滚动激活 */
contentActiveListen = function() {
//开启滚动监听, 监听所有在.nav类下的li
var top_offset = 80;
$("body").scrollspy({
offset: top_offset, // 偏置80,防止遮挡
});
$(window).scroll(function() {
if ($('#sideBar').hasClass('content-active')) {
contentScroll();
}
});
};
contentScroll = function() {
var now = $("#sidebar_scroller").find(".active");
var basicHeight = now.outerHeight();
var prevNum = now.prevAll().length + 1;
var top_distance = prevNum * basicHeight - 60;
$("#sideBar").scrollTop(top_distance);
}
msgDot = function(){
$(document).ajaxComplete(function(event, xhr, option) {
if($('#msg_count').text()!=""){
$("#blog_nav_contact").addClass("has_msg");
}
})
}
/* 侧边目录 */
setSideContent = function() {
var $ph = $("#cnblogs_post_body :header:eq(0)");
if ($ph.length > 0) {
//设置层级为1
$ph.attr("offset", "1");
//添加导航目录的内容
$("#sideBar").prepend(
'<div id="sidebar_scroller" class="sidebar-block"><ul class="nav"></ul></div>'
);
$("#sideBar").prepend(
'<div class="side-choose"><a id="myside" href="javascript:showSide()">侧边</a><a id="mycontent" href="javascript:showContent()">大纲</a></div>'
);
$("#sideBarMain").hide();
showContent();
//遍历文章里每个h标签
$("#cnblogs_post_body :header").each(function(i) {
var $h = $(this);
//设置h标签的id, 编号从0开始
// $h.append('<a class="title-link" id="scroller-' + i + '" href="#' + $h.attr("id") + '"></a>');
$h.attr("class", "title-parent");
//比上一个h标签层级小, 级数加1
if ($h[0].tagName > $ph[0].tagName) {
$h.attr("offset", parseInt($ph.attr("offset")) + 1);
} //比上一个h标签层级大, 级数减1
else if ($h[0].tagName < $ph[0].tagName) {
var h = parseInt($h[0].tagName.substring(1));
var ph = parseInt($ph[0].tagName.substring(1));
var offset = parseInt($ph.attr("offset")) - (ph - h);
if (offset < 1) {
offset = 1;
}
$h.attr("offset", offset);
} //和上一个h标签层级相等时, 级数不变
else {
$h.attr("offset", $ph.attr("offset"));
}
//添加h标签的目录内容
$("#sidebar_scroller ul").append(
'<li class="scroller-offset' +
$h.attr("offset") +
'"><a href="#' +
$h.attr("id") +
'" title="' + $h.text() + '">' +
$h.text() +
"</a></li>"
);
//最后设置自己为上一个h标签
$ph = $h;
});
contentActiveListen(); // 侧边目录滚动激活
}
};
/* 评论区 */
setCommet = function() {
$(document).ajaxComplete(function(event, xhr, option) {
//评论头像
if (option.url.indexOf("GetComments") > -1) {
setTimeout(function() {
// 表情包
// 头像
$.each($(".feedbackItem"), function(index, ele) {
var self = $(ele);
var obj = self.find(".blog_comment_body");
var id = obj.attr("id").split("_")[2];
var blog = self.find('a[id^="a_comment_author"]');
var blogUrl = blog.attr("href");
var imgSrc =
$("#comment_" + id + "_avatar").html() ||
"https://s1.ax1x.com/2022/10/31/xTEJMQ.png";
self.prepend(
'<a class="comment_avatar_container" href="' +
blogUrl +
'"><img src="' +
imgSrc +
'" style="float:left;" class="comment_avatar"></a'
);
$(".feedbackListSubtitle").addClass("feedbackListSubtitle_right");
$(".feedbackCon").addClass("feedbackCon_right");
});
// 代码复制
//codeCopy($("#blog-comments-placeholder pre"));
// 图片查看器
// fancyBox($(".blog_comment_body img"), "comment");
}, 300);
}
});
};
</script>