Merge pull request #64 from sun0225SUN/main

引入自定义CSS样式文件,修复若干Bug。
This commit is contained in:
liuzhihang 2023-01-30 13:56:00 +08:00 committed by GitHub
commit 8a7f8b3d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,46 @@
/* 首行缩进 */
/* .post-content p {
text-indent: 2em;
} */
/* 代码块阴影 Bug */
#article-container pre > code {
background: transparent !important;
}
/* 代码块纯黑色背景 */
code[class*="language-"], pre[class*="language-"]{
background: #18171d;
}
/* banner 字体图标大小及位置 */
i.iconfont.icon-arrow-right.banner-righticon{
font-size: 66px;
}
span.bannerText{
display: block;
margin-top: 35px;
}
/* 自我介绍渐变色背景 */
#aside-content > .card-widget.card-info::before {
background: linear-gradient(-25deg,#0084ff,#031764,#67044d);
background-size: 400%;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
content: '';
animation: gradient 15s ease infinite;
}
/* 列表样式及缩进 */
ul li {
font-size: 18px;
}
#article-container ol li:not(.tab), #article-container ul li:not(.tab){
margin-left: 2em;
}

View File

@ -15,7 +15,11 @@
<script th:src="@{/assets/js/heo.js}"></script>
<link rel="stylesheet" th:href="@{/assets/zhheo/zhheoblog.css}">
<link rel="stylesheet" th:href="@{/assets/zhheo/custom.css}">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.2.0/css/all.min.css">
<link media="print"
onload='this.media="all"'
rel="stylesheet"
@ -144,4 +148,4 @@
</th:block>
</head>
</html>
</html>