Skip to content

Commit 709b263

Browse files
committed
Add menu icon macro.
1 parent 3672e86 commit 709b263

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% macro menu_icon(title) %}
2+
<svg class="menu-icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
3+
<title>{{ title }}</title>
4+
<path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/>
5+
</svg>
6+
{% endmacro %}

webpack/app/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "styles/progress-bar.css";
22
@import "styles/header.css";
3+
@import "styles/menu-icon.css";
34
@import "styles/navbar.css";
45
@import "styles/text.css";
56
@import "styles/footer.css";

webpack/app/styles/menu-icon.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.menu-icon {
2+
@apply fill-current h-3 w-3;
3+
}

0 commit comments

Comments
 (0)