xlog美化之自定义css

修改字体和背景
自行修改其中链接

Copy
@import url("https://cdnjs.cloudflare.com/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaiscreenr.css");

.xlog-page-index,
.xlog-page-post {
font-family: "LXGW WenKai Screen R", sans-serif;
}
.swiper-button {
position: absolute;
top: 50%;
z-index: 1;
height: 1.5rem;
width: 1.5rem;
--tw-translate-y: -50%;
transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
justify-content: center;
border-radius: 9999px;
--tw-bg-opacity: 1;
background-color: #00000030;
opacity: .8;
}
.header {
height: 20vh; /* 设置高度为视口高度的 30% */
background-image: url("https://vpic2024.xingluo.eu.org/uploads/picgo/202402282219442.webp"); /* 替换为你的背景图路径 */
filter: blur(60px);
background-size: cover; /* 背景图等比例缩放以填满容器 */
background-position: center; /* 将背景图居中 */
}

.dark .xlog-banner {
background-image: url(https://vpic2024.xingluo.eu.org/uploads/picgo/202402282219442.webp);
filter: blur(123px);
}

.xlog-banner {
background-image: url(https://vpic2024.xingluo.eu.org/uploads/picgo/202402260904562.jpeg);
filter: blur(98px);
}