Skip to content

Commit

Permalink
Fix icons and build due to jinja changes
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jan 8, 2017
1 parent 03604c5 commit 6d01f17
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
1 change: 1 addition & 0 deletions material/assets/stylesheets/application-96d55a1439.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion material/assets/stylesheets/application-a2651bb338.css

This file was deleted.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% include "partials/fonts.html" %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-a2651bb338.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-96d55a1439.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions material/partials/nav-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
{{ nav_item.title}}
</label>
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}
{% for nav_item in nav_item.children %}
{% set temp = path %}
{% set path = path + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% set path = temp %}
{% with path = base + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>
Expand Down
5 changes: 3 additions & 2 deletions material/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% with path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>
5 changes: 5 additions & 0 deletions src/assets/stylesheets/base/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@
cursor: pointer;
}
}

// Representational classes
.md-icon {
@extend %md-icon;
}
8 changes: 4 additions & 4 deletions src/partials/nav-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
{{ nav_item.title}}
</label>
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}

<!-- Render nested item list -->
{% for nav_item in nav_item.children %}
{% set temp = path %}
{% set path = path + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% set path = temp %}
{% with path = base + "-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>
Expand Down
5 changes: 3 additions & 2 deletions src/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% with path = "nav-" + loop.index | string %}
{% include "partials/nav-item.html" %}
{% endwith %}
{% endfor %}
</ul>
</nav>

0 comments on commit 6d01f17

Please sign in to comment.