Skip to content

Commit

Permalink
icons
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 5, 2023
1 parent 5a932b8 commit e665afd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
2 changes: 2 additions & 0 deletions emanote/default/templates/filters/callout-icon-failure.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
3 changes: 3 additions & 0 deletions emanote/default/templates/filters/callout-icon-note.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
3 changes: 3 additions & 0 deletions emanote/default/templates/filters/callout-icon-tip.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<path
d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z">
</path>
3 changes: 3 additions & 0 deletions emanote/default/templates/filters/callout-icon-warning.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path>
<line x1="12" y1="9" x2="12" y2="13"></line>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
17 changes: 9 additions & 8 deletions emanote/default/templates/filters/callout.tpl
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<div data-callout-metadata="" data-callout-fold="" data-callout="${callout:type}" class="callout">
<path
d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z">
</path>
<div class="callout-title">
<!-- TODO: per-callout icon -->
<div class="callout-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-flame">
<path
d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z">
</path>
</svg></div>
<div class="callout-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5">
<apply template="/templates/filters/callout-icon-${callout:type}" />
</svg>
</div>
<div class="callout-title-inner">
<callout:title />
</div>
Expand Down

0 comments on commit e665afd

Please sign in to comment.