Skip to content

Instantly share code, notes, and snippets.

@andrewmcodes
Created June 17, 2022 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewmcodes/d38f9ebcf50d82efbb20f7c09f38b948 to your computer and use it in GitHub Desktop.
Save andrewmcodes/d38f9ebcf50d82efbb20f7c09f38b948 to your computer and use it in GitHub Desktop.
Obsidian CSS Snippets
/* Obsidian CSS Snippets */
/* ==============================
Frontmatter
============================== */
.cm-hmd-frontmatter {
font-size: 10px !important;
}
/* ==============================
Lists
============================== */
/* List item with dash for content */
.markdown-source-view.mod-cm6 .list-bullet:after {
visibility: visible;
position: absolute;
right: 0;
content: '-';
pointer-events: none;
}
/* ==============================
Custom Callouts
Icons: https://lucide.dev/
============================== */
.callout[data-callout="metadata"] {
--callout-color: 14, 165, 233;
--callout-icon: database;
}
.callout[data-callout="highlight"] {
--callout-color: 253, 224, 71;
--callout-icon: highlighter;
}
.callout[data-callout="definition"] {
--callout-color: 253, 224, 71;
--callout-icon: bookmark;
}
.callout-title {
padding: 8px;
}
.callout-content p {
margin: 4px 4px 4px 0;
}
.workspace-tab-header-container {
height: 32px;
background-color: rgba(0, 0, 0, 0.1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment