@charset "UTF-8"; @import url("https://fontsapi.zeoseven.com/442/main/result.css"); @import "reset"; @import "dark"; body { padding: 0 !important; position: relative; font-family: "Maple Mono NF CN"; font-weight: normal; overflow-x: hidden !important; overflow-y: auto !important; color: var(--bs-body-color); } .blog-body { // 导航栏 .navbar { --bs-navbar-padding-x: 0; --bs-navbar-padding-y: 0; transition: .3s ease-out; box-shadow: 0 .5rem 1rem rgba(18, 38, 63, .05); border: 1px solid rgba(17, 24, 39, .1); .container-fluid { height: 3rem; .nav-toggle, .nav-search-button { width: 2.5rem; height: 100%; } } } .sidebar-banner { position: relative; background-image: url("../assets/imgs/wallhaven-qr9jml.jpg"); background-position-x: center; background-position-y: center; background-size: cover; min-height: 120px; width: 100%; overflow: hidden; border-top-right-radius: 6px; border-top-left-radius: 6px; &::after { content: ""; width: 100%; height: 40%; position: absolute; bottom: 0; left: 0; background: linear-gradient(to top, var(--bs-white), transparent); } } .sidebar-avatar { position: absolute; left: 50%; transform: translateX(-50%) translateY(-50%); border: rgba(255, 255, 255, .4) 4px solid; width: 68px; height: 68px; border-radius: 50%; } .sidebar-sign { padding-left: .75rem; padding-right: .75rem; margin-bottom: 1rem; font-size: .875rem; line-height: 1.5rem; letter-spacing: .05em; text-align: center; } // 侧边导航 .offcanvas { height: 100vh; max-width: 78%; .offcanvas-body { padding: 0; .sidebar-banner { border-top-right-radius: 0px; border-top-left-radius: 0px; } } } // 英雄 .hero-box { position: relative; height: 730px; background-image: url("../assets/imgs/acg.jpg"); background-position-x: center; background-position-y: center; background-size: cover; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .2); } } // 主 .main { // 文章列表 .article-list { .article-item { display: flex; overflow: hidden; position: relative; background-color: #fff; height: 10rem; border-radius: var(--bs-border-radius); border-width: 1px; margin-bottom: 1rem; .blur-img { z-index: 0; img { object-fit: cover; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 14.5rem; transform: scale(1.55); } } &.flex-row-reverse { .article-img { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); } } .article-img { z-index: 10; margin: 0; width: 33.333333%; border-width: 0; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); .article-left-img { object-fit: cover; background-position: center; background-size: cover; width: 100%; height: 100%; } } .article-ctx { display: flex; z-index: 10; padding: 1.25rem 1rem; color: #fff; flex-direction: column; justify-content: space-between; width: 100%; background-color: rgba(0, 0, 0, .35); .article-info { display: flex; font-size: .75rem; line-height: 1rem; justify-content: space-between; letter-spacing: .06rem; text-shadow: 0 .1875rem .3125rem rgba(0, 0, 0, .3); } .article-title { font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-size: 20px; line-height: 1.75rem; letter-spacing: .05em; color: #fff; overflow: hidden; } .article-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; text-indent: 2em; line-height: 1.5rem; word-break: break-all; overflow: hidden; color: #fff; } } } } // 下一页按钮 #NextButton { width: auto; padding-left: 3rem; padding-right: 3rem; } // 详情 .article-detail { .tag { .tag-item { color: #0d6efd !important; background-color: rgba(13, 110, 253, .1) !important; } } .copyright { padding: 1rem; margin-top: 1.5rem; line-height: 1.5rem; border-radius: .25rem; background-color: var(--bs-light); .copyright-text { word-break: break-all; } } .like-button { border-radius: var(--bs-border-radius-lg); border: 2px solid #e7e7e7; cursor: pointer; padding: .45rem .75rem; color: #878787; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .25s cubic-bezier(.175, .885, .32, 1.275); filter: grayscale(100%); user-select: none; .like-icon { width: 18px; height: 16px; display: inline-block; position: relative; margin-right: .25em; font-size: 1.5rem; background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjYyMzc3NzkwMjA1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIxMjk2IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik05MTMuOTIgMjA4LjM4NGMtOTguODE2LTk4LjgxNi0yNTguNTYtOTguODE2LTM1Ny4zNzYgMGwtNDEuOTg0IDQxLjk4NC00MS45ODQtNDEuOTg0Yy05OC44MTYtOTguODE2LTI1OC41Ni05OC44MTYtMzU3LjM3NiAwLTk4LjMwNCA5OC44MTYtOTguMzA0IDI1OC41NiAwLjUxMiAzNTcuMzc2bDUyLjIyNCA1Mi4yMjQgMzM3LjQwOCAzMzcuNDA4YzUuNjMyIDUuNjMyIDE0LjMzNiA1LjYzMiAxOS45NjggMGwzMzcuNDA4LTMzNy40MDggNTIuMjI0LTUyLjIyNGM5Ny43OTItOTguODE2IDk3Ljc5Mi0yNTguNTYtMS4wMjQtMzU3LjM3NnoiIGZpbGw9IiNmZjZlNmYiIHAtaWQ9IjIxMjk3Ij48L3BhdGg+PC9zdmc+) no-repeat center; background-size: 100%; animation: heartUnlike .25s cubic-bezier(.175, .885, .32, 1.275) both; } } } } // 工具 .tools { display: flex; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1045; margin-top: .25rem; flex-direction: column; .backup-btn, .theme-toggle { background-color: var(--bs-secondary-bg); border-radius: .25rem; border: 1px solid rgba(17, 24, 39, .1); cursor: pointer; color: var(--bs-dark); } } .footer { border-top-width: 1px; border-top-style: solid; border-color: rgba(17, 24, 39, .1); line-height: 1.8rem; letter-spacing: .3px; } } // media @media screen and (max-width: 576px) { .blog-body { .hero-box { height: 20rem; } } } @media screen and (min-width: 768px) { .blog-body { .main { .article-list { .article-item { background-color: #000; border-width: 0; height: 14.5rem; .blur-img { img { filter: blur(1.875rem) brightness(.75); } } .article-ctx { background-color: unset; padding: 3rem 2rem; width: 66.666667%; } } } } } } // 字体 [class^="fa-"], [class*=" fa-"] { vertical-align: middle; } // 工具 img { max-width: 100%; height: auto; vertical-align: middle; } .has-img { backdrop-filter: blur(8px) } .bg-blur { background: var(--bg-blur-background); -webkit-backdrop-filter: saturate(200%) blur(20px); backdrop-filter: saturate(200%) blur(20px); } .text-xs { font-size: .75rem; } .icon { font-size: 1rem; width: 1rem; height: 1rem; fill: currentColor; overflow: hidden; flex-shrink: 0; } // 滚动条 :root { scroll-behavior: auto; } html, body { &::-webkit-scrollbar { width: 6px; height: 0; } &::-webkit-scrollbar-corner { background: unset; } &::-webkit-scrollbar-thumb { background: rgba(135, 135, 135, .4); border-radius: 6px; } &::-webkit-scrollbar-track { background: rgba(135, 135, 135, .1); } &::-webkit-scrollbar-track { background-color: #fff; } } .dark { html, body { &::-webkit-scrollbar-thumb { background: rgba(135, 135, 135, .6); } } }