From 3321e9ebfe6842e87eacc234f7add7ed71d78148 Mon Sep 17 00:00:00 2001 From: Sivan Date: Fri, 14 Feb 2020 17:49:40 +0800 Subject: [PATCH] feat: update code style --- lib/_base.scss | 10 ++++++++++ lib/_inline.scss | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/_base.scss b/lib/_base.scss index 80e5145..2e66e46 100644 --- a/lib/_base.scss +++ b/lib/_base.scss @@ -82,5 +82,15 @@ word-wrap: normal; background-color: rgba(0, 0, 0, 0.054); border-radius: 4px; + + code { + margin-inline-start: inherit; + margin-inline-end: inherit; + padding: 0; + border: 0; + border-radius: 0; + background-color: transparent; + color: inherit; + } } } diff --git a/lib/_inline.scss b/lib/_inline.scss index 4904b82..b947de7 100644 --- a/lib/_inline.scss +++ b/lib/_inline.scss @@ -28,8 +28,10 @@ } code { + margin-inline-start: 0.25em; + margin-inline-end: 0.25em; font-family: $font-family-mono; - font-size: $font-size-small; + font-size: 0.875em; } dfn {