Polishing footer

This commit is contained in:
Karol Orzeł 2015-01-19 12:43:44 +01:00
parent e6d1e26eb3
commit 10df81cded
4 changed files with 146 additions and 55 deletions

View file

@ -904,6 +904,44 @@ ul.pagination {
content: ""; content: "";
display: table; display: table;
clear: both; } clear: both; }
.modular .footer .quickmenu {
margin: 0;
padding: 0;
list-style: none; }
.modular .footer .quickmenu i {
padding-right: 0.5rem;
color: #fff; }
.modular .footer .quickmenu li a {
color: #9A9898; }
.modular .footer .footer-modules {
display: block;
padding-bottom: 1.5rem; }
.modular .footer .footer-modules:after {
content: "";
display: table;
clear: both; }
.modular .footer .footer-copyright {
width: 50%;
display: inline-block;
float: left;
text-align: left; }
.modular .footer .footer-menu {
float: right;
display: inline-block;
width: 50%;
text-align: right; }
.modular .footer .footer-menu ul {
margin: 0;
padding: 0;
list-style: none; }
.modular .footer .footer-menu ul li {
display: inline-block; }
.modular .footer .footer-menu ul li:after {
content: "/";
margin: 0 0.5rem;
display: inline-block; }
.modular .footer .footer-menu ul li:last-child:after {
display: none; }
.callout { .callout {
background: #EEEEEE; background: #EEEEEE;

File diff suppressed because one or more lines are too long

View file

@ -25,32 +25,79 @@
.footer-module { .footer-module {
&.large { &.large {
width: 40%; width: 40%;
} }
display:block; display:block;
float: left; float: left;
width: 20%; width: 20%;
vertical-align: top; vertical-align: top;
padding-right: 2rem; padding-right: 2rem;
@include breakpoint(large-mobile-range) { @include breakpoint(large-mobile-range) {
margin-top: 1rem; margin-top: 1rem;
width: 50%; width: 50%;
}
@include breakpoint(small-mobile-range) {
margin-top: 1rem;
width: 100%;
}
span {
@include clearfix;
}
strong {
color: $white;
}
} }
.logo { @include breakpoint(small-mobile-range) {
border-bottom: 0 none; margin-top: 1rem;
width: 100%;
}
span {
@include clearfix; @include clearfix;
}
strong {
color: $white; color: $white;
} }
hr {} }
.logo {
border-bottom: 0 none;
@include clearfix;
color: $white;
}
.quickmenu {
margin: 0;
padding: 0;
list-style: none;
i {
padding-right: 0.5rem;
color: $white;
}
li a {
color: $core-text;
}
}
.footer-modules {
@include clearfix;
display: block;
padding-bottom: 1.5rem;
}
.footer-copyright {
width: 50%;
display: inline-block;
float: left;
text-align: left;
}
.footer-menu {
float: right;
display: inline-block;
width: 50%;
text-align: right;
ul {
margin: 0;
padding: 0;
list-style: none;
li {
display: inline-block;
&:after {
content: "/";
margin: 0 0.5rem;
display: inline-block;
}
&:last-child {
&:after {
display: none;
}
}
} }
} }
}
}
}

View file

@ -1,42 +1,48 @@
<div class="modular-row footer {{ page.header.class}}"> <div class="modular-row footer {{ page.header.class}}">
<div class="footer-items"> <div class="footer-items">
<div class="footer-module large"> <div class="footer-module large">
<div class="logo"> <div class="logo">
<h3><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h3> <h3><a href="{{ base_url == '' ? '/' : base_url }}">{{ config.site.title }}</a></h3>
{% block social %} {% block social %}
{% include 'partials/social.html.twig' %} {% include 'partials/social.html.twig' %}
{% endblock %} {% endblock %}
</div>
{% if page.header.description %}
<p>{{ page.header.description }}</p>
{% endif %}
</div> </div>
{% if page.header.description %} <div class="footer-module"><h4>{{ page.header.contact_title }}</h4>
<p>{{ page.header.description }}</p> <p>
{% endif %} {% for item in site.contact.address %}
</div> <span>{{ item.line }}</span>
<div class="footer-module"><h4>{{ page.header.contact_title }}</h4> {% endfor %}
<p> </p>
{% for item in site.contact.address %} <p>{{ site.author.email }}</p>
<span>{{ item.line }}</span> <p><strong>{{ site.contact.gps }}</strong></p>
{% endfor %} </div>
</p> <div class="footer-module"><h4>{{ page.header.links_title }}</h4>
<p>{{ site.author.email }}</p>
<p><strong>{{ site.contact.gps }}</strong></p>
</div>
<div class="footer-module"><h4>{{ page.header.links_title }}</h4>
<ul class="quickmenu"> <ul class="quickmenu">
{% for module in site.quicklinks %}
{% for module in page.collection() %} <li><i class="fa fa-chevron-right"></i><a href="#{{ module.url }}">{{ module.text }}</a></li>
<li><i class="fa fa-chevron-right"></i><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li> {% endfor %}
{% endfor %} </ul>
</ul>
</div> </div>
<div class="footer-module"> <div class="footer-module">
<h4>{{ page.header.newsletter_title }}</h4> <h4>{{ page.header.newsletter_title }}</h4>
<p>{{ page.header.newsletter_description }}</p> <p>{{ page.header.newsletter_description }}</p>
</div> </div>
</div>
{{ content }}
<div class="footer-modules">
<div class="footer-copyright">
{{ site.author.copyright }}
</div>
<div class="footer-menu">
<ul class="othermenu">
{% for module in site.othermenu %}
<li><a href="#{{ module.url }}">{{ module.text }}</a></li>
{% endfor %}
</ul>
</div> </div>
{{ content }}
</div> </div>
</div> </div>