Typecho+Handsome主题美化

Typecho+Handsome主题美化,第1张

本文内容大部分整理互联网的美化教程,其中包含本站个人个性化自定义设置,因此仅供参考,你需要了解设置里每句的具体含义,请勿无脑照抄; 

体验地址https://www.thinkdoc.vip

具体美化内容如下:

1、博主的介绍闪字特效

选择设置外观-高级设置



    
    

2、左侧边栏导航

选择设置外观-高级设置


{"name":"相册","class":"image","link":"https://www.thinkdoc.vip/archives/photo.html","target":"_self"},
{"name":"日记","class":"lock","link":"https://www.thinkdoc.vip/diary.html","target":"_self"},
{"name":"归档","class":"archive","link":"https://www.thinkdoc.vip/10.html","target":"_self"},
{"name":"留言板","class":"lock","link":"https://www.thinkdoc.vip/chat.html","target":"_self"},
{
    "name": "关于",
    "class":"coffee",

    "sub": [{
        "name": "关于我",
        "class": "coffee",
"target":"_self",
        "link": "https://www.thinkdoc.vip/start-page.html"
    }]
}

3、时光机社交按钮

选择设置外观-时光机配置

{"name":"微博","class":"fontello fontello-weibo","link":"https://weibo.com/u/5938819173"},
{"name":"github","class":"fa fa-github","link":"https://github.com/kizx"},
{"name":"gitee","class":"fa fa-git","link":"https://gitee.com/kizx"},
{"name":"steam","class":"fa fa-steam","link":"https://steamcommunity.com/id/kizxmoe"},
{"name":"bilibili","status":"single","link":"https://space.bilibili.com/22411920"},
{"name":"网易云","status":"single","link":"https://music.163.com/#/user/home?id=111496719"},
{"name":"bangumi","status":"single","class":"fa fa-heartbeat","link":"http://bangumi.tv/user/305237"}

4、博客底部左侧

选择设置外观-开发者设置


  Copyright
  
    ©2022 ThinkDoc(深科文库)
 | 

  
  
    17098080号

5、博客底部右侧

选择设置外观-开发者设置


  Powered by
  
    ThinkDoc(深科文科)
 | 

  Theme by
  
    ThinkDoc(深科文科)

6、自定义javascript

选择设置外观-开发者设置

/* 彩色标签云 */
let tags = document.querySelectorAll("#tag_cloud-2 a");
let colorArr = ["#428BCA", "#AEDCAE", "#ECA9A7", "#DA99FF", "#FFB380", "#D9B999"];
tags.forEach(tag => {
    tagsColor = colorArr[Math.floor(Math.random() * colorArr.length)];
    tag.style.backgroundColor = tagsColor;
})
/* 复制提示 */
kaygb_copy();
function kaygb_copy(){$(document).ready(function(){$("body").bind('copy',function(e){hellolayer()})});var sitesurl=window.location.href;function hellolayer(){
$.message({
    message: "尊重原创,转载请注明出处!
本文作者:深科文库br>原文链接:
"+sitesurl, title: "复制成功", type: "success", autoHide: !1, time: "15000" }) }}

7、自定义css

选择设置外观-开发者设置


/* 首页文章列表悬停上浮 */

.blog-post .panel:not(article) {
    transition: all 0.3s;
}

.blog-post .panel:not(article):hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 10px rgba(73, 90, 47, 0.47);
}

/* 头像呼吸光环和鼠标悬停旋转放大 */

.img-full {
    width: 100px;
    border-radius: 50%;
    animation: light 4s ease-in-out infinite;
    transition: 0.5s;
}

.img-square, .img-circle {
    transition: 0.5s;
}

.img-square:hover, .img-circle:hover {
    transform: scale(1.15) rotate(360deg);
}

.img-full:hover {
    transform: scale(1.15) rotate(720deg);
}

@keyframes light {
    0% {
        box-shadow: 0 0 4px #f00;
    }
    25% {
        box-shadow: 0 0 16px #0f0;
    }
    50% {
        box-shadow: 0 0 4px #00f;
    }
    75% {
        box-shadow: 0 0 16px #0f0;
    }
    100% {
        box-shadow: 0 0 4px #f00;
    }
}

/*底部页脚*/

.github-badge {
    display: inline-block;
    border-radius: 4px;
    text-shadow: none;
    font-size: 12px;
    color: #fff;
    line-height: 15px;
    background-color: #abbac3;
    margin-bottom: 5px;
}

.github-badge .badge-subject {
    display: inline-block;
    background-color: #4d4d4d;
    padding: 4px 4px 4px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.github-badge .badge-value {
    display: inline-block;
    padding: 4px 6px 4px 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.github-badge .bg-blue {
    background-color: #007ec6;
}

.github-badge .bg-orange {
    background-color: #ffa500;
}

.github-badge .bg-red {
    background-color: #f00;
}

.github-badge .bg-green {
    background-color: #3bca6e;
}

.github-badge .bg-purple {
    background-color: #ab34e9;
}

/*Bilibili视频挂载*/

.iframe_video {
    position: relative;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .iframe_video {
        height: 15em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .iframe_video {
        height: 20em;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .iframe_video {
        height: 30em;
    }
}

@media only screen and (min-width: 1200px) {
    .iframe_video {
        height: 40em;
    }
}

.iframe_cross {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
}

.iframe_cross iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

体验地址https://43.138.51.119

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/941615.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-17
下一篇 2022-05-17

发表评论

登录后才能评论

评论列表(0条)

保存