Created
December 1, 2023 06:37
-
-
Save BYJRK/ac567f7b2c8c606aa77f6eb765082b1d to your computer and use it in GitHub Desktop.
Typora 1.8 New feature "GitHub Style Alerts" Custom 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
.md-alert-text { | |
font-size: 1rem; | |
font-weight: 600; | |
} | |
.md-alert-text-container::after { | |
text-transform: uppercase; | |
position: relative; | |
bottom: 1px; | |
} | |
.md-alert { | |
box-shadow: 0 0 5px 0 #5555557f; | |
padding-top: 0.1em; | |
padding-bottom: 0.1em; | |
width: inherit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typora 1.8 新增了 GitHub 风格的警示块,形如:
但是默认的样式存在一些小问题,比如:
为了解决这些问题,我写了这个简单的样式复写。只需要将该文件下载后放在 Typora 的主题文件夹中即可。