mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 22:31:14 +08:00
feat(share): display admonition icons (closes #6733)
This commit is contained in:
parent
5772046674
commit
2a1ecdbdca
1 changed files with 16 additions and 1 deletions
|
|
@ -26,6 +26,7 @@
|
|||
padding: 1em;
|
||||
margin: 1.25em 0;
|
||||
position: relative;
|
||||
padding-inline-start: 2.5em;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
@ -41,4 +42,18 @@
|
|||
.admonition.tip { --accent-color: #40c025; }
|
||||
.admonition.important { --accent-color: #9839f7; }
|
||||
.admonition.caution { --accent-color: #ff2e2e; }
|
||||
.admonition.warning { --accent-color: #e2aa03; }
|
||||
.admonition.warning { --accent-color: #e2aa03; }
|
||||
|
||||
.admonition::before {
|
||||
color: var(--accent-color);
|
||||
font-family: boxicons !important;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
inset-inline-start: 1em;
|
||||
}
|
||||
|
||||
.admonition.note::before { content: "\eb21"; }
|
||||
.admonition.tip::before { content: "\ea0d"; }
|
||||
.admonition.important::before { content: "\ea7c"; }
|
||||
.admonition.caution::before { content: "\eac7"; }
|
||||
.admonition.warning::before { content: "\eac5"; }
|
||||
Loading…
Add table
Reference in a new issue