Reorganizing footer. Adding it to blog layout.

This commit is contained in:
Karol Orzeł 2015-01-23 12:18:42 +01:00
parent 278e731ebd
commit 05bcfb4f95
7 changed files with 165 additions and 162 deletions

View file

@ -73,19 +73,19 @@ b, strong, label, th {
-moz-transition: all 0.5s ease; -moz-transition: all 0.5s ease;
transition: all 0.5s ease; } transition: all 0.5s ease; }
.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .modular .footer { .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .footer {
padding-left: 14rem; padding-left: 14rem;
padding-right: 14rem; } padding-right: 14rem; }
@media only all and (min-width: 60em) and (max-width: 74.938em) { @media only all and (min-width: 60em) and (max-width: 74.938em) {
.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .modular .footer { .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .footer {
padding-left: 7rem; padding-left: 7rem;
padding-right: 7rem; } } padding-right: 7rem; } }
@media only all and (min-width: 48em) and (max-width: 59.938em) { @media only all and (min-width: 48em) and (max-width: 59.938em) {
.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .modular .footer { .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .footer {
padding-left: 7rem; padding-left: 7rem;
padding-right: 7rem; } } padding-right: 7rem; } }
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {
.padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .modular .footer { .padding-horiz, .fullwidth #header, .fullwidth #breadcrumbs, .fullwidth .blog-header, .fullwidth .blog-content-item, .fullwidth .content-wrapper, .fullwidth ul.pagination, .fullwidth #body > .modular-row, #body, #header, .footer {
padding-left: 5rem; padding-left: 5rem;
padding-right: 5rem; } } padding-right: 5rem; } }
@ -243,6 +243,148 @@ b, strong, label, th {
.header-image #header #navbar ul.navigation ul li a:hover { .header-image #header #navbar ul.navigation ul li a:hover {
color: #558042; } color: #558042; }
.footer {
font-size: 0.9rem;
background: #333;
width: 100%;
padding-top: 2rem; }
.footer:after {
content: "";
display: table;
clear: both; }
.footer a {
color: #9A9898; }
.footer h4 {
line-height: 2rem;
margin-top: 0;
text-align: left;
color: #fff; }
.footer hr {
border-color: rgba(154, 152, 152, 0.5); }
@media only all and (max-width: 47.938em) {
.footer .social-icons {
float: none;
clear: both;
width: 100%;
padding-top: 2rem; } }
@media only all and (min-width: 48em) and (max-width: 59.938em) {
.footer .social-icons {
float: none;
clear: both;
width: 100%;
padding-top: 2rem; } }
.footer .footer-items {
margin-top: 2rem; }
@media only all and (max-width: 47.938em) {
.footer .footer-items {
margin-top: 0; } }
@supports not (flex-wrap: wrap) {
.footer .footer-items {
overflow: hidden; } }
.footer .footer-items:after {
content: "";
display: table;
clear: both; }
.footer .footer-module {
display: block;
float: left;
width: 20%;
vertical-align: top;
padding-right: 2rem; }
.footer .footer-module.large {
width: 40%; }
@media only all and (min-width: 30.063em) and (max-width: 47.938em) {
.footer .footer-module {
margin-top: 1rem;
width: 50%; } }
@media only all and (max-width: 30em) {
.footer .footer-module {
margin-top: 1rem;
width: 100%; } }
.footer .footer-module span:after {
content: "";
display: table;
clear: both; }
.footer .footer-module strong, .footer .footer-module label, .footer .footer-module th {
color: #fff; }
@media only all and (max-width: 47.938em) {
.footer .footer-module {
width: 100% !important;
float: none; } }
.footer .logo {
border-bottom: 0 none;
color: #fff; }
.footer .logo:after {
content: "";
display: table;
clear: both; }
.footer .logo h3 a {
color: #fff; }
.footer .quickmenu {
margin: 0;
padding: 0;
list-style: none; }
.footer .quickmenu i {
padding-right: 0.5rem;
color: #fff;
font-size: 0.7rem; }
.footer .footer-modules {
display: block;
padding-bottom: 1.5rem; }
.footer .footer-modules:after {
content: "";
display: table;
clear: both; }
.footer .footer-copyright {
width: 50%;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
display: inline-block;
float: left;
text-align: left;
text-transform: uppercase; }
@media only all and (max-width: 47.938em) {
.footer .footer-copyright {
width: 100%;
float: none;
text-align: left;
margin-bottom: 1rem; } }
.footer .footer-menu {
float: right;
display: inline-block;
width: 50%;
text-align: right;
text-transform: uppercase;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; }
@media only all and (max-width: 47.938em) {
.footer .footer-menu {
width: 100%;
float: none;
text-align: left; } }
.footer .footer-menu ul {
margin: 0;
padding: 0;
list-style: none; }
.footer .footer-menu ul li {
display: inline-block; }
.footer .footer-menu ul li:after {
content: "/";
margin: 0 0.5rem;
display: inline-block; }
.footer .footer-menu ul li:last-child:after {
display: none; }
.footer .newsletter input {
display: inline-block;
height: 2.5rem;
border: 0 none; }
.footer .newsletter input[type=text] {
background-color: rgba(255, 255, 255, 0.2);
color: #fff; }
.footer .newsletter input[type=submit] {
background-color: rgba(255, 255, 255, 0.5);
color: #fff;
padding: 0 1.2rem;
vertical-align: top; }
body { body {
font-family: "Helvetica Neue", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, "Lucida Grande", sans-serif; font-family: "Helvetica Neue", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 400; } font-weight: 400; }
@ -998,148 +1140,6 @@ ul.pagination {
.modular .bottom .button:hover { .modular .bottom .button:hover {
background-color: #558042; } background-color: #558042; }
.modular .footer {
font-size: 0.9rem;
background: #333;
width: 100%;
padding-top: 4rem; }
.modular .footer:after {
content: "";
display: table;
clear: both; }
.modular .footer a {
color: #9A9898; }
.modular .footer h4 {
line-height: 2rem;
margin-top: 0;
text-align: left;
color: #fff; }
.modular .footer hr {
border-color: rgba(154, 152, 152, 0.5); }
@media only all and (max-width: 47.938em) {
.modular .footer .social-icons {
float: none;
clear: both;
width: 100%;
padding-top: 2rem; } }
@media only all and (min-width: 48em) and (max-width: 59.938em) {
.modular .footer .social-icons {
float: none;
clear: both;
width: 100%;
padding-top: 2rem; } }
.modular .footer .footer-items {
margin-top: 2rem; }
@media only all and (max-width: 47.938em) {
.modular .footer .footer-items {
margin-top: 0; } }
@supports not (flex-wrap: wrap) {
.modular .footer .footer-items {
overflow: hidden; } }
.modular .footer .footer-items:after {
content: "";
display: table;
clear: both; }
.modular .footer .footer-module {
display: block;
float: left;
width: 20%;
vertical-align: top;
padding-right: 2rem; }
.modular .footer .footer-module.large {
width: 40%; }
@media only all and (min-width: 30.063em) and (max-width: 47.938em) {
.modular .footer .footer-module {
margin-top: 1rem;
width: 50%; } }
@media only all and (max-width: 30em) {
.modular .footer .footer-module {
margin-top: 1rem;
width: 100%; } }
.modular .footer .footer-module span:after {
content: "";
display: table;
clear: both; }
.modular .footer .footer-module strong, .modular .footer .footer-module label, .modular .footer .footer-module th {
color: #fff; }
@media only all and (max-width: 47.938em) {
.modular .footer .footer-module {
width: 100% !important;
float: none; } }
.modular .footer .logo {
border-bottom: 0 none;
color: #fff; }
.modular .footer .logo:after {
content: "";
display: table;
clear: both; }
.modular .footer .logo h3 a {
color: #fff; }
.modular .footer .quickmenu {
margin: 0;
padding: 0;
list-style: none; }
.modular .footer .quickmenu i {
padding-right: 0.5rem;
color: #fff;
font-size: 0.7rem; }
.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%;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
display: inline-block;
float: left;
text-align: left;
text-transform: uppercase; }
@media only all and (max-width: 47.938em) {
.modular .footer .footer-copyright {
width: 100%;
float: none;
text-align: left;
margin-bottom: 1rem; } }
.modular .footer .footer-menu {
float: right;
display: inline-block;
width: 50%;
text-align: right;
text-transform: uppercase;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; }
@media only all and (max-width: 47.938em) {
.modular .footer .footer-menu {
width: 100%;
float: none;
text-align: left; } }
.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; }
.modular .footer .newsletter input {
display: inline-block;
height: 2.5rem;
border: 0 none; }
.modular .footer .newsletter input[type=text] {
background-color: rgba(255, 255, 255, 0.2);
color: #fff; }
.modular .footer .newsletter input[type=submit] {
background-color: rgba(255, 255, 255, 0.5);
color: #fff;
padding: 0 1.2rem;
vertical-align: top; }
.callout { .callout {
background: #EEEEEE; background: #EEEEEE;
padding: 2rem 0.938rem; padding: 2rem 0.938rem;

File diff suppressed because one or more lines are too long

View file

@ -30,6 +30,9 @@
// Header // Header
@import "template/header"; @import "template/header";
// Footer
@import "template/footer";
// Typography // Typography
@import "template/typography"; @import "template/typography";

View file

@ -1,11 +1,9 @@
// Modular Showcase styling .footer {
.modular {
.footer {
font-size: $core-font-size - 0.1rem; font-size: $core-font-size - 0.1rem;
background: #333; background: #333;
width: 100%; width: 100%;
@extend .padding-horiz; @extend .padding-horiz;
padding-top: 4rem; padding-top: 2rem;
@include clearfix; @include clearfix;
a { a {
color: $core-text; color: $core-text;
@ -159,5 +157,4 @@
vertical-align: top; vertical-align: top;
} }
} }
} }
}

View file

@ -1,7 +1,6 @@
@import "showcase"; @import "showcase";
@import "features"; @import "features";
@import "bottom"; @import "bottom";
@import "footer";
@import "text"; @import "text";
.logo { .logo {

View file

@ -8,11 +8,11 @@
{% endblock %} {% endblock %}
</div> </div>
{% if page.header.description %} {% if site.footer.description %}
<p>{{ page.header.description }}</p> <p>{{ site.footer.description }}</p>
{% endif %} {% endif %}
</div> </div>
<div class="footer-module"><h4>{{ page.header.contact_title }}</h4> <div class="footer-module"><h4>{{ site.footer.contact_title }}</h4>
<p> <p>
{% for item in site.contact.address %} {% for item in site.contact.address %}
<span>{{ item.line }}</span> <span>{{ item.line }}</span>
@ -21,7 +21,7 @@
<p>{{ site.author.email }}</p> <p>{{ site.author.email }}</p>
<p><strong>{{ site.contact.gps }}</strong></p> <p><strong>{{ site.contact.gps }}</strong></p>
</div> </div>
<div class="footer-module"><h4>{{ page.header.links_title }}</h4> <div class="footer-module"><h4>{{ site.footer.links_title }}</h4>
<ul class="quickmenu"> <ul class="quickmenu">
{% for module in site.quicklinks %} {% for module in site.quicklinks %}
<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="#{{ module.url }}">{{ module.text }}</a></li>
@ -29,8 +29,8 @@
</ul> </ul>
</div> </div>
<div class="footer-module"> <div class="footer-module">
<h4>{{ page.header.newsletter_title }}</h4> <h4>{{ site.footer.newsletter_title }}</h4>
<p>{{ page.header.newsletter_description }}</p> <p>{{ site.footer.newsletter_description }}</p>
<form action="https://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('https://feedburner.google.com/fb/a/mailverify?uri=karolorzel', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" class="newsletter"> <form action="https://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('https://feedburner.google.com/fb/a/mailverify?uri=karolorzel', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" class="newsletter">
<input type="text" name="email" value="Email" onclick="if(this.value=='Email')this.value='';" onblur="if(this.value=='')this.value='Email';"/> <input type="text" name="email" value="Email" onclick="if(this.value=='Email')this.value='';" onblur="if(this.value=='')this.value='Email';"/>
@ -40,7 +40,7 @@
</form> </form>
</div> </div>
</div> </div>
{{ content }} <hr>
<div class="footer-modules"> <div class="footer-modules">
<div class="footer-copyright"> <div class="footer-copyright">
{{ site.author.copyright }} {{ site.author.copyright }}

View file

@ -62,6 +62,10 @@
{% block body %} {% block body %}
<section id="body" class="{{ class }}"> <section id="body" class="{{ class }}">
{% block content %}{% endblock %} {% block content %}{% endblock %}
{% block footer %}
{% include 'modular/footer.html.twig' %}
{% endblock %}
</section> </section>
{% endblock %} {% endblock %}