-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
812f92e
commit d625ca5
Showing
2 changed files
with
86 additions
and
102 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
.callout { | ||
--callout-icon: circle; /* default callout icon (lucid icon) */ | ||
--icon-stroke: 2px; | ||
--callout-border-width: 1.5px; | ||
--callout-padding: 0; | ||
--callout-radius: var(--radius-s); | ||
background-color: rgb(var(--callout-color), 11%); | ||
} | ||
|
||
.HyperMD-callout.HyperMD-callout.HyperMD-callout.HyperMD-callout { | ||
background-color: var(--bg4); | ||
} | ||
|
||
.cm-hmd-callout.cm-hmd-callout.cm-hmd-callout { | ||
color: var(--secondary-accent); | ||
} | ||
|
||
.callout-title { | ||
padding: 3px 6px; | ||
background-color: rgb(var(--callout-color), 15%); | ||
border-bottom: var(--callout-border-width) | ||
/* stylelint-disable-next-line color-function-notation */ | ||
solid rgb(var(--callout-color), var(--callout-border-opacity)); | ||
} | ||
|
||
.HyperMD-callout, | ||
.callout-title-inner { | ||
font-weight: 700; | ||
} | ||
|
||
.callout-content { | ||
padding: 2px 8px; | ||
} | ||
|
||
.callout-title-inner, | ||
.callout-icon { | ||
margin-right: 6px; | ||
} | ||
|
||
.callout-title, | ||
body .callout-icon .svg-icon { | ||
color: var(--text-muted); | ||
stroke-width: 3px; | ||
} | ||
|
||
/* interaction of callouts with other markdown syntax */ | ||
.callout-content :is(ul, p, ol) { | ||
margin: 6px 0; | ||
line-height: 1.4em; | ||
} | ||
|
||
.callout-content li { | ||
margin: 5px 0; | ||
line-height: 1.1em; | ||
} | ||
|
||
.callout-content.callout-content ul { | ||
padding-left: 20px; | ||
margin-top: 5px; | ||
} | ||
|
||
.callout-content p + p { | ||
margin-top: 12px; | ||
} | ||
|
||
.callout ol { | ||
padding-inline-start: 1.85em; | ||
margin-top: 4px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.callout ol li::marker { | ||
color: var(--text-gray); | ||
} | ||
|
||
.callout.callout.callout :is(code, pre) { | ||
background-color: var(--bg1); | ||
} | ||
|
||
.callout-content .contains-task-list:only-child { | ||
padding-inline-start: 0; | ||
} | ||
|
||
.callout-content .contains-task-list:only-child .task-list-item-checkbox { | ||
margin-inline-start: 0; | ||
} |
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