From 837cf60f7da7153e1a3204047f34500b8a54a91e Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 15 Aug 2023 13:01:25 +0200 Subject: [PATCH] feat(article): add style to `kbd` tag --- assets/scss/partials/layout/article.scss | 10 ++++++++++ exampleSite/content/post/markdown-syntax/index.md | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index e030b4d..2756c83 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -423,4 +423,14 @@ overflow-x: auto; overflow-y: hidden; } + + kbd { + background-color: var(--card-background); + font-weight: bold; + font-size: 0.9em; + box-shadow: var(--shadow-l1); + padding: 2px 4px; + border-radius: 4px; + display: inline-block; + } } diff --git a/exampleSite/content/post/markdown-syntax/index.md b/exampleSite/content/post/markdown-syntax/index.md index 0254cca..c584c4c 100644 --- a/exampleSite/content/post/markdown-syntax/index.md +++ b/exampleSite/content/post/markdown-syntax/index.md @@ -159,7 +159,7 @@ H2O Xn + Yn = Zn -Press CTRL+ALT+Delete to end the session. +Press CTRL + ALT + Delete to end the session. Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.