-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# What 💻 * update font for readability * Use fira mono for code font
- Loading branch information
1 parent
2fcfeb1
commit 3790c0c
Showing
5 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<code class="inline-code border-0 text-base font-normal"><slot /></code> | ||
</template> | ||
|
||
<style> | ||
.prose :where(a code):not(:where([class~='not-prose'], [class~='not-prose'] *)) { | ||
color: var(--tw-prose-links); | ||
} | ||
.prose :where(a:hover code):not(:where([class~='not-prose'], [class~='not-prose'] *)) { | ||
text-decoration: underline; | ||
} | ||
.prose :where(h2 code, h3 code, h4 code, h5 code, h6 code) { | ||
font-size: inherit; | ||
line-height: inherit; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
body { | ||
-webkit-font-smoothing: auto !important; | ||
text-rendering: optimizeLegibility; | ||
letter-spacing: 0.1px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters