From f5bced134e73cf20da42124f77ab001a38f1739b Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Thu, 9 Apr 2020 00:19:11 +0800 Subject: =?UTF-8?q?:notebook=5Fwith=5Fdecorative=5Fcover:=20Add:=20?= =?UTF-8?q?=E6=8B=93=E5=B1=95=20Markdown=20=E8=AF=AD=E6=B3=95=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20kbd=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/main/post.css | 14 ++++++++++++++ assets/css/main/themes.css | 15 +++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) (limited to 'assets/css') 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, -- cgit v1.2.3