1. 进入博客园个人后台,选择设置
找不见博客园后台的,可以先进入博客园首页
,点击头像下的账号设置
,进入后左侧列表有博客设置
,点击后可进入。
2. 基本设置里,选择皮肤 CodingLife
3. 点开页面定制css代码,将下面代码粘贴进去后,保存即可
body {
min-height: 100%;
}
a:-webkit-any-link {
color: inherit;
}
#navList a:hover {
background: linear-gradient(to bottom, #ffffff, #f0eef5);
height: 40px;
line-height: 40px;
margin-top: 10px;
border-radius: 5px;
}
#profile_block a {
color: #169fe6;
}
#profile_block a:hover {
color: #45bcf9;
border-bottom-color: #45bcf9;
}
#blogTitle {
display: none;
}
#navList a:link {
text-shadow: 3px 3px 3px #45bcf9;
}
.day {
border-radius: 10px;
margin-bottom: 20px;
}
#profile_block {
border-radius: 0 0 10px 10px;
}
#sideBarMain > div,
#blog-sidecolumn > div > div {
background: #f0eef5;
}
/*右侧日历*/
#sideBarMain > div#blog-calendar {
padding: 10px;
background: #fff;
border-radius: 10px;
border: 1px solid #dedede;
}
#blogCalendar a:link,
.postCon a:link,
a.c_b_p_desc_readmore {
color: #169fe6;
}
#blogCalendar a:hover,
a.c_b_p_desc_readmore {
color: #45bcf9;
}
/*无日历时去间距*/
#blog-news {
margin-bottom: 0;
}
/*右侧卡片*/
.sidebar-block {
background-color: #f0eef5;
}
#sideBarMain > div, #blog-sidecolumn > div > div {
background: #f0eef5;
border-radius: 10px;
overflow: hidden;
}
#blog-sidecolumn > div > div > div,
#blog-sidecolumn > div > div > ul {
background: #ffffff;
border-radius: 0 0 10px 10px;
}
/*标签*/
.sidebar-block ul li {
padding: 10px 10px 10px 20px;
}
.sidebar-block ul li a:hover {
color: #45bcf9;
border-bottom: none;
}
#blog-sidecolumn > div#sidebar_toptags > div > ul,
#blog-sidecolumn > div > div#sidebar_postcategory > ul {
display: flex;
flex-wrap: wrap;
padding: 5px 10px;
}
#sidebar_toptags ul li,
#sidebar_postcategory ul li {
padding: 5px;
border: none;
}
#sidebar_toptags ul li:hover,
#sidebar_postcategory ul li:hover {
background: #fff;
cursor: inherit;
}
#sidebar_toptags ul li a,
#sidebar_postcategory ul li a {
padding: 3px 10px;
line-height: 1.5;
background: #f0eef5;
border-radius: 5px;
color: #169fe6;
}
#sidebar_toptags ul li a:hover,
#sidebar_postcategory ul li a:hover {
color: #ffffff;
cursor: pointer;
background: #169fe6;
border-bottom: none;
}
#widget_my_google,
.sidebar-block ul {
border-radius: 0 0 10px 10px;
}
.catListTitle {
border-radius: 10px 10px 0 0;
}
/*页脚*/
#footer {
background: #169fe6;
display: flex;
justify-content: center;
color: #fff;
}
#poweredby {
margin-left: 100px;
}
/*正文*/
.postTitle a:link {
color: #555;
}
.postTitle a:hover {
color: #45bcf9;
text-decoration: none;
}
#topics,
#comment_form_container,
.under-post-card {
border-radius: 10px;
}
#cnblogs_post_body a,
#cnblogs_post_body a:link {
text-decoration: none;
color: #169fe6;
}
#cnblogs_post_body a:hover {
color: #45bcf9;
}
#cnblogs_post_body p a:hover,
#cnblogs_post_body ol li a:hover,
#cnblogs_post_body ul li a:hover {
border-bottom: none;
}
/*markdown*/
#topics .postTitle {
font-weight: bold;
}
#cnblogs_post_body h2 {
padding-bottom: 0.5rem;
border-bottom: 1px double rgba(0,0,0,.1);
}
.cnblogs-markdown :not(pre,div,td)>code,
.blogpost-body :not(pre,div,td)>code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
margin: 0;
}
.cnblogs-markdown h1>code, .cnblogs-markdown h2>code,
.blogpost-body h1>code, .blogpost-body h2>code {
font-size: inherit;
}
#topics .postBody blockquote {
border-left-width: 3px;
color: #555;
}
#topics .postBody blockquote p {
color: #555;
}
/*评论*/
.comment_textarea {
max-width: inherit;
}
4. 参考1,进入博客设置旁边的 选项
,点进入之后关闭 日历
和 分类
5. 增加鼠标动效
在页脚html代码里粘贴下列代码后保存:
<!-- 鼠标动效 -->
<script src="https://files.cnblogs.com/files/wkfvawl/mouse-click.js"></script>
<canvas width="1777" height="841" style="position: fixed; left: 0px; top: 0px; z-index: 2147483647; pointer-events: none;"></canvas>
现在快打开你的博客,开始预览你的主题吧!
标签:sidebar,ul,color,博客园,修改,10px,div,分享,border From: https://www.cnblogs.com/weizwz/p/16903556.html