Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/default.tmpl

Issue 29720633: Noissue - Added .body-container to provide padding-top for body content and avoid navbar overlap (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org
Patch Set: Created March 12, 2018, 5 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/img/hero-video-2x.jpg ('k') | templates/minimal.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/default.tmpl
===================================================================
--- a/templates/default.tmpl
+++ b/templates/default.tmpl
@@ -27,42 +27,44 @@
{% block head %}
{{head|safe}}
{% endblock %}
</head>
<body>
<? include navbar ?>
- <div id="content" class="container content {{ localefile == "index" and page }}">
- {% if not noheading %}
- <h1>{{title|translate("title")}}</h1>
- {% endif %}
+ <div class="body-container">
+ <div id="content" class="container content {{ localefile == "index" and page }}">
+ {% if not noheading %}
+ <h1>{{title|translate("title")}}</h1>
+ {% endif %}
- {% if not notoc %}
- {% macro toc(toclist) %}
- <ul>
- {% for item in toclist %}
- <li>
- <a href="#{{item.anchor}}">{{item.title}}</a>
- {% if item.subitems %}{{toc(item.subitems)}}{% endif %}
- </li>
- {% endfor %}
- </ul>
- {% endmacro %}
+ {% if not notoc %}
+ {% macro toc(toclist) %}
+ <ul>
+ {% for item in toclist %}
+ <li>
+ <a href="#{{item.anchor}}">{{item.title}}</a>
+ {% if item.subitems %}{{toc(item.subitems)}}{% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ {% endmacro %}
- {% set toclist = body|toclist %}
- {% if toclist %}
- <div class="toc">
- {{toc(toclist)}}
- </div>
+ {% set toclist = body|toclist %}
+ {% if toclist %}
+ <div class="toc">
+ {{toc(toclist)}}
+ </div>
+ {% endif %}
{% endif %}
- {% endif %}
- {% block body %}
- {{body|safe}}
- {% endblock %}
+ {% block body %}
+ {{body|safe}}
+ {% endblock %}
+ </div>
</div>
<? include footer ?>
<? include scripts ?>
</body>
</html>
« no previous file with comments | « static/img/hero-video-2x.jpg ('k') | templates/minimal.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld