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 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
| //背景图片 body { background:url(/images/aaa.jpg); background-repeat: no-repeat; background-attachment:fixed; //不重复 background-size: cover; //填充 background-position:50% 50%; } //文章内容的透明度设置 .content-wrap { opacity: 1; //0.9为透明 // padding: 25px; //阅读全文增加的间距 padding: 15px; //阅读全文增加的间距 -webkit-box-shadow: 0 0 14px rgba(202,203,203,0.5); -moz-box-shadow: 0 0 14px rgba(202,203,204,0.5); } .content.index.posts-expand{ opacity: 1; //0.9为透明 }
//侧边框的透明度设置 .sidebar { opacity: 1; border-radius: 20px; //侧边栏下方圆角 }
//菜单栏的透明度设置 .header-inner { // background: rgba(255,255,255,0.9); //侧边栏上部分透明度 border-radius: 20px; }
//搜索框(local-search)的透明度设置 .popup { opacity: 0.9; } // 主页文章添加阴影效果 .post { padding: 25px; background:rgba(255,255,255,0.9) none repeat scroll !important; -webkit-box-shadow: 0 0 5px rgba(202, 203, 203, .5); -moz-box-shadow: 0 0 5px rgba(202, 203, 204, .5); }
// ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-button { width: 0; height: 0; } ::-webkit-scrollbar-button:start:increment,::-webkit-scrollbar-button:end:decrement { display: none; } ::-webkit-scrollbar-corner { display: block; } ::-webkit-scrollbar-thumb { border-radius: 8px; background-color: rgba(0,0,0,.2); } ::-webkit-scrollbar-thumb:hover { border-radius: 8px; background-color: rgba(0,0,0,.5); } ::-webkit-scrollbar-track,::-webkit-scrollbar-thumb { border-right: 1px solid transparent; border-left: 1px solid transparent; } ::-webkit-scrollbar-track:hover { background-color: rgba(0,0,0,.15); } ::-webkit-scrollbar-button:start { width: 10px; height: 10px; }
//文章标题与内容之间的间距 .posts-expand .post-meta { color: #999; font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 0.75em; margin: 3px 0 8px 0; //主要 text-align: center; }
//其他文章圆角 .post-block + .post-block { border-radius: 15px 15px 15px 15px; }
//第一篇文章圆角 article.post-block { border-radius: 15px 15px 15px 15px; } //文章间距 .post-block { padding: 35px; border-radius 15px; }
//精品文章 .jingping{ background : #00a8c3; padding:2px 4px 2px 4px; color: #fff; } //评论圆角 .v[data-class=v] { font-size: 16px; text-align: left; border-radius: 15px; }
// //小猫 // //自定义回到顶部样式 // .back-to-top { // right: 60px; // width: 70px; //图片素材宽度 // height: 900px; //图片素材高度 // top: -900px; // bottom: unset; // transition: all .5s ease-in-out; // background: url("/images/scroll.png");
// //隐藏箭头图标 // > i { // display: none; // }
// &.back-to-top-on { // bottom: unset; // top: 100vh < (900px + 200px) ? calc( 100vh - 900px - 200px ) : 0px; // } // } //阅读全文 // .btn { // display: inline-block; // padding: 0 20px; // font-size: 14px; // color: #fff; // background: #222; // border: 2px solid #222; // text-decoration: none; // border-radius: 0; // transition-property: background-color; // transition-duration: 0.2s; // transition-timing-function: ease-in-out; // transition-delay: 0s; // line-height: 2; // }
//主体的间距 距离左侧 .content.index.posts-expand { opacity: 1; // margin-bottom: 50px; padding: 10px; // box-shadow: 0 0 14px rgba(202,203,203,.5); } //引用显示的左侧颜色 blockquote { border-left: 4px solid #ddd; color: var(--blockquote-color); margin: 0; padding: 0 15px; border-left-color: green; } //目录字体大小 .post-toc ol { list-style: none; margin: 0; padding: 0 2px 5px 10px; text-align: left; font-size: 15px; // } //文章下方标签的CSS .posts-expand .post-tags a { box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24); font-family: 'Comic Sans MS',sans-serif; transition: .2s ease-out; padding: 3px 5px; margin: 5px; background: #f5f5f5; border-bottom: none; border-radius: 15px; } //文章下方上一篇下一篇的样式 .post-nav-item a { color: #5073b8; font-weight: 700; font-size: 16px; } //近期文章样式 .links-of-blogroll-title { font-size: 16px; } .links-of-blogroll-list a { color: #5073b8; font-weight: 700; } .links-of-blogroll-list a:hover { //鼠标移动增加下划线 color: #5073b8; font-weight: 700; border-bottom: 1px solid #999; } //去除超链接下划线 a { border-bottom: none; } //文章内容里的超链接 .post-body a:not(.btn):not(.hexo-douban-button):not(.hexo-douban-tab) { color: #5073b8; // border-bottom: none; border-bottom: 1px solid #999; text-decoration: none; } .post-body a:not(.btn):not(.hexo-douban-button):not(.hexo-douban-tab):hover { //鼠标移动上取消下划线 color: #5073b8; border-bottom: none; text-decoration: none; }
//文章目录默认展开 .post-toc .nav .nav-child { display: block; }
//打赏按钮 .reward-container button { display: inline-block; width: 80px; height: 35px; border-radius: 5px; color: #fff; font-weight: 400; font-style: normal; font-variant: normal; font-stretch: normal; font-size: 18px; font-family: "Microsoft Yahei"; background: #f44336; } //评论框去除下方广告 .v[data-class=v] .txt-right { text-align: right; display: none; margin-left: 30px; } // 文章主体阴影 // .content.index.posts-expand { // opacity: 1; // padding: 10px; // // margin-top: 30px; // margin-bottom: 50px; // padding: 25px; // // -webkit-box-shadow: 0 0 14px rgba(202,203,203,0.5); // // -moz-box-shadow: 0 0 14px rgba(202,203,204,0.5); // }
.content.post.posts-expand { margin-top: 20px; margin-bottom: 30px; border-radius: 30px; //圆角 -webkit-box-shadow: 0 0 14px rgba(202,203,203,0.5); -moz-box-shadow: 0 0 14px rgba(202,203,204,0.5); }
.sidebar-inner { background: var(--content-bg-color); border-radius: 20px; box-shadow: 0 2px 2px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.06), 0 1px 5px 0 rgba(0,0,0,.12), 0 -1px 0.5px 0 rgba(0,0,0,.09); box-sizing: border-box; color: var(--text-color); width: 240px; opacity: 0; }
//相关文章样式 .popular-posts-header { // font-size: 1.5em; font-weight: bold; border-bottom: 1px solid #eee; } .popular-posts .popular-posts-item { margin-left: 3em; list-style-type: "🏷️ "; } .popular-posts-title a{ font-size: 1.12em; border-bottom: 1px solid #999; } .popular-posts-title a:hover{ //鼠标放上取消下划线 font-size: 1.12em; border-bottom: none; }
//文章下方分页样式 .pagination .page-number.current { background: #49b1f5; border-radius: 50%; } .pagination .page-number { border: 3px solid #49b1f5; border-radius: 50%; }
//分页圆角 .pagination { border-radius: 15px; }
//评论区样式图片 textarea#veditor { background-image: url(https://cdn.jsdelivr.net/gh/drew233/cdn/20200409110727.webp); // background-image: url(/images/评论.webp); background-size: contain; background-repeat: no-repeat; background-position: right; background-color: rgba(255,255,255,0); resize: vertical; }
//简繁体字体颜色 a#translateLink { color: beige; }
|