Skip to content

Commit

Permalink
Style fix for sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
shashigharti committed Aug 30, 2023
1 parent 1055300 commit 1345acf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion static/css/styles.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions templates/menu/menu_sitemap.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% load menu_tags %}
{% for child in children %}
<li>
<a
<a class="font-bold"
href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">
{{ child.get_menu_title }}
</a>
{% if child.children %}
<ul>
<ul class="submenu">
{% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
</ul>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions templates/sitemap.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{% endblock %}

{% block body %}
<div class='row'>
<div class='main col-md-12'>
<div class='row site-map sect -tighten-3'>
<div class=''>
<ul>
{% show_menu 0 100 100 100 "menu/menu_sitemap.html" %}
</ul>
Expand Down
5 changes: 5 additions & 0 deletions templates/styles/components/_site-map.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.site-map {
.submenu {
@apply ml-5;
}
}
1 change: 1 addition & 0 deletions templates/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
@import './components/_card-person.css';
@import './components/_list.css';
@import './components/_page-closing.css';
@import './components/_site-map.css';


:root {
Expand Down

0 comments on commit 1345acf

Please sign in to comment.