Java教程

博客园 | 美化教程自定义样式

本文主要是介绍博客园 | 美化教程自定义样式,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1. 历史主题

⚠️ 注: 此主题是博客园默认皮肤custom下改进的

页面定制css

#loading {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
  background-color: #f4f5f5;
  pointer-events: none;
}
.loader-inner {
  will-change: transform;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
  background-color: #3742fa;
  border-radius: 50%;
  animation: scaleout 0.6s infinite ease-in-out forwards;
  text-indent: -99999px;
  z-index: 999991;
}
@keyframes scaleout {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}




#catalog ul {
    background-color: #ccc6f9;
    max-height: 550px;
    padding: 10.098px 14.418px;
    overflow-y: scroll;;
    overflow-x: hidden;
    margin: 0px -13px 0px -65px;
}

/*  --------------自定义样式----------------- */

/*  code fence style       */
#cnblogs_post_body .hljs-ln {
   display: block !important;
    color: #fbfbfb !important;
    background: #000000 !important;
    border: none !important;
    padding: 10px 10px 0 !important;
    font-weight: normal;
    border-radius: 11px;
}
/*  图片样式    */
#cnblogs_post_body  img{
    border-radius: 29px !important;
    box-shadow: 1px 11px 16px #4c4c4c85;
    width: 70%;
    height: auto;

}

/*  水平分页线样式 */
.blogpost-body  hr {
   border-top: 3px dashed #bb39f1 !important;
}

博客侧边栏公告

<script src="https://guangzan.gitee.io/awescnb/index.js"></script>
 
 
<script>
$.awesCnb({
// 基本配置,在线切换主题
theme: {
//name: 'view', // 极客风格主题
//name: 'view', //宽阔视野主题
//name: 'simple', //  简约风格主题
name: 'reacg', //二次元风格
 //name: 'bilibili',
 //name: 'geek',
 //name: 'element',
        color: '#FFB3CC',
        title: '',
        contentSize: 'mid',
        //背景图片地址
        headerBackground: 'https://www.www.zyiz.net/i/l/?n=20&i=blog/2129350/202009/2129350-20200901200713499-999477266.jpg',
        //头像图片地址
        avatar: 'https://pic.cnblogs.com/avatar/1890468/20191205150715.png',
        favicon: '',
    },
links: [
 {
        name: '收藏夹',
        link: 'https://wz.cnblogs.com/',
    }
    //,
    //{
    //    name: '自定义菜单名',
    //    link: '跳转链接',
    //}
],
notice:{
    enable: true
},
signature: {
    enable: false, //是否开启个性签名
    contents: [
    "个性签名、<b style='color:#ff6b81'>颜色,加粗的</b>"
    ],
},
darkMode: {
    enable: true    
},
postTopimage: {
    enable: false,
    imgs: [],
    position: 'top',
},
highLight: {
    dark: 'atomOneDark',
 //dark:'panda'
   // light: 'atomOneLight',
},
lineNumbers: {
    enable: true
},
catalog: {
    enable: true,
    position: 'left',
},
back2top: {
    enable: true,
    type: 'simple',
},
tools: {
    enable: true,
    initialOpen: false,
    draggable: true,
},
topProgress: {
    enable: true,
    page: 'all',
    agent: 'pc',
    background: '#FFB3CC',
    height: '5px',
},
 notice:{
    enable:true,
    text:['

	
这篇关于博客园 | 美化教程自定义样式的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!