diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-10-06 13:51:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-06 13:51:46 +0800 |
| commit | 3641e22645eb06b54b29bfac720f7184a6c86836 (patch) | |
| tree | 3e69f37d7d02eadc02a9d18eca6265bbabbfd029 /assets/css/main/post.css | |
| parent | 82c7f852a1119ec41ec4c6312b96978dd61a90c8 (diff) | |
📏 Perf: 样式优化
Diffstat (limited to 'assets/css/main/post.css')
| -rw-r--r-- | assets/css/main/post.css | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/assets/css/main/post.css b/assets/css/main/post.css index 02aac0d..3e01e38 100644 --- a/assets/css/main/post.css +++ b/assets/css/main/post.css @@ -12,21 +12,20 @@ }
.post-body,.post-item {
background: #fff;
- box-shadow: 0 0 36px #bababa;
- -moz-box-shadow: 0 0 36px #bababa;
- -webkit-box-shadow: 0 0 36px #bababa;
+ 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 {
margin-left: -15px;
margin-bottom: -2px;
- max-height: 300px;
- min-height: 270px;
+ height: 280px;
overflow: hidden
}
.post-banner img {
width: 100%;
- min-height: 270px;
+ height: 280px;
margin-right: -40px
}
.post-title {
@@ -52,7 +51,9 @@ }
.post-footer {
color: #c8c8c8;
- font-size: 14px
+ font-size: 14px;
+ padding: 52px;
+ padding-top: 0;
}
.post-tags a {
color: #bebebe;
@@ -85,10 +86,14 @@ background: #f0f0f0;
border-radius: 3px;
font-family: font-family: 'Noto Sans SC',sans-serif!important;
- padding: 5px 8px;
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: 20px auto;
|
