Update font family of code

This commit is contained in:
Defectink
2022-05-07 11:38:51 +08:00
parent 17b341e50c
commit a518989e83
5 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,7 @@
.wrapper { .wrapper {
@apply overflow-hidden rounded-lg; @apply overflow-hidden rounded-lg;
@apply mb-8 shadow-lg; @apply mb-8 shadow-lg;
font-size: 16px;
/* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%), /* box-shadow: 0 13px 27px -5px rgb(50 50 93 / 25%),
0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%); */ 0 8px 16px -8px rgb(0 0 0 / 30%), 0 -6px 16px -6px rgb(0 0 0 / 3%); */
} }

View File

@ -33,8 +33,9 @@
background: hsl(220, 13%, 18%); background: hsl(220, 13%, 18%);
color: hsl(220, 14%, 71%); color: hsl(220, 14%, 71%);
text-shadow: 0 1px rgba(0, 0, 0, 0.3); text-shadow: 0 1px rgba(0, 0, 0, 0.3);
font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', /* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
monospace; monospace; */
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
direction: ltr; direction: ltr;
text-align: left; text-align: left;
white-space: pre; white-space: pre;

View File

@ -32,8 +32,9 @@ code,
pre { pre {
background: #fff; background: #fff;
color: hsl(230, 8%, 24%); color: hsl(230, 8%, 24%);
font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono', /* font-family: 'Fira Code', 'Fira Mono', Menlo, Consolas, 'DejaVu Sans Mono',
monospace; monospace; */
font-family: 'JetBrains Mono', -apple-system, 'DejaVu Sans Mono', monospace;
direction: ltr; direction: ltr;
text-align: left; text-align: left;
white-space: pre; white-space: pre;

View File

@ -244,7 +244,6 @@ h6:hover::before {
font-size: 85%; font-size: 85%;
background-color: var(--color-neutral-muted); background-color: var(--color-neutral-muted);
border-radius: 6px; border-radius: 6px;
font-family: 'JetBrains Mono', -apple-system, monospace;
} }
#article pre > code { #article pre > code {
padding: 0; padding: 0;
@ -253,7 +252,6 @@ h6:hover::before {
white-space: pre; white-space: pre;
background: transparent; background: transparent;
border: 0; border: 0;
font-family: 'JetBrains Mono', -apple-system, monospace;
} }
#article code, #article code,
@ -261,7 +259,6 @@ h6:hover::before {
#article pre, #article pre,
#article samp { #article samp {
/* font-family: monospace, monospace; */ /* font-family: monospace, monospace; */
font-family: 'JetBrains Mono', -apple-system, monospace;
font-size: 16px; font-size: 16px;
} }

View File

@ -12,7 +12,7 @@ module.exports = {
'Aref-Ruqaa': ['Aref Ruqaa', 'serif'], 'Aref-Ruqaa': ['Aref Ruqaa', 'serif'],
Barlow: ['Barlow', 'sans-serif'], Barlow: ['Barlow', 'sans-serif'],
Poppins: ['Poppins', 'sans-serif'], Poppins: ['Poppins', 'sans-serif'],
Mono: ['JetBrains Mono', 'monospace'], Mono: ['JetBrains Mono', '-apple-system', 'monospace'],
}, },
colors: { colors: {
bluish: { bluish: {