css-snippets
下载以下css后打开设置
、外观
,点击红框打开css存放文件夹后将css文件复制进该文件夹,然后点击绿框刷新后开启对应的css即可。
1:用于每一行左右均对齐的css
下载 hyphenation-and-justification.css
/* Adjusting markdown text so that it is aligned at both ends */
/* get more snippets at https://github.com/kmaasrud/awesome-obsidian */
/* author: https://forum.obsidian.md/u/boyd/summary */
/* source: https://forum.obsidian.md/t/meta-post-common-css-hacks/1978/25 */
.cm-s-obsidian,
.markdown-preview-view {
text-align: justify;
hyphens: auto;
}
2:用于使markdown图片居中渲染的ccs
/* Rendering a centered image */
img {
display: block !important;
margin-left: auto !important;
margin-right: auto !important;
}
.markdown-source-view.mod-cm6 .cm-content > * {
margin: auto !important;
}
3:用于使状态栏status bar平铺显示的ccs
/* Full status bar */
.status-bar {
--status-bar-position: static; /* Full it. */
--status-bar-radius: 0 0 0 0; /* Make the upper left corner rounded corner disappear. */
}
4:用于更改页边距即增大文字在全屏状态下宽度的css
/* Bigger the text with in every mode */
body{
--file-line-width: 65rem; /* default is 45rem */
}
/* .markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
max-width: 95%;
}
.markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer {
max-width: 95%;
} */
5:用于增大链接预览窗口大小的css
/* Increase the size of the link preview window */
.popover.hover-popover .markdown-embed {
height: 800px;
}
6:更改引用模块的字体颜色使其变成灰色以区分正文文本
/* Change blockquote background color & text color. */
/* .markdown-rendered blockquote {
--blockquote-background-color: #e5e1f7;
}
.markdown-preview-view blockquote {
color: #666666;
} */
/* Just change blockquote text color. */
.markdown-preview-view blockquote {
color: #888888;
}
区别文件夹和文件的icon
下载 custom-icons-differing-files-and-folders.css
然后下载 IcoMoon.io Free Version
解压IcoMoon-Free-master.zip
文件后右键IcoMoon-Free-master\Font\IcoMoon-Free.ttf
文件点击安装,以安装该字体,使得icon可用。其中还有更换其他icon的方法,可以自行更换。
最后笔者File Icon
选择了\e924
,Folder Icon
选择了\e92f
。
更美观醒目的标签渲染结果
这个需要手动配置标签信息,感觉不是很方便。
下载 tag-pills.css