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 {
@apply overflow-hidden rounded-lg;
@apply mb-8 shadow-lg;
font-size: 16px;
/* 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%); */
}

View File

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

View File

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

View File

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

View File

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