Skip to content

Instantly share code, notes, and snippets.

@AWtnb
Created June 19, 2025 07:12
Show Gist options
  • Select an option

  • Save AWtnb/729570a837d164c89b76b12151f09a8d to your computer and use it in GitHub Desktop.

Select an option

Save AWtnb/729570a837d164c89b76b12151f09a8d to your computer and use it in GitHub Desktop.
Obsidian css snippet
* {
font-family: "UDEV Gothic", "HackGen", "PlemolJP";
}
.inline-title {
color: #333;
font-style: normal !important;
font-weight: bold;
font-size: 2em !important;
}
.inline-title::before {
content: "\1F4DD";
}
.inline-title::after {
content: ".md";
color: #00000077;
}
/*
search result pane
.search-result-container
*/
.search-result-container .search-results-children .tree-item-flair {
color: tomato;
}
/*
edit mode
.markdown-source-view
*/
.markdown-source-view mark {
padding: 0;
}
.markdown-source-view pre.HyperMD-list-line {
padding-top: 0;
line-height: 1.5;
}
.markdown-source-view pre.HyperMD-quote .cm-formatting-quote {
padding-left: 14px;
}
/*
preview mode
.markdown-preview-view
*/
.markdown-preview-view thead th {
text-align: center;
}
.markdown-preview-view pre {
line-height: 1.2;
}
.markdown-preview-view code {
color: var(--color-blue);
font-family: "UDEV Gothic", sans-serif;
}
.markdown-preview-view blockquote p {
font-size: 0.9em;
line-height: 1.5;
}
.markdown-preview-view hr {
margin: 2rem 0;
}
.markdown-preview-view ::selection {
background: #2f6890;
color: #c2c2c2;
}
/*
navigation pane
.nav-folder
*/
.nav-folder .nav-folder-children .nav-folder-title-content {
font-weight: bold;
}
.nav-folder .nav-folder-children .nav-folder-title-content::before {
content: "\1F4C1";
}
.nav-file-title:not([data-path$=".md"]) {
/* display: none; */
color: #00000044;
}
/*
Exporting to PDF
*/
@media print {
.markdown-preview-view {
width: 100%;
margin: 0;
float: none;
}
.page-separator {
page-break-before: always;
}
@page {
margin: 10%;
}
body {
line-height: 1.3;
font-size: 14px;
}
.page-separator {
visibility: hidden;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment