资讯专栏INFORMATION COLUMN

分享自用博客园主题样式

CoXie / 2575人阅读

摘要:博客皮肤选择博客皮肤选择因为简单,所以爱在页面定制代码中填入以下内容在页面定制代码中填入以下内容重要提示侧边栏蓝色风格,有的模块可能遗漏,需要请自行在样式中的侧边栏加上对应的或者整体布局整体布局非阅读区域去掉白色背景博

1. 博客皮肤选择 SimpleMemory

因为简单,所以爱~

2. 在”页面定制CSS代码“中填入以下内容

重要提示:侧边栏蓝色风格,有的模块可能遗漏,需要请自行在CSS样式中的“侧边栏”加上对应DIV的id或者class

/* **********************
 * 整体布局
 * **********************/

/* 整体布局 */
body {
  background:#F6F6F6;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica
      Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
}

#home {
  max-width: 1140px;
  padding: 15px;
  background: transparent;
  box-shadow: none;
  margin-top: 0;
  width: auto;
}

#main {
  margin-top: 15px;
}

#mainContent .forFlow {
  padding-right: 20px;
}

/* 非阅读区域去掉白色背景 */
.newsItem,
.catListEssay,
.catListLink,
.catListNoteBook,
.catListTag,
.catListPostCategory,
.catListPostArchive,
.catListImageCategory,
.catListArticleArchive,
.catListView,
.catListFeedback,
.mySearch,
.catListComment,
.catListBlogRank,
.catList,
.catListArticleCategory {
  background-color: transparent;
}

/* **********************
 * 博客页首
 * **********************/

/* 隐藏系统标题 */
#blogTitle {
  display: none;
}

/*顶部 */
.c-portrait {
  text-align: center;
  padding: 80px 0;
  background: #39424b;
  color: #fff;
  margin-bottom: -40px;
}

/* 标题和签名 */
.c-portrait h1 {
  font-size: 25px;
  font-weight: bold;
  margin: 5px 0;
}

.c-portrait h1 a {
  color: #fff;
}

.c-portrait h2 {
  font-size: 16px;
  margin: 7px 0 10px;
  color: #ccc;
}

/* **********************
 * 导航栏
 * **********************/

#navigator {
  padding: 0 10px;
}

#stats_article_count {
  display: none;
}

/* **********************
 * 侧边栏
 * **********************/
.catListLink,#sidebar_scorerank,#blog-news,#sidebar_recentposts,#sidebar_postarchive,
.mySearch,#blog-calendar,#topview_posts_wrap,#sidebar_topdiggedposts,
.mysearch,#sidebar_articlecategory,#sidebar_postcategory {
    font-weight: normal;
    line-height: 1.2;
    font-size: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
    background-color: #fff;
    padding: 0 0 0 15px;
    border: 1px solid #eaeaea;
}

#blog-calendar{
    padding:0;
    width: 100%;
    padding-bottom: 5px;
    margin-bottom: 35px;
    border: 1px solid #EDEDED;
    box-shadow:none;
 
}

div#profile_block{
    padding: 10px 0 10px 0px;
}

#sideBar h3 {
    font-size: 14px;
    background-color: #428BCA;
    padding: 5px;
    color: #fff;
}

.catListTitle{
   font-weight: normal;
    line-height: 1.2;
    font-size: 100%;
   margin-top:0;
    margin-bottom: 10px;
    text-align: center;
    width: 80px;
}

#sideBar {
  width: 250px;
  margin-top: 0;
}

#sideBar a {
  color: inherit;
}

/* 隐藏侧边公告标题 */
.newsItem .catListTitle {
  display: none;
}

/* 增加列表项间距 */
.sidebar-block li {
  margin-bottom: 5px;
}

/* 支持反对 */
#div_digg {
    position: fixed;
    right: 30px;
    bottom: 50px;
    background: #fff;
    padding: 20px 20px 15px;
    border-radius: 5px;
    border: 1px solid #eaeaea !important;
    box-shadow:none !important;

}
/* **********************
 * 文章列表
 * **********************/

.entrylistTitle{
    font-weight: bold;
    font-size: 18px;
    /* font-size: 100%; */
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
    background-color: #fff;
    padding: 0 0 0 15px;
    border: 1px solid #eaeaea;
    color: #FF5E52;
}
.entrylistPosttitle {
    padding-left: 15px;
    margin-bottom: 10px;
    border-left: 8px solid #009688;
    font-size: 20px;
    width: 100%;
}
.entrylistPosttitle a:link, .entrylistPosttitle a:visited, .entrylistPosttitle a:active {
    color: #393D49;
    transition: all 0.4s linear 0s;
    font-weight: bold;
}

/* 文章列表 */
#topics .postTitle {
  font-size: 28px;
  margin: 35px 0 30px;
  padding-left: 0;
}

#mainContent .day {
  padding: 15px 20px;
  background: #fff;
}

#mainContent .day .postTitle a {
  display: inline-block;
}

/* **********************
 * 文章详情
 * **********************/

pre {
  margin-bottom: 1.35em;
}

pre code {
  padding: 10px 16px !important;
}

.post {
    background: #fff;
    padding: 0 60px 60px;
    border-bottom: 1px solid #eee;
}

/* 文章标题 */
#topics .postTitle {
    font-size: 28px;
    margin: 35px 0 30px;
    padding-left: 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.postTitle {
  border-left: 8px solid #FF5E52;
  margin-bottom: 5px;
  font-weight: bold;
  line-height: 1;
  box-sizing: border-box;
}

.postTitle a:hover {
  margin-left: 0;
}

.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    color: #393D49;
    transition: all 0.4s linear 0s;
}

/* 去除首行缩进 */
.postBody p,
.postCon p {
  text-indent: 0;
}

/* 重写引用块样式 */
.postBody blockquote {
  min-height: auto;
  border-top: none;
  border-bottom: none;
  border-right: none;
  padding: 0 0 0 1em;
}

/* 增加底部留白 */
#cnblogs_post_body {
  padding-bottom: 5px;
}

/* 防止图片溢出 */
#cnblogs_post_body img {
  max-width: 100%;
}

/* 文章底部信息 */
.postDesc {
  margin-top: 0;
}

/* **********************
 * 评论
 * **********************/

#comment_form_container .comment_textarea {
  width: 100%;
}

#commentform_title {
    font: normal normal 16px/35px "Microsoft YaHei";
    margin: 10px 0 30px;
    background-image: none;
    padding: 0;
    border-bottom: 1px solid #eaeaea;
    border-left: 8px solid #393D49;
    padding-left: 15px;
}
.comment_vote {
  padding-right: 2px;
  font-size: 14px;
  margin-top: 10px;
}

.comment_vote a.comment_digg {
  color: #f80;
}

.feedbackItem {
  margin: 20px 0 25px;
  background: #fff;
  padding: 10px 15px;
}

.feedbackCon {
  font-size: 13px;
  border-bottom: 0;
  padding: 10px 5px 0 5px;
  text-align: justify;
}

/* **********************
 * 文章评价
 * **********************/

#div_digg {
  position: fixed;
  right: 30px;
  bottom: 50px;
  background: #fff;
  padding: 20px 20px 15px;
  border-radius: 5px;
  border: 1px solid #888;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.3);
}

/* **********************
 * 隐藏广告
 * **********************/

#ad_t2,
#opt_under_post,
.c_ad_block,
#under_post_news,
#under_post_kb {
  display: none !important;
}

/* **********************
 * 适配手机
 * **********************/

@media (max-width: 767px) {
  #home {
    padding-left: 0;
    padding-right: 0;
  }
  #div_digg {
    width: auto;
    padding: 0;
    right: -25px;
    bottom: 3px;
    box-shadow: none;
  }
  #div_digg .buryit {
    display: none;
  }
  #mainContent .forFlow {
    padding-right: 0;
  }
  #mainContent .post {
    padding: 0 20px;
  }

  #sideBar,
  #blog-comments-placeholder {
    padding: 0 15px;
  }
}

3. 在“首页Html代码”中填入以下内容:

易码

舒心、快乐,比什么都重要

说明:此样式非首创,收集了网上的资源结合自己喜好修改一番。

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/1278.html

相关文章

  • 博客代码黑色主题高亮设置

    摘要:之前做了博客园自定义样式的相关设置,博客园界面变得顺眼一点了。但是代码块还是看着比较变扭,习惯黑色主体编辑器的我,颜控的我,不能忍啊。 碎碎念: 貌似现在喜欢写博客之前先叨叨一下。。。。之前做了《博客园自定义样式》的相关设置,博客园界面变得顺眼一点了。 但是代码块还是看着比较变扭,习惯黑色主体编辑器的我,颜控的我,不能忍啊。所以还是改改改。 小提示:具体的操作实现参考GitHub:h...

    Blackjun 评论0 收藏0
  • 前端小白也能快速学会的博客博客美化全攻略

    摘要:前端小白也能快速学会的博客园博客美化全攻略呦,博客园的自我修养是什么第一条,别只顾收藏和偷师呀,记得点推荐或关注本人喔美化方法论简介一般而言,需要选一个默认的,然后在该基础上调整。或者也可进博客园园子页面,发状态博客园团队,申请开通权限。 前端小白也能快速学会的博客园博客美化全攻略 A呦V,博客园er的自我修养是什么?第一条,别只顾收藏和偷师呀,记得点推荐或关注本人喔~ 美化方法论简...

    StonePanda 评论0 收藏0
  • 个人博客样式、背景及细节美化过程

    摘要:踩坑注意导入后要勾选禁用默认否则会造成各种显示问题我的文件可以右键查看网页源代码获取,使用时基于主题,懒得折腾的可以直接下载。主页美化: 主要参考嘻哈烧饼的美化,在TA的基础上增加了对主页背景、色调以及侧边栏的调整 原帖地址:https://www.cnblogs.com/seanshao/p/5716543.html 修改博客园背景的代码如下(在原帖使用的css文件中修改): body ...

    番茄西红柿 评论0 收藏0
  • WordPress自媒体博客主题 - DUX和XIU正版主题六折 JustNews主题半价

    摘要:且有网友有准备选择网站主题,如果是自媒体博客之类的网站,建议选择目前老蒋也有在用的和主题,或者是主题。这次双十一活动期间,可以绑定个域名,等同于半价,可以自用个站或者和朋友合购。目前双十一是年度较低的活动,全场主题六折。对于我们站长来说,双十一肯定不是去买衣服鞋子等百货商品,而是采购云服务产品,包括云服务器、数据库、CDN、流量包,包括我们看中的网站主题模板和插件软件工具。这几天我们还是比较...

    zhjx922 评论0 收藏0
  • 博客申请及页面定制CSS

    摘要:二博客园申请及开通权限遇到的第一个问题就是填写申请博客理由,问度娘要了一个回答粘贴上居然被拒了,无奈只好自己写了打算在博客里记录下的新技能和遇到的问题解决方案,帮自己沉淀同时也分享给他人,还望审核员此次能够予以通过。一、背景   刚刚工作满一年,感觉到工作后在学习方面和之前还是有些不一样的:在校会有系统的整理归纳基础知识和逐步学习的一个过程,最后考试进行比较全面的知识掌握程度检测;而在工作上...

    Kyxy 评论0 收藏0

发表评论

0条评论

CoXie

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<