-
-
Save liamcain/a7bf03e2199b53f2abbc62afbc45fcea to your computer and use it in GitHub Desktop.
Callout styling for Minimal Theme
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
.callout { | |
background-color: var(--ui1); | |
border: none; | |
border-radius: 8px; | |
} | |
.callout-title { | |
align-items: center; | |
color: var(--text-muted); | |
padding: 10px 12px; | |
} | |
.callout-fold { | |
display: flex; | |
align-items: center; | |
} | |
.callout-title-inner { | |
font-variant: var(--h6-variant); | |
letter-spacing: 0.02em; | |
font-size: var(--h6); | |
color: var(--h6-color); | |
font-weight: var(--h6-weight); | |
font-style: var(--h6-style); | |
} | |
.callout-content { | |
margin-top: -1em; | |
} | |
.callout-title { | |
background-color: unset; | |
} | |
.callout-icon { | |
color: var(--text-muted); | |
} | |
.callout[data-callout="meta"] { | |
--callout-icon: list; | |
} | |
.theme-dark .callout :not(pre) > code[class*="language-"], | |
.theme-dark .callout pre[class*="language-"], | |
.theme-light .callout :not(pre) > code[class*="language-"], | |
.theme-light .callout pre[class*="language-"] { | |
background-color: transparent; | |
} | |
/* TODO callout */ | |
.mod-root .workspace-leaf-content[data-type="markdown"] .callout .nav-header { | |
border: none; | |
} | |
/* HACK: hide the edit button in Live Preview for callouts */ | |
.markdown-source-view.mod-cm6 .cm-callout .edit-block-button { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment