From 94b623aa0c15d3bb0fd06b458d4966cc3e8e7ee3 Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Sat, 21 Dec 2019 21:54:12 +0800 Subject: =?UTF-8?q?=F0=9F=8E=88=20Add:=20=E8=AF=B4=E8=AF=B4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/post.css | 344 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 assets/css/post.css (limited to 'assets/css/post.css') diff --git a/assets/css/post.css b/assets/css/post.css new file mode 100644 index 0000000..d8471fe --- /dev/null +++ b/assets/css/post.css @@ -0,0 +1,344 @@ +@charset 'utf-8'; +/* + * Style of Posts + * Author: Eltrac + * License: MIT + */ +/* 文章 */ +.post-list, +.post-body, +.saying-body { + margin-top: -110px; + transition: .8s; +} +.post-item { + margin-bottom: 10px; +} +.post-body,.post-item,.saying-item { + background: #fff; + box-shadow: 0 0 36px var(--shadow-color); + -moz-box-shadow: 0 0 36px var(--shadow-color); + -webkit-box-shadow: 0 0 36px var(--shadow-color); + transition: background .1s +} +.post-banner-box { + height: 100%; + overflow: hidden; + padding: 0; +} +.post-banner img { + width: 100%; + height: 100%; + margin-right: -40px +} +.post-title { + margin-top: 30px; + transition: color .2s; + overflow: hidden; + height: 40px; + white-space: nowrap; + text-overflow: ellipsis +} +.post-excerpt { + overflow: hidden; + text-overflow: ellipsis +} +.post-meta,.post-meta a { + color: gray +} +.post-button-box { + margin-top: 15px +} +.post-button { + margin-right: 20px; + float: right +} +.post-footer { + color: #c8c8c8; + font-size: 14px; + padding: 26px; + padding-top: 0; + margin-top: -20px +} +.post-tags a { + color: #bebebe; + padding: 2px 4px; + border-radius: 2px; + background: #f0f0f0; + transition: background .2s +} +.post-tags a:hover { + background: #f5f5f5 +} +.post-share { + border-top: 1px solid rgb(230,230,230); + border-bottom: 1px solid rgb(230,230,230); + padding: 18px 0; + margin: 20px 0; + vertical-align:middle; +} +.post-share .social-share { + margin-right: 10px; + vertical-align:middle; +} +.post-share .social-share i { + transition: color .2s +} +.post-share .social-share.qq:hover i { + color: rgb(127,81,255); +} +.post-share .social-share.weibo:hover i { + color: red; +} +.post-share .social-share.twitter:hover i { + color: rgb(29,161,242); +} +.post-share .social-share.copyright i { + float: right; + font-size: 20px; + margin-top: 7px; + margin-right: 17px; + cursor: pointer; + display: none/*移动端不显示*/ +} +.post-share .iconfont { + color: rgb(200,200,200); + font-size: 25px; +} +/* >文章内容 */ +.post-content, +.saying-inner { + padding: 26px; + line-height: 28px; + letter-spacing: 2px; + word-break: break-all +} +.post-content h2 { + margin: 45px 0; + margin-bottom: 10px; +} +.post-content h3:before { + content: '# '; + color: var(--theme-color); + font-weight: bold; +} +.post-content hr { + display: block; + margin: 65px auto; + width: 250px; + border: 3px dashed #f0f0f0 +} +.post-content code { + font-size: 0.8em; + background: #f0f0f0; + border-radius: 3px; + font-family: 'Noto Sans SC',sans-serif!important; + color: var(--theme-color); + vertical-align: middle; +} +.post-content pre>code { + background: #282c34!important; + color: #fff!important; + text-indent: 0!important; +} +.post-content img { + display: block; + margin: 25px auto; + border-radius: 3px; + max-width: 100% +} +.post-content blockquote p { + margin: 0 +} +.post-content blockquote { + border-left: 6px solid #ddd; + padding-left: 10px; + margin-left: 0; + color: gray +} +.post-content table { + width: 100%; + border-left: 1px solid #ccc; + border-top: 2px solid #ccc; + border-spacing: 0 +} +.post-content td,.post-content th { + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + padding: 6px 8px +} +.post-content th { + background: #fff!important +} +.post-content tr:nth-child(odd) { + background: #f5f5f5 +} +.post-content a:not(.no-line) { + position: relative; + color: var(--theme-color); + border-bottom: 2px solid #f0f0f0; +} +.post-content a:not(.no-line)::before { + content: ''; + position: absolute; + bottom: -2px; + left: 0; + right: 0; + height: 2px; + background-color: var(--theme-color); + transform-origin: bottom right; + transform: scaleX(0); + transition: transform .5s ease +} +.post-content a:not(.no-line):hover::before { + transform-origin: bottom left; + transform: scaleX(1); +} +.post-content p { + vertical-align: middle; +} +.post-content ul ul, +.post-content ol ol, +.post-content ol ul, +.post-content ul ol { + margin-top: -15px; +} +.post-content .owo-img { + box-shadow: 0 0 0 #fff; + -moz-box-shadow: 0 0 0 #fff; + -webkit-box-shadow: 0 0 0 #fff; + display: inline; + vertical-align: middle; +} +/* 加密文章 */ +.post-content .protected { + display: flex; + align-items: center; + justify-content: center; +} + +.post-content .protected .word { + display: none; +} + +.post-content .protected .text { + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; + margin-right: -7px; +} + +.post-content .protected .submit { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; + margin-left: -7xp; + background: var(--theme-color); + border-color: var(--theme-color)!important; + color: #fff; + cursor: pointer; +} + +.post-content .protected .submit:hover { + opacity: 0.8; +} + +.post-content .protected .submit, +.post-content .protected .text { + border: 1px solid #ccc; + padding: 8px 14px; + box-shadow: 0 2px 10px #ddd; + transition: .3s; +} + +.post-content .protected { + margin: 50px 0; +} + +/* >短代码 */ +.tip { + border: 1px solid rgb(235,235,235); + border-radius: 3px; + padding: 15px; + border-left: 5px solid var(--theme-color); +} +.tip-icon { + color: var(--theme-color); +} +.tip.red { + border-left-color: #DD4B39; +} +.tip.red .tip-icon { + color: #DD4B39; +} +.tip.blue { + border-left-color: #4D90FE; +} +.tip.blue .tip-icon { + color: #4D90FE; +} +.tip.green { + border-left-color: #2FBB4F; +} +.tip.green .tip-icon { + color: #2FBB4F; +} +.tip.yellow { + border-left-color: #FFDD11; +} +.tip.yellow .tip-icon { + color: #FFDD11; +} +.tip-group { + margin: 15px 0; +} +.tip-group .tip { + margin: 0; + margin-top: -1px; + border-radius: 0; +} +.tip-group br { + display: none; +} +.tip-group .tip br { + display: block; +} +.post-bubble .saying-content p { + padding: 0 20px!important; +} + +/* >文章分页 */ +.post-pagenav, +.comment-pagenav { + margin-top: 40px; + margin-bottom: 60px +} +.post-pagenav a { + font-size: 20px; + background: #fff; + color: #000; + padding: 13px 20px; + transition: .2s; +} +.post-pagenav a:hover { + background: rgb(249,249,249); +} +.post-pagenav a, +.comment-pagenav a { + border-radius: 10000px; + box-shadow: 0 0 15px #ccc; + -moz-box-shadow: 0 0 15px #ccc; + -webkit-box-shadow: 0 0 15px #ccc +} +.post-pagenav a:hover { + box-shadow: 0 0 15px #ccc; + -moz-box-shadow: 0 0 15px #ccc; + -webkit-box-shadow: 0 0 15px #ccc +} +.post-pagenav-left { + float: left +} +.post-pagenav-right { + float: right +} +.post-item-content{ + padding: 0 35px 10px 35px; +} \ No newline at end of file -- cgit v1.2.3