diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-09 00:19:11 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-09 00:19:11 +0800 |
| commit | f5bced134e73cf20da42124f77ab001a38f1739b (patch) | |
| tree | d8c1284de31305b2cacb9eeda3fdf1ebbbb3b921 /assets/css | |
| parent | aad116339e17c1d9d048e37e5a7b824b3ccc4f30 (diff) | |
:notebook_with_decorative_cover: Add: 拓展 Markdown 语法,支持 kbd 标签
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/main/post.css | 14 | ||||
| -rw-r--r-- | assets/css/main/themes.css | 15 |
2 files changed, 25 insertions, 4 deletions
diff --git a/assets/css/main/post.css b/assets/css/main/post.css index 294c838..e122706 100644 --- a/assets/css/main/post.css +++ b/assets/css/main/post.css @@ -167,6 +167,20 @@ width: 100%;
border: 2px dashed #f1f1f1
}
+.post-content kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font: 0.84em sans-serif;
+ line-height: 15px;
+ color: #444d56;
+ vertical-align: middle;
+ background-color: #fafbfc;
+ border: solid 1px #d1d5da;
+ border-bottom-color: #c6cbd1;
+ border-radius: 3px;
+ -webkit-box-shadow: inset 0 -1px 0 #c6cbd1;
+ box-shadow: inset 0 -1px 0 #c6cbd1
+}
.post-content code {
font-size: 0.95em;
background: #f0f0f0;
diff --git a/assets/css/main/themes.css b/assets/css/main/themes.css index f2a7d1f..d8dd60b 100644 --- a/assets/css/main/themes.css +++ b/assets/css/main/themes.css @@ -223,7 +223,8 @@ .body-dark .OwO-item,
.body-dark .index-banner,
.body-dark .login-enter-admin a,
-.body-dark .comment-submit {
+.body-dark .comment-submit,
+.body-dark .post-content kbd {
background-color:#6e6e6e!important
}
.body-dark .index-banner {
@@ -276,7 +277,8 @@ .body-dark .alert,
.body-dark .respond input,
.body-dark .respond textarea,
-.body-dark .login-enter-admin a {
+.body-dark .login-enter-admin a,
+.body-dark .post-content kbd {
color:#fafafa!important
}
.body-dark .options-theme-label {
@@ -298,9 +300,13 @@ .body-dark .post-content th,
.body-dark .post-content tr,
.body-dark .saying-hr,
-.body-dark .post-share {
+.body-dark .post-share,
+.body-dark .post-content kbd {
border-color:#6e6e6e!important
}
+.body-dark .post-content kbd {
+ border-bottom-color: #6e6e6e!important
+}
.body-dark .tip {
border-top-color:#6e6e6e!important;
border-bottom-color:#6e6e6e!important;
@@ -413,7 +419,8 @@ background: transparent
}
.body-sepia .fixed-button,
-.body-sepia .post-pagenav a {
+.body-sepia .post-pagenav a,
+.body-sepia .post-content kbd {
background: rgb(250,246,224)!important
}
.body-sepia .comment-content,
|
