样式一
页面定制 CSS 代码
/**
cnbook@2021-01-23
by GShang https://www.cnblogs.com/gshang/
**/
@charset "utf-8";
@import url("//unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css");
@import url(https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css) screen and (min-width:0px);
@import url(https://cdn.bootcss.com/fancybox/3.5.7/jquery.fancybox.css) screen and (min-width:0px);
@import url(//cdnjs.cloudflare.com/ajax/libs/mdui/0.4.3/css/mdui.min.css) screen and (min-width:0px);
@import url(https://blog-static.cnblogs.com/files/gshang/notiflix-2.0.0.min.css) screen and (min-width:0px);
@import url(https://cdn.bootcdn.net/ajax/libs/font-awesome/5.13.0/css/all.min.css);
/************** 基本样式 开始 ***************/
@media 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,
#under_post_news,
.c_ad_block {
display: none
}
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
color: var(--color-text-primary);
font-size: var(--text-h5);
line-height: 1.5;
background: var(--color-white);
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
font-weight: 400;
transition: all 300ms;
-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: fade-in;
}
#sideBar {
width: 300px !important;
position: fixed;
top: 0;
left: -300px;
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: 9999;
/* overflow: hidden; */
}
#mainContent {
position: absolute;
left: 0px;
top: 70px;
right: 0;
overflow-y: auto;
transition: left 300ms;
/* background:var(--color-white); */
}
.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;
}
#blogTitle {
/* display:none */
}
}
#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: 999;
background: var(--blur-bg);
backdrop-filter: blur(10px);
position: fixed;
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) {
.main-widthout-sidebar #header{
left:300px;
transition:left 300ms
}
}
.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;
}
#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;
}
#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 50px;
display: flex;
flex-direction: column;
}
/*************************/
.day,
.postSeparator {
/* margin-bottom:30px; */
}
.dayTitle {
display: none;
}
.postTitle {
padding: 20px;
font-size: var(--text-h2);
color: var(--color-text-primary);
}
.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(--blur-bg);
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;
}
.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 #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: "\e6de";
font-family: element-icons;
font-size: 14px;
/* font-weight: bolder; */
}
.CalNextPrev:nth-child(3) a:before {
content: "\e6e0";
font-family: element-icons;
font-size: 14px;
}
.CalDayHeader {
padding: 10px;
/* border-bottom: 1px solid var(--border-color-base); */
margin-bottom: 10px;
}
.CalOtherMonthDay {
color: var(--border-color-lighter);
}
#blog-calendar u {
color: var(--color-primary);
text-decoration: none;
font-weight: bold;
}
@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:20px 0;
}
@media screen and (min-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_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;
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,
#sidebar_postcategory ul,
#sidebar_imagecategory ul,
.sidebar-block[id^="sidebar_link"] ul {
display: flex;
flex-wrap: wrap;
}
#sidebar_toptags li {
margin: 4px 8px 4px 0;
background: transparent;
padding: 4px 10px;
border-radius: 4px;
border: 1px solid var(--border-color-light);
font-size:var(--text-h6);
line-height: 1.4;
}
#sidebar_toptags 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:hover,
.sidebar-block[id^="sidebar_link"] li:hover{
border:1px solid var(--color-primary);
background:var(--color-primary);
color:#fff;
transition:all 300ms;
}
#sidebar_postcategory li {
margin: 4px 8px 4px 0;
background: transparent;
/* color: var(--color-warning); */
padding: 4px 10px;
border-radius: 4px;
font-size: var(--text-h6);
line-height: 1.4;
border: 1px solid var(--border-color-light);
}
#sidebar_postcategory a:before {
/* content: "\e784"; */
}
#sidebar_toptags li:hover {
background: var(--color-success);
border: 1px solid var(--color-success);
color: #fff;
cursor: pointer;
transition:background 300ms;
}
#sidebar_postcategory li:hover {
background: var(--color-warning);
border: 1px solid var(--color-warning);
color: #fff;
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-top: 0px;
width: 100% !important;
/* transition: all 300ms; */
/* border: 1px solid var(--border-color-light); */
}
#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;
}
.sidebar-block:hover,
#sidebar_news:hover,
#blog-calendar:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 300ms;
}
.catListTitle {
margin: 0;
font-size: var(--text-h4);
font-weight: 500;
/* text-indent:10px; */
padding: 14px 14px 0;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
position: relative;
}
.catListTitle:before {
/* content: ""; */
border-left: solid 4px var(--color-primary);
margin-right: 10px;
width: fit-content;
}
.sidebar-block ul,
#profile_block,
#sidebar_search_box {
padding: 0px 14px;
margin: 0;
line-height: 2;
list-style-type: none;
}
#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;
height: 40px;
margin: 0;
align-items: center;
}
.input_my_zzk {
flex-grow: 1;
height: 30px;
padding: 2px 10px !important;
border: none;
background: inherit;
outline: none;
background: var(--background-color-base);
border-radius: 4px;
color: var(--text-color-base);
cursor: text;
}
.div_my_zzk input,
.input_my_zzk input {
width: 170px !important;
/* color: var(--colort-white); */
}
.btn_my_zzk {
margin-left: 10px;
border: none;
height: 30px !important;
color: #fff;
border-radius: 4px;
width: auto !important;
padding: 0 8px !important;
background: var(--color-primary);
position: relative;
outline: none;
cursor:pointer;
}
.btn_my_zzk:hover {
background: var(--color-primary);
opacity:0.8;
transition:300ms;
/* color: #fff; */
}
}
/************** 侧边栏 结束 ***************/
/************** 随笔/档案 开始 ***************/
@media screen and (min-width:0) {
.day,
.entrylist {
/* margin-bottom: 20px; */
/* background: var(--color-white); */
border-radius: 0;
overflow: hidden;
/* transition: all 300ms; */
/*padding:0 10px;*/
border-bottom: 1px solid var(--border-color-extra-linght) !important;
/* border-top: 1px solid var(--border-color-light); */
}
#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,
.entrylistTitle {
padding: 20px 20px 0px;
margin: 0;
font-size: var(--text-h3);
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); */
}
/* .entrylistTitle:before {
content: "";
border-left: 4px solid var(--color-primary);
height: 100%;
width: 4px;
margin-right: 10px;
} */
.dayTitle {
display: none;
}
.entrylistDescription {
padding: 10px 20px 30px;
max-width: 960px;
border-bottom: 1px solid var(--border-color-lighter);
/* margin-bottom: 20px; */
/* background: var(--color-white); */
z-index: 2;
color: var(--color-text-regular);
}
/*
.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:hover,
.entrylistPosttitle: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;
}
.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;
}
.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: 100px;
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: 180px;
border: 1px solid rgba(0,0,0,.05);
/* float: left; */
}
}
}
/************** 随笔/档案 结束 ***************/
/************** 常用链接子界面/相册 开始 ***************/
@media screen and (min-width: 0px) {
.PostListTitle {
margin: 0;
font-size: var(--text-h3);
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;
}
.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 10px;
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: var(--text-h3);
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: 0 4px;
box-sizing: border-box;
line-height: 2;
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: 0px;
text-align: center;
transition: all 500ms;
/* margin-bottom: 20px; */
}
#nav_next_page a {
display: block;
width: 100%;
padding: 10px;
}
#nav_next_page:hover {
/*box-shadow: var(--light-shadow);*/
transition: all 500ms;
}
.pager {
margin: 10px;
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 {
color: #fff;
background: var(--color-primary);
transition: all 300ms;
border-color: var(--color-primary);
}
.Pager {
/* padding: 20px; */
text-align: center;
background: var(--color-white);
}
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: 0px;
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 !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: var(--text-h1);
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-right: 20px;
}
.post .postDesc span:before,
.post .postDesc a:before,
.post-header .postDesc span:before,
.post-header .postDesc a:before {
margin-right: 4px;
}
#post-date:before {
content: "\e71f";
font-family: element-icons;
}
#post_view_count:before {
content: "\e769";
font-family: element-icons;
}
#post_comment_count:before {
content: "\e72e";
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: "\e6e3";
font-family: element-icons;
}
.post .postDesc a[target="_blank"]:before,
.post-header .postDesc a[target="_blank"]:before {
content: "\e786";
font-family: element-icons;
}
.post .postDesc a[rel="nofollow"]:before,
.post-header .postDesc a[rel="nofollow"]:before {
content: "\e764";
font-family: element-icons;
}
.post .postDesc a[href="javascript:void(0)"],
.post-header .postDesc a[href="javascript:void(0)"] {
margin-right: 0;
}
.post .postDesc a[href="javascript:void(0)"]:before,
.post-header .postDesc a[href="javascript:void(0)"]:before {
content: "\e765";
font-family: element-icons;
}
}
/************** 博客正文基本样式 结束 ***************/
/************** markdown 开始 ***************/
@media screen and (min-width:0) {
.cnblogs-markdown {
line-height: 1.8;
}
.cnblogs-markdown a {
color: var(--color-primary);
}
.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;
/* border-bottom: 1px solid var(--border-color-extra-linght); */
font-size: 13px;
color: #999;
}
#cnblogs_post_body p img {
width: auto;
display: flex;
margin: 0 auto;
align-items: center;
text-align: center;
}
.cnblogs-markdown pre code,
.cnblogs-markdown .hljs {
border: none !important;
color: #abb2bf;
padding: 20px 10px !important;
/* padding-left: 10px; */
background: #282c34 !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;
}
#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 {
width: 100% !important;
display: table !important;
border: none !important;
}
#cnblogs_post_body th,
#cnblogs_post_body td,
.cnblogs-post-body th,
.cnblogs-post-body td {
border: 1px solid var(--DividColor) !important;
word-break: break-all;
white-space: nowrap;
}
}
/************** 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; */
}
.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 {
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: 2em !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.5em !important;
}
.cnblogs-markdown h3 {
font-size: 1.25em !important;
}
.cnblogs-markdown h4 {
font-size: 1em !important;
}
.cnblogs-markdown h5 {
font-size: .875em !important;
}
.cnblogs-markdown h6 {
font-size: .85em !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 {
display: table !important;
width: 100% !important;
overflow-x: auto !important;
}
.cnblogs-markdown table th {
font-weight: 600 !important;
}
.cnblogs-markdown table td,
.cnblogs-markdown table th {
padding: 6px 13px !important;
border: 1px solid #dfe2e5 !important;
background: transparent !important;
}
.cnblogs-markdown table tr {
background-color: var(--color-white);
border-top: 1px solid #c6cbd1 !important;
}
.cnblogs-markdown table tr:nth-child(2n) {
background-color: var(--background-color-base) !important;
}
.cnblogs-markdown table img {
background-color: initial !important;
}
.cnblogs-markdown img {
max-width: 100% !important;
box-sizing: initial !important;
background-color: var(--color-white) !important;
}
#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 code,
.cnblogs-markdown tt {
padding: 0.2em .4em !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;
}
.cnblogs-markdown code br,
.cnblogs-markdown tt br {
display: none !important;
}
.cnblogs-markdown del code {
text-decoration: inherit !important;
}
.cnblogs-markdown 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;
}
.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 {
/* 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;
}
.cnblogs-markdown pre code,
.cnblogs-markdown 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;
}
.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 {
font-family: element-icons;
margin: 10px 0;
/* font-size: 0; */
}
#BlogPostCategory a,
#EntryTag a {
margin: 0 0 0 10px;
display: inline-block;
font-size: var(--text-h6);
}
#BlogPostCategory:before{
content:"\f07c";
}
#EntryTag:before{
content:"\f02c";
}
#BlogPostCategory a {
background: transparent;
/* color: var(--color-warning); */
border: 1px solid var(--border-color-light);
padding: 2px 12px;
border-radius: 4px;
}
#BlogPostCategory a:hover{
background: var(--color-warning);
border: 1px solid var(--color-warning);
color: #fff;
transition:background 300ms;
}
#EntryTag a {
background: transparent;
/* color: var(--color-success); */
border: 1px solid var(--border-color-light);
padding: 2px 12px;
border-radius: 4px;
}
#EntryTag a:hover{
background: var(--color-success);
color: #fff;
border: 1px solid var(--color-success);
transition:background 300ms;
}
#BlogPostCategory a:before,
#EntryTag 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 -24px;
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: "\e8dc";width: 40px;line-height: 40px;height: 40px;color:#FA7298;font-size: var(--text-h4);font-family: 'Material Icons';}
#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: "\e8dc";
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: var(--color-danger); */
border: 1px solid var(--BackgroundColor);
color: var(--color-text-regular)!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: 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: 20px;
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);
font-size: var(--text-h5) !important;
}
.feedbackListSubtitle a {
font-size: var(--text-h5);
}
.layer {
/* width:100%; */
order: 1;
margin-right: 10px;
}
.feedbackManage {
order: 2;
position: absolute;
left: 20px;
bottom: 20px;
}
.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: 0;
}
#btn_comment_submit {
background: transparent;
border-radius: 4px;
border: 1px solid var(--BackgroundColor);
color: var(--text-color-regular);
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);
}
.blog_comment_body {
padding: 20px 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;
}
}
/************** 弹窗结束 ***************/
/*** Atom OneDark 开始**/
/*
@media screen and (min-width:0px) {
.cnblogs-markdown .hljs,.cnblogs-post-body .hljs {
display: block;
overflow-x: auto;
padding: .5em;
color: #abb2bf;
}
.cnblogs-markdown .hljs-comment,.cnblogs-markdown .hljs-quote,.cnblogs-post-body .hljs-comment,.cnblogs-post-body .hljs-quote {
color: #5c6370;
font-style: italic
}
.cnblogs-markdown .hljs-doctag,.cnblogs-markdown .hljs-formula,.cnblogs-markdown .hljs-keyword,.cnblogs-post-body .hljs-doctag,.cnblogs-post-body .hljs-formula,.cnblogs-post-body .hljs-keyword {
color: #c678dd
}
.cnblogs-markdown .hljs-deletion,.cnblogs-markdown .hljs-name,.cnblogs-markdown .hljs-section,.cnblogs-markdown .hljs-selector-tag,.cnblogs-markdown .hljs-subst,.cnblogs-post-body .hljs-deletion,.cnblogs-post-body .hljs-name,.cnblogs-post-body .hljs-section,.cnblogs-post-body .hljs-selector-tag,.cnblogs-post-body .hljs-subst {
color: #e06c75
}
.cnblogs-markdown .hljs-literal,.cnblogs-post-body .hljs-literal {
color: #56b6c2
}
.cnblogs-markdown .hljs-addition,.cnblogs-markdown .hljs-attribute,.cnblogs-markdown .hljs-meta-string,.cnblogs-markdown .hljs-regexp,.cnblogs-markdown .hljs-string,.cnblogs-post-body .hljs-addition,.cnblogs-post-body .hljs-attribute,.cnblogs-post-body .hljs-meta-string,.cnblogs-post-body .hljs-regexp,.cnblogs-post-body .hljs-string {
color: #98c379
}
.cnblogs-markdown .hljs-built_in,.cnblogs-markdown .hljs-class .hljs-title,.cnblogs-post-body .hljs-built_in,.cnblogs-post-body .hljs-class .hljs-title {
color: #e6c07b
}
.cnblogs-markdown .hljs-attr,.cnblogs-markdown .hljs-number,.cnblogs-markdown .hljs-selector-attr,.cnblogs-markdown .hljs-selector-class,.cnblogs-markdown .hljs-selector-pseudo,.cnblogs-markdown .hljs-template-variable,.cnblogs-markdown .hljs-type,.cnblogs-markdown .hljs-variable,.cnblogs-post-body .hljs-attr,.cnblogs-post-body .hljs-number,.cnblogs-post-body .hljs-selector-attr,.cnblogs-post-body .hljs-selector-class,.cnblogs-post-body .hljs-selector-pseudo,.cnblogs-post-body .hljs-template-variable,.cnblogs-post-body .hljs-type,.cnblogs-post-body .hljs-variable {
color: #d19a66
}
.cnblogs-markdown .hljs-bullet,.cnblogs-markdown .hljs-link,.cnblogs-markdown .hljs-meta,.cnblogs-markdown .hljs-selector-id,.cnblogs-markdown .hljs-symbol,.cnblogs-markdown .hljs-title,.cnblogs-post-body .hljs-bullet,.cnblogs-post-body .hljs-link,.cnblogs-post-body .hljs-meta,.cnblogs-post-body .hljs-selector-id,.cnblogs-post-body .hljs-symbol,.cnblogs-post-body .hljs-title {
color: #61aeee
}
.cnblogs-markdown .hljs-emphasis,.cnblogs-post-body .hljs-emphasis {
font-style: italic
}
.cnblogs-markdown .hljs-strong,.cnblogs-post-body .hljs-strong {
font-weight: 700
}
.cnblogs-markdown .hljs-link,.cnblogs-post-body .hljs-link {
text-decoration: underline
}
.cnblogs-markdown .hljs-tag,.cnblogs-post-body .hljs-tag {
color: #abb2bf
}
}
*/
/** vscode **/
@media screen and (min-width:0px) {
/*
* Visual Studio 2015 dark style
* Author: Nicolas LLOBERA <nllobera@gmail.com>
*/
.cnblogs-markdown .hljs,
.cnblogs-markdown pre {
background: #1E1E1E !important;
color: #DCDCDC !important;
}
.hljs::-webkit-scrollbar {
/* 滚动条整体样式 */
width: 8px;
/* 高宽分别对应横竖滚动条的尺寸 */
height: 8px;
transition: height 3000ms;
}
.hljs::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
//border-radius: 10px;
background-color: #c1c1c1;
}
.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: italic!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;
}
}
/******* Atom OneDark 结束 ********/
/*** 代码复制 开始**/
@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: 21px;
border-radius: 4px 4px 4px 0;
width: 290px!important;
/* height: 150px; */
}
.OwO.OwO-up .OwO-body .OwO-bar .OwO-packages li:nth-child(1) {
border-radius: 0
}
.OwO.OwO-up.OwO-open .OwO-logo {
/* border: 1px solid #ddd; */
border-radius: 0 0 4px 4px;
border-top: none;
}
.OwO .OwO-logo {
position: relative;
display: inline-block;
color: #888;
background: var(--color-white);
border: 1px solid var(--border-color-extra-linght);
border-radius: 4px;
/* font-size: 13px; */
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: 2;
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;
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(--BackgroundColor); */
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 {
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: 0;
/* padding: 14px; */
}
#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: 20px 10px !important;
border-right: 0px solid #abb2bf;
/* background-color: #282c34 !important; */
color: #898e96;
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: 999;
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;
}
}
/*
.forFlow:after{
content:'Copyright © 2021 GShang';
display:block;
text-align: center;
padding: 30px 14px;
background: var(--color-white);
color: var(--color-text-secondary);
}
*/
.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;
}
.post-header .postTitle,
.post-header .postDesc{
z-index:2;
}
.post-header * {
color:#fff!important;
}
.post-header:before{
content: "";
background: rgba(0,0,0,.2);
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:flex;
flex-wrap:wrap;
align-items:center;
}
.day .postTitle2 span span{
order:1;
font-size:0;
}
.day .postTitle2 span span:after{
content:"置顶";
display:block;
margin-left:10px;
color:#fff;
padding:2px 10px;
border-radius:4px;
font-size: 12px;
/* height:var(--text-h2); */
background: var(--color-danger);
}
div#blog-comments-placeholder {
display: flex;
flex-direction: column-reverse;
}
div#comment_form {
display: flex;
flex-direction: column-reverse;
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;
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 {
display: table !important;
width: 100% !important;
overflow-x: auto !important;
border-collapse: collapse;
}
.bq_post_comment table th {
font-weight: 600 !important;
}
.bq_post_comment table td,
.bq_post_comment table th {
padding: 6px 13px !important;
border: 1px solid #dfe2e5 !important;
background: transparent !important;
/* border-spacing: 0!important; */
}
.bq_post_comment table tr {
background-color: var(--color-white);
border-top: 1px solid #c6cbd1 !important;
}
.bq_post_comment table tr:nth-child(2n) {
background-color: var(--background-color-base) !important;
}
.bq_post_comment 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,
.bq_post_comment tt {
padding: 0.2em .4em !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 20px 0px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
.my-logo {
width: 100%;
height: 100%;
}
.my-name{
font-weight:bold;
font-size:18px;
line-height: 1.5;
}
.my-name-container{
display:flex;
align-items:center;
}
#age{
background: var(--color-danger-2);
color: var(--color-danger-0);
border: 1px solid var(--color-danger-0);
font-size:smaller;
padding:0px 8px;
line-height: 20px;
width: fit-content;
white-space: nowrap;
margin-left:10px;
border-radius:20px;
}
.my-desc{
font-size:small;
margin-top: 10px;
}
.my-detaial ul{
display:flex;
width:100%;
padding:0;
margin: 4px auto;
justify-content: center;
}
.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;
}
.my-detaial ul li:after{
font-size: 10px;
white-space:nowrap;
}
#fans:after{
content:'粉丝';
margin-left:4px;
}
#follow:after{
content:'关注';
margin-left:4px;
}
.my-stats ul{
/* display: flex; */
/* grid-template-columns:1fr 1fr 1fr; */
/* width: 100%; */
/* padding:0; */
/* margin:10px 0; */
}
.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 .entrylistTitle{/* display:none; */margin-bottom: -20px;}
.recent_comment_body, .recent_comment_author{
font-size:var(--text-h6);
}
.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-); */
}
ul.dropwon-content{
display:none;
}
.my-stats:hover .dropwon-content {
display:flex;
flex-direction:column;
position:absolute;
top:70%;
right:0!important;
width:120px;
z-index:10;
background: var(--color-white);
box-shadow:var(--light-shadow) ;
padding:12px 0 4px;
border-radius:4px;
animation:fadeInLeft 0.3s
}
#view:before{
content:"总阅读:";
}
li.recent_comment_body {
margin-top:10px;
background: var(--border-color-extra-linght);
padding:4px 8px;
border-radius:2px;
position:relative;
}
li.recent_comment_body:before{
content:"";
display:block!important;
width:10px;
height:10px;
background:var(--background-color-base);
position:absolute;
top:-5px;
left:20px;
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: 4px;
display: block;
border: 1px solid var(--border-color-extra-linght);
/* position: absolute; */
/* margin-bottom:10px; */
margin-bottom: 20px;
}
.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;
}
.entrylistItemPostDesc a[title='permalink']{
display:none;
}
}
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(--border-color-base);
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;
}
}
#post_detail{
animation-name: fadeIn;
animation-duration: 0.5s;
}
#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{
animation-name: fadeInUp;
animation-duration: 1s;
}
博客侧边栏公告(支持HTML代码)
<div id="my-profile">
<a :href="user.homepage" class="my-logo-container"><img :src="user.avatar" class="my-logo" /></a>
<div class="my-name-container">
<span class="my-name"><a :href="user.homepage">{{user.name}}</a></span>
<span id="age" :title="user.join">{{user.age}}</span>
</div>
<span class="my-desc">{{user.desc}}</span>
<div class="my-detaial">
<ul>
<li id="follow"><a :href='user.follow_link' :title="user.follow">{{user.follow}}</a></li>
<li id="fans"><a :href='user.fans_link' :title="user.fans">{{user.fans}}</a></li>
<li id="more">
<div class="my-stats">
<div class="btn-more"></div>
<ul class="dropwon-content">
<li id="post" :title="['随笔:'+user.post]">{{user.post}}</li>
<li id="article" :title="['文章:'+user.article]">{{user.article}}</li>
<li id="comment" :title="['评论:'+user.comment]">{{user.comment}}</li>
<li id="view" :title="['阅读:'+user.view_num]">{{user.view_text}}</li>
</ul>
</div>
</li>
</ul>
</div>
<div id="follow-btn"></div>
</div>
<script>
new Vue({
el:'#my-profile',
data:{
user:{
avatar:"https://pic.cnblogs.com/avatar/1746488/20210703185345.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,"")
}
}
})
$('#follow-btn').append($('#p_b_follow'));
if ($("#topics").length > 0) {
// setZan();
$('#digg_tips').bind("DOMNodeInserted",function(){
if($('#digg_tips').text()=="支持成功" || $('#digg_tips').text()=="取消支持成功"){
ele.$message({
showClose: true,
message: $('#digg_tips').text(),
duration: 1000,
type: "success",
});
}
if($('#digg_tips').text()=="您已支持过"){
ele.$message({
showClose: true,
message: $('#digg_tips').text(),
duration: 1000,
type: "warning",
});
}
})
}
</script>
页首 HTML 代码
<div id="loading-container">
<div id="loading">
<div class="ball-scale-multiple">
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
页脚 HTML 代码
<script src="https://cdn.bootcss.com/fancybox/3.5.7/jquery.fancybox.js"></script>
<script src="https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js"></script>
<script src="https://blog-static.cnblogs.com/files/gshang/gshang.owo.2020.01.05.1.js"></script>
<script src="https://blog-static.cnblogs.com/files/ctgu/perfect-scrollbar.min.js"></script>
<script src="//cdnjs.loli.net/ajax/libs/mdui/0.4.3/js/mdui.min.js"></script>
<script src="https://blog-static.cnblogs.com/files/gshang/sidebarContent.js"></script>
<script src="https://blog-static.cnblogs.com/files/gshang/highlight.pack.js"></script>
<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://files.cnblogs.com/files/gshang/gs.js"></script>-->
<script>
// 参数初始化
var ele = new Vue({});
var windowTop = 0;
$(function () {
// 基础组件初始化
basicInit();
// 其他初始化
if ($("#topics").length > 0) {
magicMarkdown(); // 魔法注释
blogPostTitle(); // 博客正文标题背景图
// $("#loading-container").fadeToggle("fast");
postBasicSetting(); // 博客基本样式初始化
setSideContent(); // 侧边目录
contentActiveListen(); // 侧边目录滚动激活
setCommet(); // 评论区
} else {
// entryPostTitle(); 随笔分类背景图
// $("#loading-container").fadeToggle("fast");
}
//setProfile(); // 公告信息
btnClick(); // 点击事件
copyCodeTip(); // 代码复制提示
scrollListen(); // 滚动监听事件
myscroll(); // 平滑滚动控制
});
/* 初始化 */
basicInit = function () {
// 博客 favicon
$("#favicon").replaceWith(
'<link rel="shortcut icon" href="https://pic.cnblogs.com/face/1746488/20210703185345.png">'
);
// 初始化主题样式
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();
}
});
};
/* 按钮点击事件 */
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) {
$("#mainContent").prepend('<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");
};
/* 目录显示 */
showContent = function () {
$("#sideBar").removeClass("side-active");
$("#sideBar").addClass("content-active");
};
/* 平滑滚动控制 */
myscroll = function () {
$("a[href*=\\#],area[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 - 70,
},
500
);
return false;
}
}
});
};
// 滚动监听事件
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-theme").after(
'<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
$("body").scrollspy({
offset: 80, // 偏置80,防止遮挡
});
$(window).scroll(function () {
var now = $("#sidebar_scroller").find(".active");
var prevNum = now.prevAll().length + 1;
var basicHeight = now.outerHeight();
$("#sideBar").scrollTop(prevNum * basicHeight - 60);
});
};
/* 侧边目录 */
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.attr("id", "scroller-" + i);
//比上一个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="#scroller-' +
i +
'">' +
$h.text() +
"</a></li>"
);
//最后设置自己为上一个h标签
$ph = $h;
});
contentActiveListen(); // 侧边目录滚动激活
}
};
/* 评论区 */
setCommet = function () {
$(document).ajaxComplete(function (event, xhr, option) {
//评论头像
if (option.url.indexOf("GetComments") > -1) {
setTimeout(function () {
// 表情包
owoEmoji();
// 头像
$.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() ||
"http://pic.cnblogs.com/avatar/simple_avatar.gif";
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);
}
});
};
/* 侧边公告个人信息 */
setProfile = function () {
//if ($("#blog-news").length > 0) {
new Vue({
el: "#sidebar_c3",
data: {
user: {
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]/gi, ""),
article: $("#stats_article_count")
.text()
.replace(/[^0-9]/gi, ""),
comment: $("#stats-comment_count")
.text()
.replace(/[^0-9]/gi, ""),
view_text: $("#stats-total-view-count span").text(),
view_num: $("#stats-total-view-count span").attr("title").replace(/[^0-9]/gi, ""),
},
},
template: `<div id="my-profile">
<a :href="user.homepage" class="my-logo-container"><img src="https://pic.cnblogs.com/avatar/1489774/20200810193123.png" class="my-logo" /></a>
<div class="my-name-container">
<span class="my-name"><a :href="user.homepage">{{user.name}}</a></span>
<span id="age" :title="user.join">{{user.age}}</span>
</div>
<div id="follow-btn"></div>
<span class="my-desc">{{user.desc}}</span>
<div class="my-detaial">
<ul>
<li id="follow"><a :href='user.follow_link' :title="user.follow">{{user.follow}}</a></li>
<li id="fans"><a :href='user.fans_link' :title="user.fans">{{user.fans}}</a></li>
<li id="more">
<div class="my-stats">
<div class="btn-more"></div>
<ul class="dropwon-content">
<li id="post" :title="['随笔:'+user.post]">{{user.post}}</li>
<li id="article" :title="['文章:'+user.article]">{{user.article}}</li>
<li id="comment" :title="['评论:'+user.comment]">{{user.comment}}</li>
<li id="view" :title="['阅读:'+user.view_num]">{{user.view_text}}</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
`,
});
$("#follow-btn").append($("#p_b_follow"));
// }
};
</script>
样式二 silence主题
页面定制CSS代码
@import url(https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css);
@media only screen and (max-width: 1365px) {
.github-corner {
display: none
}
}
@media only screen and (max-width: 1259px) {
#home {
width: 100% !important
}
}
@media only screen and (max-width: 990px) {
#bannerbar {
display: none
}
#header, .esa-mobile-menu {
display: block !important
}
#header {
width: auto;
position: fixed !important;
background: var(--blog-bg-color)
}
#header #blogTitle {
margin-left: 15px
}
#header #navigator {
display: none;
left: 0;
top: 61px
}
#header #navigator #navList > li {
float: none;
position: relative;
background: var(--blog-bg-color);
height: 34px;
line-height: 34px;
width: 120px;
border-bottom: 1px solid var(--border-color);
border-right: 1px solid var(--border-color)
}
#header #navigator #navList > li > a {
float: none;
width: inherit;
padding: 0 10px
}
#header #navigator #navList > li > a .arrow {
position: absolute;
top: .8rem;
right: .8rem;
transform: rotate(270deg) scaleX(-1)
}
#header #navigator #navList > li .esa-sub-navs {
position: fixed;
width: 130px;
top: 0;
left: 121px;
top: 61px
}
#header #navigator #navList > li .esa-sub-navs .caret {
display: none
}
#header #navigator #navList > li .esa-sub-navs ul {
box-shadow: none;
padding: 0;
border-radius: 0
}
#header #navigator #navList > li .esa-sub-navs ul li {
height: 34px;
line-height: 34px;
border: 1px solid var(--border-color);
border-top: none
}
#header #navigator #navList > li .esa-sub-navs ul li a {
text-align: left;
padding: 0 10px
}
#header #navigator #navList > li i {
display: none
}
#sideBar {
display: none !important
}
#home {
min-width: auto !important
}
#main {
width: 100% !important;
padding: 70px 0 0 !important
}
#main .forFlow {
margin-left: 0 !important;
padding-left: 15px;
padding-right: 15px
}
#main .forFlow .postBody {
padding: 0 !important
}
#main .forFlow .postDesc {
display: none
}
#main .forFlow #comment_form {
padding: 0 !important
}
#main .forFlow .commentform {
margin-left: 0 !important
}
#main .forFlow .day .postDesc, #main .forFlow .entrylist .entrylistItemPostDesc {
display: none
}
#myposts .postDesc2 {
text-align: right !important
}
#myposts .postDesc2 span {
display: none
}
.esa-toolbar .skin-popup {
bottom: calc(50% - 67px) !important;
border-radius: 15px !important
}
}
:root[mode=light] {
--blog-bg-color: #fff;
--text-color: #596172;
--border-color: #eef2f8;
--catalog-bg-color: #fff;
--panel-bg-color: #f8f8f8;
--code-bg-color: #f1f1f1
}
:root[mode=dark] {
--blog-bg-color: #202020;
--text-color: #d8d8d8;
--border-color: #2f2f2f;
--catalog-bg-color: #252525;
--panel-bg-color: #252525;
--code-bg-color: #3a3a3a
}
:root[theme=a] {
--theme-color: #2d8cf0
}
:root[theme=b] {
--theme-color: #fa7298
}
:root[theme=c] {
--theme-color: #42b983
}
:root[theme=d] {
--theme-color: #607d8b
}
:root[theme=e] {
--theme-color: #5e72e4
}
:root[theme=f] {
--theme-color: #ff9700
}
:root[theme=g] {
--theme-color: #ff5722
}
:root[theme=h] {
--theme-color: #009688
}
:root[theme=i] {
--theme-color: #673bb7
}
:root[theme=j] {
--theme-color: #906f61
}
* {
margin: 0;
padding: 0
}
body, html {
height: 100%
}
body {
background: var(--blog-bg-color);
color: var(--text-color);
font-family: Lato, PingFang SC, Microsoft YaHei, sans-serif;
font-size: 14px;
font-weight: 300
}
table {
border-collapse: collapse;
border-spacing: 0
}
td {
padding: 5px
}
fieldset, img {
border: 0
}
ul {
word-break: break-all
}
li {
list-style: none
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: 400
}
a {
color: var(--text-color);
text-decoration: none;
transition: all .3s ease
}
a:hover {
color: var(--theme-color)
}
::-moz-selection {
background: var(--theme-color);
color: #fff
}
::selection {
background: var(--theme-color);
color: #fff
}
#ad_c1, #ad_c2, #ad_t2, #author_profile, #comment_nav, #comment_pager_top, #green_channel, #lnkBlogLogo, #under_post_kb, #under_post_news, .blogStats, .c_ad_block, .dayTitle, .under-comment-nav {
display: none
}
.clear {
clear: both
}
#home {
width: 100%;
height: 100%;
transition: all 378ms
}
#header {
width: 960px;
position: relative;
top: 0;
right: 0;
left: 0;
margin: 0 auto;
border-top: 0;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0;
display: block;
height: 60px;
z-index: 999
}
#blogTitle h1 {
font-size: 25px;
font-weight: 600;
font-family: Georgia;
float: left;
margin-top: 15px
}
#blogTitle h2 {
display: none
}
#navigator {
height: inherit;
position: absolute;
right: 0;
top: 0
}
#navList {
height: inherit;
float: left
}
#navList > li {
position: relative;
float: left
}
#navList > li:hover i {
width: 100%;
left: 0
}
#navList > li > a {
float: left;
font-size: 17px;
border-right: 0;
font-weight: 300;
text-align: center;
width: auto;
padding: 19px 16px
}
#navList > li > a:after {
content: "";
position: absolute;
width: 100%;
height: 4px;
bottom: 0;
left: 0;
background-color: var(--theme-color);
visibility: hidden;
transform: scaleX(0);
transition: .4s ease-in-out
}
#navList > li > a:hover:after {
visibility: visible;
transform: scaleX(1)
}
#navList .open {
transform: rotate(180deg) scaleX(-1);
transition-duration: .3s
}
#navList .esa-sub-navs {
position: absolute;
width: 130px;
top: 60px;
left: calc(50% - 65px);
display: none
}
#navList .esa-sub-navs .caret {
border-top: 0 solid transparent;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid var(--blog-bg-color);
width: 0;
position: relative;
left: calc(50% - 8px)
}
#navList .esa-sub-navs ul {
background-color: var(--blog-bg-color);
border-radius: 4px;
box-shadow: 0 1px 15px rgba(27, 31, 35, .15);
padding: 10px;
text-align: center
}
#navList .esa-sub-navs ul li {
float: none
}
#navList .esa-sub-navs ul li a {
font-size: 15px;
border-right: 0;
color: var(--text-color);
display: block;
width: 100%;
padding: 10px 0;
height: inherit;
border-bottom: 1px solid transparent
}
#navList .esa-sub-navs ul li a:hover {
color: var(--theme-color)
}
#main {
width: 960px;
margin: 0 auto;
min-height: calc(100% - 75px);
padding: 15px 0;
transition: all .3s ease
}
#mainContent {
float: right;
margin-left: -25em;
width: 100%
}
#mainContent .forFlow {
margin: 0 auto 0 0;
max-width: 960px
}
#sideBar {
width: 230px;
border-right: 1px solid var(--border-color);
font-weight: 300;
display: none;
min-height: 750px;
padding: 0 15px 0 0
}
#sideBar #profile_block {
margin: 0;
font-size: 0;
display: flex;
flex-wrap: wrap;
text-align: left;
line-height: 1.6
}
#sideBar #profile_block a {
box-sizing: border-box
}
#sideBar #profile_block a:first-child {
font-size: 18px;
font-weight: 700;
width: 100%;
display: block;
text-align: center;
margin-bottom: 14px
}
#sideBar #profile_block a:nth-child(3):after {
content: "\56ed\9f84"
}
#sideBar #profile_block a:nth-child(5):after {
content: "\7c89\4e1d"
}
#sideBar #profile_block a:nth-child(7):after {
content: "\5173\6ce8"
}
#sideBar #profile_block a:nth-child(3), #sideBar #profile_block a:nth-child(5), #sideBar #profile_block a:nth-child(7) {
font-size: 14px;
width: 33.3333333%;
display: block;
padding: 0 4px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: center
}
#sideBar #profile_block a:nth-child(3):after, #sideBar #profile_block a:nth-child(5):after, #sideBar #profile_block a:nth-child(7):after {
color: #97979f;
font-size: 14px;
display: block;
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
font-weight: 400
}
#sideBar #profile_block #p_b_follow {
margin: 15px 0 10px;
text-align: center
}
#sideBar #profile_block #p_b_follow a {
border: 1px solid var(--border-color);
font-size: 13px;
padding: 7px 0;
border-radius: 4px;
width: 230px;
font-weight: 300
}
#sideBar #profile_block #p_b_follow a:hover {
border-color: var(--theme-color)
}
.newsItem {
margin-bottom: 10px
}
.newsItem .catListTitle {
display: none
}
#blog-calendar {
border-top: 1px solid var(--border-color)
}
#blog-calendar .CalDayHeader {
font-weight: 300
}
#blog-calendar .CalTodayDay {
color: var(--theme-color);
font-weight: 600
}
#sideBarMain ul {
line-height: 1.6
}
.catListTitle {
text-align: left;
margin: 20px 0;
font-size: 20px;
font-weight: 300;
border-left: 4px solid var(--theme-color);
border-radius: 4px;
padding-left: 7px
}
#sidebar_search #widget_my_zzk .input_my_zzk {
color: #314659;
border: 1px solid var(--border-color);
background-color: transparent;
width: 150px;
height: 32px;
padding: 0 7px;
font-size: 16px;
border-radius: 4px
}
#sidebar_search #widget_my_zzk .input_my_zzk:focus {
outline: none
}
#sidebar_search #widget_my_zzk .btn_my_zzk {
height: 34px;
font-size: 14px;
font-weight: 300;
background-color: transparent;
color: var(--text-color);
cursor: pointer;
width: 59px;
outline: 0;
border: 1px solid var(--border-color);
border-radius: 4px;
transition: border .3s
}
#sidebar_search #widget_my_zzk .btn_my_zzk:hover {
color: var(--theme-color);
border: 1px solid var(--theme-color)
}
#sidebar_search #widget_my_google {
display: none
}
#sidebar_toptags li {
font-size: 14px;
height: 16px;
line-height: 16px;
padding: 5px 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 210px;
border: 1px solid var(--border-color);
margin: 0 6px 6px 0;
display: inline-grid;
transition: all .3s ease;
border-radius: 4px
}
#sidebar_toptags li a {
transition: inherit
}
#sidebar_toptags li a .tag-count {
display: none
}
#sidebar_toptags li:active, #sidebar_toptags li:link, #sidebar_toptags li:visited {
border-color: var(--border-color)
}
#sidebar_toptags li:hover {
border-color: var(--theme-color)
}
#sidebar_categories li, #sidebar_scorerank li, #sidebar_shortcut li {
font-size: 15px;
height: 40px;
padding-left: 3px;
line-height: 30px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
list-style: none
}
#sidebar_recentposts li, #sidebar_topcommentedposts li, #sidebar_topdiggedposts li, #sidebar_topviewedposts li {
font-size: 15px;
padding: 7px 0;
transition: all .3s;
text-align: justify;
border-bottom: 1px solid var(--border-color)
}
#sidebar_recentposts li:first-child, #sidebar_topcommentedposts li:first-child, #sidebar_topdiggedposts li:first-child, #sidebar_topviewedposts li:first-child {
border-top: 1px solid var(--border-color)
}
#sidebar_recentcomments li {
text-align: justify
}
#sidebar_recentcomments .recent_comment_title:nth-child(n+2) {
padding-top: 10px
}
#sidebar_recentcomments .recent_comment_title:first-child {
border-top: 1px solid var(--border-color);
padding-top: 10px
}
#sidebar_recentcomments .recent_comment_body {
border-radius: 4px;
padding: 5px 10px;
margin: 5px 0;
background-color: var(--panel-bg-color)
}
#sidebar_recentcomments .recent_comment_author {
margin-right: 0;
text-align: right;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color)
}
#taglist_title, .entrylistTitle, .myposts_title, .PostListTitle, .thumbTitle {
font-size: 20px;
font-weight: 300;
margin-bottom: 10px;
text-align: left
}
.entrylistDescription {
margin: 15px auto;
border-left: 4px solid var(--border-color);
text-align: justify;
padding-left: 7px
}
#myposts {
margin-left: 0
}
#myposts .PostList {
border-bottom: 1px solid var(--border-color);
padding: 0;
margin: 0
}
#myposts .PostList:first-of-type {
border-top: 1px solid var(--border-color)
}
#myposts .postTitl2 {
font-size: 17px;
margin: 10px 0;
text-align: justify
}
#myposts .postDesc2 {
text-align: right;
margin-bottom: 10px;
font-size: 14px
}
#myposts .postDesc2 > a {
display: none
}
#myposts .postDesc2:before {
font-family: FontAwesome;
content: "\f017";
opacity: .7
}
.post-view-count:before {
content: "\f06e"
}
.post-comment-count:before, .post-view-count:before {
font-family: FontAwesome;
padding-left: 10px;
padding-right: 5px;
opacity: .7
}
.post-comment-count:before {
content: "\f27b"
}
.post-digg-count:before {
font-family: FontAwesome;
content: "\f087";
padding-left: 10px;
padding-right: 5px;
opacity: .7
}
.day, .day > .postSeparator, .entrylistItem {
border-bottom: 1px solid var(--border-color);
text-align: justify;
margin-bottom: 10px;
padding-bottom: 10px
}
.day .postTitle, .entrylist .entrylistPosttitle {
font-size: 19px
}
.day .postTitle > a, .entrylist .entrylistPosttitle > a {
position: relative
}
.day .postTitle > a:after, .entrylist .entrylistPosttitle > a:after {
content: "";
display: block;
width: 0;
height: 1px;
position: absolute;
left: 0;
bottom: -2px;
background: var(--theme-color);
transition: all .3s ease-in-out
}
.day .postTitle > a:hover:after, .entrylist .entrylistPosttitle > a:hover:after {
width: 100%
}
.day .postCon, .entrylist .entrylistPostSummary {
font-size: 16px;
padding: 10px 0
}
.day .postCon img, .entrylist .entrylistPostSummary img {
width: 200px;
height: 150px;
border-radius: 4px;
margin-left: 10px
}
.day .postCon a, .entrylist .entrylistPostSummary a {
border-bottom: 1px dotted var(--text-color);
padding: 2px 5px;
font-size: 14px;
margin-top: 10px;
display: table
}
.day .postCon a:after, .entrylist .entrylistPostSummary a:after {
content: " \00bb"
}
.day .postCon a:hover, .entrylist .entrylistPostSummary a:hover {
border-bottom: 1px dotted var(--theme-color)
}
.day .postDesc, .entrylist .entrylistItemPostDesc {
text-align: right
}
.day .postDesc > a, .entrylist .entrylistItemPostDesc > a {
display: none
}
.toc-container-header {
font-size: 20px;
font-weight: 700
}
#topics .postTitle {
font-size: 21px;
font-weight: 300
}
#topics .postBody {
font-size: 16px;
line-height: 1.75
}
#topics .postBody a {
color: var(--theme-color);
position: relative
}
#topics .postBody a:after {
content: "";
display: block;
width: 0;
height: 1px;
position: absolute;
left: 0;
bottom: -2px;
background: var(--theme-color);
transition: all .3s ease-in-out
}
#topics .postBody a:hover:after {
width: 100%
}
#topics .postBody h1 {
font-size: 21px
}
#topics .postBody h2 {
font-size: 20px
}
#topics .postBody h3 {
font-size: 19px
}
#topics .postBody h4 {
font-size: 18px
}
#topics .postBody h5 {
font-size: 17px
}
#topics .postBody h6 {
font-size: 16px
}
#topics .postBody p {
margin: 13px auto
}
#topics .postBody hr {
border-top: none;
border-bottom: 1px solid var(--border-color)
}
#topics .postBody blockquote {
border: none;
margin: 15px 0;
color: inherit;
border-radius: 4px;
padding: 1px 15px;
border-left: 4px solid var(--theme-color);
background-color: var(--panel-bg-color)
}
#topics .postBody em {
padding-right: 3px
}
#topics .postBody strong {
margin: 0 3px;
font-weight: 500
}
#topics .postBody img {
display: block;
margin: 15px 0 30px;
border-radius: 3px;
box-shadow: 0 1px 15px rgba(27, 31, 35, .15), 0 0 1px rgba(106, 115, 125, .35)
}
#topics .postBody .cnblogs-markdown pre {
white-space: pre;
position: relative
}
#topics .postBody ol li, #topics .postBody ul li {
margin: 3px 0
}
#topics .postBody table {
font-size: 15px;
width: 100%;
margin: 15px 0;
display: block;
overflow-x: auto;
border: none
}
#topics .postBody table::-webkit-scrollbar {
height: 4px !important
}
#topics .postBody table th {
background: var(--panel-bg-color);
white-space: nowrap;
font-weight: 400
}
#topics .postBody table td, #topics .postBody table th {
border: 1px solid var(--border-color);
padding: 6px 15px;
min-width: 100px
}
#topics .postBody h1 code, #topics .postBody h2 code, #topics .postBody h3 code, #topics .postBody h4 code, #topics .postBody h5 code, #topics .postBody h6 code, #topics .postBody li > code, #topics .postBody p > code, #topics .postBody table code {
line-height: 1.2;
font-family: consolas !important;
vertical-align: middle;
margin: 0 3px;
background-color: var(--code-bg-color) !important;
font-size: 14px !important;
padding: .2em .3em !important;
border-radius: 3px !important;
border: none !important
}
#topics .postBody #BlogPostCategory, #topics .postBody #EntryTag {
font-size: 14px
}
#topics .postBody #BlogPostCategory a, #topics .postBody #EntryTag a {
font-size: 13px;
border-radius: 4px;
padding: 4px 6px;
background-color: var(--panel-bg-color);
margin-right: 5px;
transform: none;
color: var(--text-color)
}
#topics .postBody #BlogPostCategory a:hover, #topics .postBody #EntryTag a:hover {
color: #fff;
background-color: var(--theme-color)
}
#topics .postBody #BlogPostCategory a:after, #topics .postBody #EntryTag a:after {
content: none
}
#topics .postBody #BlogPostCategory:before {
content: "\f07c";
font-family: FontAwesome;
opacity: .7
}
#topics .postBody #EntryTag:before {
content: "\f02c";
font-family: FontAwesome;
opacity: .7
}
#topics .postBody #post_next_prev {
font-size: 14px
}
#topics .postDesc {
border-top: 1px solid var(--border-color);
padding-top: 5px;
margin-top: 5px;
text-align: right
}
.cnblogs_code {
background-color: #333232;
padding-left: 1em;
padding-right: 1em;
border: none;
border-radius: 3px;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace !important
}
.cnblogs_code div {
background-color: transparent;
color: #656c73
}
.cnblogs_code img {
margin: 0 !important
}
.cnblogs_code pre {
color: #abb2bf;
font-family: inherit !important;
font-size: 15px !important
}
.cnblogs_code pre span {
font-family: inherit !important;
color: inherit !important
}
.cnblogs_code textarea {
font-family: inherit !important;
padding: 5px;
border: 1px solid #3e4c42;
color: #c5d4ef;
background-color: #282c34
}
.cnblogs_code textarea:focus {
outline: 0
}
.cnblogs_code .code_img_closed, .cnblogs_code .code_img_opened {
display: none !important
}
.cnblogs_code .cnblogs_code_toolbar {
width: 20px
}
.cnblogs_code .cnblogs_code_toolbar span {
padding-right: 0
}
.cnblogs_code .cnblogs_code_toolbar a:link img {
background-color: transparent !important
}
.cnblogs_code .cnblogs_code_collapse {
color: #656c73;
border: 1px solid #989fa6;
border-radius: 2px;
background-color: transparent;
display: inline-block;
cursor: pointer;
padding: 5px 5px 2px
}
#footer {
border-top: 1px solid var(--border-color);
font-size: 13px;
text-align: center;
padding: 15px 0
}
.louzhu {
color: var(--theme-color);
font-weight: 500
}
.feedbackListSubtitle .sendMsg2This {
background: transparent;
padding-left: 0;
font-size: 15px
}
.feedbackListSubtitle .sendMsg2This:before {
content: "✉️"
}
.feedbackManage {
float: right
}
.feedbackItem .feedbackCon {
margin-bottom: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--border-color)
}
.feedbackItem .feedbackCon .comment_vote {
margin-top: 12px
}
.blog_comment_body {
width: auto;
border-radius: 4px;
padding: 12px;
margin-left: 50px;
background-color: var(--panel-bg-color);
min-height: 19px
}
.blog_comment_body img {
border-radius: 3px
}
#taglist_main {
margin-top: 0
}
#taglist_main table {
width: 100%
}
#taglist_main table tr td {
padding: 5px 20px 5px 0
}
#taglist_main table tr td:last-child {
padding-right: 0
}
#taglist_main table tr td .small {
display: none
}
#taglist_main table tr td a {
display: block;
padding: 5px;
font-weight: 300;
line-height: 20px;
text-align: center;
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-color)
}
#taglist_main table tr td a:hover {
border: 1px solid var(--theme-color)
}
#div_digg {
margin: 0;
width: auto
}
#div_digg .buryit, #div_digg .diggit {
background: none;
height: auto;
width: auto;
min-width: 60px;
margin: 0;
font-size: 17px;
border-radius: 4px;
padding: 3px 10px;
background-color: var(--panel-bg-color);
transition: all .3s
}
#div_digg .buryit span, #div_digg .diggit span {
font-size: inherit;
color: inherit
}
#div_digg .buryit:hover, #div_digg .diggit:hover {
color: #fff;
background-color: var(--theme-color)
}
#div_digg .diggit:before {
content: "\f087";
font-family: FontAwesome;
opacity: .7
}
#div_digg .buryit {
margin-left: 15px
}
#div_digg .buryit:before {
content: "\f088";
font-family: FontAwesome;
opacity: .7
}
.topicListFooter {
text-align: right;
margin-top: 10px;
margin-right: 0
}
#nav_next_page, .pager {
color: var(--text-color);
text-align: right;
margin-right: 0 !important
}
#nav_next_page a, .pager a {
color: var(--text-color);
padding: 4px 7px;
border: 1px solid var(--border-color);
border-radius: 4px
}
#nav_next_page a:hover, .pager a:hover {
color: var(--theme-color);
border: 1px solid var(--theme-color)
}
.pager span.current {
padding: 3px 7px;
border: 1px solid var(--theme-color);
background-color: var(--theme-color);
border-radius: 4px;
margin: 0 0 0 5px
}
.feedback_area_title {
font-size: 20px;
border-bottom: 1px solid var(--border-color);
margin: 20px 0;
padding-bottom: 5px
}
#commentform_title {
background-image: none;
padding-left: 0;
font-size: 20px
}
#commentform_title > a {
display: none
}
.commentform #tip_comment {
color: var(--theme-color) !important;
margin: 15px 0;
display: block
}
.commentform .comment_textarea {
width: 100%;
border: 1px solid var(--border-color);
background-color: transparent;
padding: 0
}
.commentform .comment_textarea:focus {
outline: 0
}
.commentform .commentbox_title {
border-bottom: 1px solid var(--border-color)
}
.commentform .commentbox_title .commentbox_title_left .commentbox_tab {
margin: 0;
padding: 5px 15px;
color: var(--text-color);
border-bottom: none
}
.commentform .commentbox_title .commentbox_title_left .active {
color: var(--theme-color)
}
.commentform .commentbox_title .commentbox_title_right {
margin: 0 10px 0 0
}
.commentform .commentbox_title .commentbox_title_right .comment_svg:hover, .commentform .commentbox_title .commentbox_title_right .comment_svg_stroke:hover {
fill: var(--theme-color);
stroke: var(--theme-color)
}
.commentform #tbCommentBody, .commentform #tbCommentBodyPreview {
padding: 10px 15px;
background: transparent;
color: var(--text-color);
font-weight: 300
}
.commentform #tbCommentBodyPreviewBody {
margin-left: 0;
min-height: 235px;
background-color: transparent
}
.commentform #btn_comment_submit {
width: auto;
height: auto;
border-width: 0;
cursor: pointer;
color: #fff;
background-color: var(--theme-color);
border-color: var(--theme-color);
font-weight: 300;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 5px 17px;
font-size: 13px;
border-radius: 4px;
outline: none;
transition: all .3s
}
.commentform #btn_comment_submit:hover {
opacity: .7
}
.commentform .comment_my_posted > img {
display: none
}
.commentform .bq_post_comment {
margin-top: 5px;
font-size: 13px;
display: block;
color: var(--text-color);
background-color: var(--border-color);
border: none;
border-radius: 4px;
padding: 1px 15px
}
::-webkit-scrollbar {
width: 3px
}
::-webkit-scrollbar-thumb {
background-color: var(--text-color)
}
.github-corner:hover .octo-arm {
-webkit-animation: octocat-wave .56s ease-in-out;
animation: octocat-wave .56s ease-in-out
}
.github-corner svg {
fill: var(--theme-color);
z-index: 999;
cursor: pointer;
position: fixed;
top: 0;
border: 0;
left: 0;
transform: scaleX(-1)
}
@-webkit-keyframes octocat-wave {
0%, to {
transform: rotate(0)
}
20%, 60% {
transform: rotate(-25deg)
}
40%, 80% {
transform: rotate(10deg)
}
}
@keyframes octocat-wave {
0%, to {
transform: rotate(0)
}
20%, 60% {
transform: rotate(-25deg)
}
40%, 80% {
transform: rotate(10deg)
}
}
.esa-mobile-menu {
display: none;
position: fixed;
top: 17px;
right: 20px;
height: 25px;
width: 25px;
text-align: center;
line-height: 25px;
z-index: 941113;
font-size: 1.5em;
cursor: pointer;
color: var(--text-color);
border-radius: 4px
}
.esa-profile-avatar {
border-radius: 4px;
width: 100%
}
.esa-contents {
position: fixed;
top: 0;
right: 0;
bottom: 0;
background-color: var(--blog-bg-color);
border-left: 1px solid var(--border-color);
overflow-y: auto;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 1rem 0;
width: 252px;
transform: translate3d(252px, 0, 0);
z-index: 1000
}
.esa-contents ul {
padding: 0 15px;
overflow-y: auto
}
.esa-contents ul li {
padding: 5px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
color: var(--text-color)
}
.esa-contents ul li .level1 {
margin-left: 0
}
.esa-contents ul li .level2 {
margin-left: 10px
}
.esa-contents ul li .level3 {
margin-left: 26px
}
.esa-anchor {
opacity: 0;
transition: opacity .3s ease;
margin-left: 8px
}
.active {
transform: translateZ(0)
}
.active, .noactive {
transition-duration: 378ms
}
.noactive {
transform: translate3d(252px, 0, 0)
}
.cnblogs-markdown .hljs, .cnblogs-markdown .hljsln {
display: block;
overflow-x: auto;
padding: .7em 1em .7em 3em !important;
background: #2b2b2b !important;
border: 1px solid #2c2a2a !important;
color: #bababa;
font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
font-size: 15px !important
}
.cnblogs-markdown .hljs::-webkit-scrollbar, .cnblogs-markdown .hljsln::-webkit-scrollbar {
height: 4px
}
.cnblogs-markdown .hljs.ln-hide {
padding: .7em 1em !important
}
.ln-bg {
z-index: 1;
top: 0;
height: 100%;
background: #333;
border-radius: 4px 0 0 4px
}
.ln-bg, .ln-num {
position: absolute;
left: 0;
width: 2.4em
}
.ln-num {
z-index: 2;
text-align: center;
display: inline-block;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.ln-num:before {
color: #777;
font-style: normal;
font-weight: 400;
text-align: center;
content: attr(data-num)
}
.hljs-comment, .hljs-quote {
color: #5c6370;
font-style: italic
}
.hljs-doctag, .hljs-formula, .hljs-keyword {
color: #c678dd
}
.hljs-deletion, .hljs-name, .hljs-section, .hljs-selector-tag, .hljs-subst {
color: #e06c75
}
.hljs-literal {
color: #56b6c2
}
.hljs-addition, .hljs-attribute, .hljs-meta-string, .hljs-regexp, .hljs-string {
color: #98c379
}
.hljs-built_in, .hljs-class .hljs-title {
color: #e6c07b
}
.hljs-attr, .hljs-number, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-pseudo, .hljs-template-variable, .hljs-type, .hljs-variable {
color: #d19a66
}
.hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-symbol, .hljs-title {
color: #61aeee
}
.hljs-emphasis {
font-style: italic
}
.hljs-strong {
font-weight: 700
}
.hljs-link {
text-decoration: underline
}
.hljs-built_in, .hljs-keyword, .hljs-name, .hljs-selector-tag, .hljs-tag {
color: #7171bf
}
.esa-post-signature {
padding: 12px 24px 12px 20px;
margin-top: 15px;
font-size: 15px;
background-color: var(--panel-bg-color);
position: relative;
border-radius: 4px;
border-left: 4px solid var(--theme-color)
}
.esa-post-signature p {
margin: 0 !important
}
.esa-post-signature a {
color: var(--text-color) !important
}
.esa-sponsor {
position: relative;
width: 100%;
height: 85px;
margin: 100px 0
}
.esa-sponsor .title {
text-align: center;
margin-bottom: 15px;
font-size: 17px;
font-weight: 400;
opacity: .8
}
.esa-sponsor .box {
position: absolute;
left: calc(50% - 101px);
border: 1px solid var(--border-color);
border-radius: 4px
}
.esa-sponsor .box li {
width: 60px;
float: left;
margin: 0 !important;
text-align: center;
border-left: 1px solid var(--border-color);
background: transparent;
transition: background .3s ease;
cursor: pointer;
line-height: 0;
opacity: 1;
list-style: none;
margin: 0;
padding: 6px 3px
}
.esa-sponsor .box li svg {
opacity: .5
}
.esa-sponsor .box li:hover {
background: var(--panel-bg-color)
}
.esa-sponsor .box li:first-child {
border-width: 0
}
.esa-sponsor .qrshow {
position: absolute;
width: 200px;
height: 200px;
background: var(--blog-bg-color);
cursor: pointer;
left: calc(50% - 100px);
top: -170px;
z-index: 999;
display: none;
box-shadow: 0 1px 15px rgba(27, 31, 35, .15), 0 0 1px rgba(106, 115, 125, .35)
}
.esa-sponsor .qrshow .noconfig {
position: absolute;
top: 85px;
left: 60px;
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 0 10px
}
.esa-sponsor .qrshow img {
height: 100%;
width: 100%;
box-shadow: none !important;
margin: 0 !important
}
.esa-comment-avatar {
float: left
}
.esa-comment-avatar img {
height: 43px;
width: 43px;
border-radius: 4px;
transition: all .5s ease-out;
-webkit-transition: all .6s ease-out
}
.esa-comment-avatar img:hover {
border-radius: 50%
}
.esa-toolbar {
position: fixed;
bottom: 30px;
right: 30px;
width: 45px;
height: 45px;
z-index: 1001
}
.esa-toolbar .bars {
position: relative;
width: inherit;
height: inherit;
cursor: pointer;
border-radius: 50%;
background: var(--theme-color);
z-index: 1;
text-align: center;
font-size: 24px;
line-height: 46px;
color: #fff;
transition: all .3s ease;
box-shadow: 0 2px 4px 1px rgba(0, 0, 0, .2)
}
.esa-toolbar .contents, .esa-toolbar .mode, .esa-toolbar .skin, .esa-toolbar .up {
position: absolute;
cursor: pointer;
bottom: 0;
right: 0;
height: 35px;
width: 35px;
text-align: center;
line-height: 35px;
z-index: 0;
opacity: 0;
border-radius: 4px;
box-shadow: 0 2px 4px 1px rgba(0, 0, 0, .2);
background-color: var(--panel-bg-color);
transition: all .3s ease
}
.esa-toolbar .contents:hover, .esa-toolbar .mode:hover, .esa-toolbar .skin:hover, .esa-toolbar .up:hover {
color: #fff;
background-color: var(--theme-color)
}
.esa-toolbar .bars-show {
transform: rotate(270deg)
}
.esa-toolbar .up-show {
transform: translate3d(0, -200%, 0);
opacity: 1
}
.esa-toolbar .mode-show {
transform: translate3d(-140%, -140%, 0);
opacity: 1
}
.esa-toolbar .skin-show {
transform: translate3d(-200%, 0, 0);
opacity: 1
}
.esa-toolbar .contents-show {
transform: translate3d(-350%, 0, 0);
opacity: 1
}
.esa-toolbar .skin-popup {
display: none;
position: fixed;
left: calc(50% - 100px);
bottom: 0;
padding: 25px;
opacity: 1;
width: 150px;
height: auto;
border-radius: 15px 15px 0 0;
background-clip: border-box;
box-shadow: 0 2px 4px 1px rgba(0, 0, 0, .2);
background-color: var(--panel-bg-color)
}
.esa-toolbar .skin-popup .item {
text-align: center
}
.esa-toolbar .skin-popup .title {
font-size: 17px;
margin-bottom: .5em
}
.esa-toolbar .skin-popup .themes button {
font-size: 1em;
position: relative;
width: calc(1.75em - 5px);
height: calc(1.75em - 5px);
border-radius: .15em;
cursor: pointer;
margin: 2.5px;
flex-shrink: 0;
justify-self: center;
transition: all .15s;
overflow: hidden;
background: transparent;
z-index: 1;
box-sizing: border-box;
outline: none;
border: none
}
@-webkit-keyframes loading {
0% {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes loading {
0% {
opacity: 0
}
to {
opacity: 1
}
}
.dark-loading {
background: #222
}
.light-loading {
background: #fff
}
.dark-loading, .light-loading {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 99999
}
.dark-loading .box h2, .light-loading .box h2 {
color: #777;
margin: 0;
font: .8em verdana;
text-transform: uppercase;
letter-spacing: .1em;
text-align: center
}
.dark-loading .box span, .light-loading .box span {
display: inline-block;
vertical-align: middle;
width: .6em;
height: .6em;
margin: .19em;
background: #007db6;
border-radius: .6em;
-webkit-animation: loading 1s infinite alternate;
animation: loading 1s infinite alternate
}
.dark-loading .box span:nth-of-type(2), .light-loading .box span:nth-of-type(2) {
background: #008fb2;
-webkit-animation-delay: .2s;
animation-delay: .2s
}
.dark-loading .box span:nth-of-type(3), .light-loading .box span:nth-of-type(3) {
background: #009b9e;
-webkit-animation-delay: .4s;
animation-delay: .4s
}
.dark-loading .box span:nth-of-type(4), .light-loading .box span:nth-of-type(4) {
background: #00a77d;
-webkit-animation-delay: .6s;
animation-delay: .6s
}
.dark-loading .box span:nth-of-type(5), .light-loading .box span:nth-of-type(5) {
background: #00b247;
-webkit-animation-delay: .8s;
animation-delay: .8s
}
.dark-loading .box span:nth-of-type(6), .light-loading .box span:nth-of-type(6) {
background: #5ab027;
-webkit-animation-delay: 1s;
animation-delay: 1s
}
.dark-loading .box span:nth-of-type(7), .light-loading .box span:nth-of-type(7) {
background: #a0b61e;
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s
}
#cb_post_title_url {
--blog-bg-color: #fff;
--text-color: #596172;
--border-color: #eef2f8;
--catalog-bg-color: #fff;
--panel-bg-color: #f8f8f8;
--code-bg-color: #f1f1f1;
--theme-color: #42b983;
word-break: break-word;
color: rgba(47, 47, 47, 1);
word-wrap: break-word;
padding: 0;
line-height: 1.5;
font-weight: bold;
text-rendering: optimizelegibility;
font-size: 3rem;
margin: 0.7em 0;
font-family: "Noto Sans CJK SC", "Helvetica Neue", Helvetica, Tahoma, Arial, "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "WenQuanYi Micro Hei", Heiti, "黑体", sans-serif;
text-align: center;
}
博客侧边栏公告-支持HTML代码
<script>
window.$silence = {
avatar: 'https://pic.cnblogs.com/avatar/1746488/20210703185345.png',
favicon: 'https://files-cdn.cnblogs.com/files/yjlaugus/favicon.ico',
github: 'https://github.com/lczmx',
defaultTheme: 'c',
defaultMode: 'light',
hljsln: true,
catalog: {
enable: true,
index: true,
active: false,
levels: ['h1', 'h2', 'h3']
},
signature: {
enable: true,
author: "忞翛",
license: ['署名-非商业性使用-相同方式共享 4.0 国际', 'https://creativecommons.org/licenses/by-nc-sa/4.0/'],
remark: '欢迎各位大佬评论交流',
},
navbars: [
{
title: '博客园',
url: 'https://www.cnblogs.com/'
},
{
title: '首页',
url: 'https://www.cnblogs.com/lczmx/'
},
{
title: '归档',
url: 'https://www.cnblogs.com/lczmx/p/'
},
{
title: '更多',
chilren: [
{
title: '我的笔记',
target: '_blank',
url: 'https://gitee.com/lczmx/Note/',
},
{
title: '标签',
target: '_blank',
url: 'https://www.cnblogs.com/lczmx/tag/',
},
{
title: 'Github',
target: '_blank',
url: 'https://github.com/lczmx',
}
]
}
],
};
</script>
<script src="https://files.cnblogs.com/files/lczmx/silence.min.js"></script>
页首HTML代码
<div class="light-loading">
<div class="box">
<h2>Loading</h2>
<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
</div>
</div>
页脚HTML代码
<script>
// 颜色列表
window.$themeColor = {
a: "#2D8CF0",
b: "#FA7298",
c: "#42B983",
d: "#607D8B",
e: "#5E72E4",
f: "#FF9700",
g: "#FF5722",
h: "#009688",
i: "#673BB7",
j: "#906f61",
};
$(document).ready(function(){
var color = "#42B983"
// 标题颜色
$("#cnblogs_post_body h1").each(function (){
if ($(this).attr("class") == "story_title") {
}else {
$(this).css({"margin-left": "-10px", "display": "inline-block",
"width":"auto", "height": "40px", "background-color": color,
"border-bottom-right-radius": "100px", "color": "rgba(255, 255, 255, 1)",
"padding-right": "30px", "padding-left": "30px", "line-height": "40px", "font-size": "16px"})
}
});
// 初始化下划线
$("#cnblogs_post_body h2").each(function (){
$(this).css(
{"border-bottom": "3px solid " + color})
});
// 初始化下划线
$("#cnblogs_post_body h3").each(function (){
$(this).css(
{"border-bottom": "1px solid " + color})
});
});
window.onload=function(){
// 动态改变
$(".themes button").click(function(e) {
let theme = $(this).attr("data-theme");
let color = window.$themeColor[theme];
$("#cnblogs_post_body h1").each(function (){
if ($(this).attr("class") == "story_title") {
}else {
$(this).css({"margin-left": "-10px", "display": "inline-block",
"width":"auto", "height": "40px", "background-color": color,
"border-bottom-right-radius": "100px", "color": "rgba(255, 255, 255, 1)",
"padding-right": "30px", "padding-left": "30px", "line-height": "40px", "font-size": "16px"})
}
});
// 动态改变下划线
$("#cnblogs_post_body h2").each(function (){
$(this).css(
{"border-bottom": "3px solid " + color})
});
// 动态改变下划线
$("#cnblogs_post_body h3").each(function (){
$(this).css(
{"border-bottom": "1px solid " + color})
});
});
// 动态变化标题颜色
$(".mode-show").click(function(e) {
if (window.$silence.defaultMode === "light") {
// light ==> dark
window.$silence.defaultMode = "dark"
$("#cb_post_title_url").css({"color": "#D8D8D8"})
}else{
// dark ==> light
window.$silence.defaultMode = "light"
$("#cb_post_title_url").css({"color": "#2F2F2F"})
}
});
}
</script>