1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
|
fontStack = 'HYRunYuan', 'PingFang SC', 'Microsoft YaHei', sans-serif radius = 12px shadow = 0 4px 14px rgba(0,0,0,.08) shadowHover = 0 10px 24px rgba(0,0,0,.12)
@font-face font-family 'HYRunYuan' src url('/fonts/HYRunYuan.woff2') format('woff2') font-weight normal font-style normal font-display swap
html, body, .menu, input, button, select, textarea, .post-title, .site-title, h1, h2, h3, h4, h5, h6, .posts-expand .post-excerpt, .post-excerpt, .posts-expand .post-body, .post-body, .posts-expand .post-meta, .post-meta font-family fontStack
body background-color #e0d8c0 background-image url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><defs><pattern id='p' width='60' height='60' patternUnits='userSpaceOnUse'><circle cx='5' cy='5' r='1' fill='%23000000' fill-opacity='0.06'/><circle cx='25' cy='15' r='0.8' fill='%23000000' fill-opacity='0.05'/><circle cx='45' cy='35' r='1' fill='%23000000' fill-opacity='0.05'/><circle cx='15' cy='45' r='0.7' fill='%23000000' fill-opacity='0.04'/></pattern></defs><rect width='100%' height='100%' fill='url(%23p)'/></svg>") background-repeat repeat background-attachment fixed
.posts-expand .post-block, .page .post-block, .post-block, .sidebar-inner .widget, .sidebar-inner .sidebar-panel background #fff box-shadow shadow overflow hidden transition box-shadow .2s ease, transform .2s ease &:hover box-shadow shadowHover
.header-inner, .site-brand-container background #fff url('/images/header-bg.jpg') center / cover no-repeat box-shadow shadow overflow hidden
.headband display none // 去除顶部细线
@media (min-width: 768px) .header-inner, .site-brand-container, .posts-expand, .main-inner.archive, .main-inner.category, .main-inner.tag, .main-inner.page, .posts-collapse margin-top 20px
@media (max-width: 767px) .header-inner, .site-brand-container, .posts-expand, .main-inner.archive, .main-inner.category, .main-inner.tag, .main-inner.page, .posts-collapse margin-top 0 .header-inner, .site-brand-container border-radius 0 0 radius radius !important // 上直角,下圆角
// ============================================================ // 分页组件:按钮化(可触控优先) // ============================================================ .pagination background transparent box-shadow none text-align center margin-top 20px .pagination.animated.fadeIn background transparent !important box-shadow none !important .pagination .page-number, .pagination .extend, .pagination .space display inline-flex align-items center justify-content center min-width 38px height 36px padding 0 14px margin 0 4px border 1px solid rgba(0,0,0,.08) border-radius 8px !important background-color transparent color #333 transition all .2s ease .pagination .page-number:hover, .pagination .extend:hover background rgba(0,0,0,.06) border-color rgba(0,0,0,.12) .pagination .page-number.current background rgba(0,0,0,.08) border-color rgba(0,0,0,.18) color #111 font-weight 600
// ============================================================ // 文章信息块:元信息 / 标题 / 摘要 / 按钮 + 紧凑间距 // ============================================================ .posts-expand .post-meta color #999 font-size 13px display flex flex-wrap wrap gap 10px justify-content flex-start .post-meta-item--update, .post-meta-item--updated, time[itemprop='dateModified'] display none !important // 隐藏更新时间 .posts-expand .post-title text-align left font-size 22px font-weight 600 margin-top 8px transition color .2s ease a color inherit &:hover color #111 .main-inner.post .post-title font-size 28px // 详情页放大 .posts-expand .post-excerpt, .post-excerpt font-size 15px line-height 1.7 color #888 overflow visible display block -webkit-line-clamp unset max-height none text-overflow clip .posts-expand .post-button display flex justify-content flex-end margin-top 12px .posts-expand .post-button .btn border-radius 8px !important padding 6px 14px // 紧凑布局微调 .posts-expand .post-block padding 20px 24px .posts-expand .post-header margin-bottom 8px .posts-expand .post-title margin 0 0 6px .posts-expand .post-meta margin 0 0 6px line-height 1.4 .posts-expand .post-body margin-top 6px .posts-expand .post-excerpt margin 6px 0 10px line-height 1.6 color #888 .posts-expand .post-excerpt p margin 0 .posts-expand .post-button margin-top 8px
// ============================================================ // 前后导航:方向清晰的两端对齐 // ============================================================ .post-nav display flex justify-content space-between gap 20px .post-nav .post-nav-prev text-align left .post-nav .post-nav-next text-align right
// ============================================================ // 搜索弹窗:移动端非全屏居中 // ============================================================ .search-pop-overlay display flex align-items center justify-content center .search-popup width 90vw max-width 600px height 80vh max-height 80vh border-radius radius !important margin 10vh auto top auto left auto right auto bottom auto overflow auto -ms-overflow-style none scrollbar-width none &::-webkit-scrollbar width 0 height 0
// ============================================================ // 侧边栏:作者区与目录区差异圆角策略 // ============================================================ .header-inner, .site-brand-container, .site-nav, .posts-expand .post-block, .page .post-block, .post-block, .sidebar-inner .widget border-radius radius !important overflow hidden background-clip padding-box .sidebar-inner .site-overview-wrap.sidebar-panel background transparent !important box-shadow none !important .sidebar-inner .site-overview-wrap.sidebar-panel > .site-author background #fff border-radius 12px 12px 0 0 padding 20px overflow hidden .sidebar-inner .post-toc-wrap.sidebar-panel border-radius 0 !important background #fff box-shadow none !important background-clip padding-box outline none .sidebar-inner .post-toc-wrap, .sidebar-inner .post-toc, .sidebar-inner .post-toc .nav, .sidebar-inner .post-toc .nav > li, .sidebar-inner .post-toc a text-align left display block @media (max-width: 991px) .sidebar background #fff border-radius radius !important overflow hidden box-shadow shadow .sidebar-panel-container background transparent .sidebar-inner.sidebar-overview-active, .sidebar-inner.sidebar-nav-active, .sidebar-inner.sidebar-toc-active border-radius radius !important background #fff box-shadow shadow overflow hidden background-clip padding-box .sidebar-toggle, .back-to-top border-radius radius !important overflow hidden
// ============================================================ // 评论区:统一圆角与裁剪策略 // ============================================================ .comments, .comments.animated.fadeIn border-radius radius !important overflow hidden background-clip padding-box
// ================= END styles.styl ===========================
|