Improve code block style of syntax highlighting (#256)

This commit is contained in:
Joseph Ting 2020-02-01 03:16:13 +09:00 committed by GitHub
parent be94b5fd05
commit 39616beba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -101,15 +101,21 @@ b, strong {
font-weight: 700; font-weight: 700;
} }
.highlight > div,
.highlight > pre {
margin: 0 0 2rem;
padding: 1rem;
border-radius: 1rem;
}
pre { pre {
display: block; display: block;
font-family: $code-font-family; font-family: $code-font-family;
font-size: 1.6rem; font-size: 1.6rem;
font-weight: 400; font-weight: 400;
line-height: 2.6rem; line-height: 2.6rem;
margin: 2.0rem 0 2.0rem 0;
padding: 2.0rem;
overflow-x: auto; overflow-x: auto;
margin: 0;
code { code {
display: inline-block; display: inline-block;
background-color: inherit; background-color: inherit;
@ -123,7 +129,6 @@ code {
font-weight: 400; font-weight: 400;
background-color: $alt-bg-color; background-color: $alt-bg-color;
color: $fg-color; color: $fg-color;
padding: 0.2rem 0.4rem 0.2rem 0.4rem;
} }
blockquote { blockquote {

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"Target":"css/coder.min.28d751104f30c16da1aa1bb04015cbe662cacfe0d1b01af4f2240ad58580069c.css","MediaType":"text/css","Data":{"Integrity":"sha256-KNdREE8wwW2hqhuwQBXL5mLKz+DRsBr08iQK1YWABpw="}} {"Target":"css/coder.min.624134b411585efffadab6a91e7d0383f0d4e22ad49de3690eccbc96f528e670.css","MediaType":"text/css","Data":{"Integrity":"sha256-YkE0tBFYXv/62rapHn0Dg/DU4irUneNpDsy8lvUo5nA="}}