work on layout.css

This commit is contained in:
bkfox
2016-11-16 02:23:36 +01:00
parent fc8b15eb03
commit e5f47be608
8 changed files with 140 additions and 93 deletions

View File

@ -25,6 +25,7 @@
{% block css_extras %}{% endblock %}
{% endblock %}
<script src="{% static 'aircox_cms/js/bootstrap.js' %}"></script>
<script src="{% static 'aircox_cms/js/utils.js' %}"></script>
<script src="{% static 'aircox_cms/js/player.js' %}"></script>
@ -36,7 +37,9 @@
</div>
<header class="header">
<div>
{% render_sections position="header" %}
</div>
</header>
<div class="page flex_row">
@ -71,7 +74,7 @@
</div>
{% block footer %}
<footer class="footer">
<footer class="menu footer">
{% render_sections position="footer" %}
<div class="small float_right">Propulsed by
<a href="https://github.com/bkfox/aircox">Aircox</a>

View File

@ -1,15 +1,10 @@
{% extends "aircox_cms/sections/section_item.html" %}
{% load wagtailimages_tags %}
{% load aircox_cms %}
{% block content %}
{% for item in object_list %}
{% with link=item.as_dict %}
<a href="{{ link.url }}"
{% if item.css_class %}class="{{ item.css_class }}"{% endif %}>
{% if link.icon %}{% image link.icon fill-24x24 class="icon" %}{% endif %}
{{ link.text }}
</a>
{% endwith %}
{% for item in self.links.all %}
{% render_template_mixin item %}
{% endfor %}
{% endblock %}

View File

@ -1,7 +1,5 @@
{% extends "aircox_cms/sections/section_item.html" %}
{% load wagtailimages_tags %}
{% block content %}
{% with link=self.as_dict %}
<a href="{{ link.url }}" {% if self.info %}title="{{ self.info }}"{% endif %}>
{% if link.icon %}
@ -12,6 +10,4 @@
{{ link.text }}
</a>
{% endwith %}
{% endblock %}