Archive implementation

This commit is contained in:
Karol Orzeł 2015-01-26 17:07:30 +01:00
parent 8fe8cd8d97
commit c72bb2c8b0
6 changed files with 143 additions and 25 deletions

View file

@ -8,10 +8,10 @@
-o-transform: translateY(-50%); -o-transform: translateY(-50%);
transform: translateY(-50%); } transform: translateY(-50%); }
.button, .contact button, .button-secondary { .button, .archive-list button, .contact button, .button-secondary {
display: inline-block; display: inline-block;
padding: 7px 20px; } padding: 7px 20px; }
.button-small.button, .contact button.button-small, .button-small.button-secondary { .button-small.button, .archive-list button.button-small, .contact button.button-small, .button-small.button-secondary {
padding: 3px 10px; padding: 3px 10px;
font-size: 0.9rem; } font-size: 0.9rem; }
@ -68,7 +68,7 @@ b, strong, label, th {
src: url("./fonts/Novecentosanswide-Medium-webfont.eot?#iefix") format("embedded-opentype"), url("./fonts/Novecentosanswide-Medium-webfont.woff2") format("woff2"), url("./fonts/Novecentosanswide-Medium-webfont.woff") format("woff"), url("./fonts/Novecentosanswide-Medium-webfont.ttf") format("truetype"), url("./fonts/Novecentosanswide-Medium-webfont.svg#novecento_sans_widemedium") format("svg"); src: url("./fonts/Novecentosanswide-Medium-webfont.eot?#iefix") format("embedded-opentype"), url("./fonts/Novecentosanswide-Medium-webfont.woff2") format("woff2"), url("./fonts/Novecentosanswide-Medium-webfont.woff") format("woff"), url("./fonts/Novecentosanswide-Medium-webfont.ttf") format("truetype"), url("./fonts/Novecentosanswide-Medium-webfont.svg#novecento_sans_widemedium") format("svg");
font-weight: normal; font-weight: normal;
font-style: normal; } font-style: normal; }
.default-animation, #body, .modular .showcase .button, .modular .showcase .contact button, .contact .modular .showcase button, .modular .slideme_container .arrow, .modular .slideme_container .pagination .numbers li, .modular .bottom .button, .modular .bottom .contact button, .contact .modular .bottom button, .contact button, .callout .notebook .screen .screen-content-hover, .logo h3, .logo ul.social-icons li, .logo ul.social-icons li a { .default-animation, #body, .archive-list button, .modular .showcase .button, .modular .showcase .archive-list button, .archive-list .modular .showcase button, .modular .showcase .contact button, .contact .modular .showcase button, .modular .slideme_container .arrow, .modular .slideme_container .pagination .numbers li, .modular .bottom .button, .modular .bottom .archive-list button, .archive-list .modular .bottom button, .modular .bottom .contact button, .contact .modular .bottom button, .contact button, .callout .notebook .screen .screen-content-hover, .logo h3, .logo ul.social-icons li, .logo ul.social-icons li a {
-webkit-transition: all 0.5s ease; -webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease; -moz-transition: all 0.5s ease;
transition: all 0.5s ease; } transition: all 0.5s ease; }
@ -274,7 +274,7 @@ b, strong, label, th {
clear: both; } clear: both; }
.footer a { .footer a {
color: #9A9898; } color: #9A9898; }
.footer h4, .footer .contact label, .contact .footer label { .footer h4, .footer .archive-list label, .archive-list .footer label, .footer .contact label, .contact .footer label {
line-height: 2rem; line-height: 2rem;
margin-top: 0; margin-top: 0;
text-align: left; text-align: left;
@ -409,7 +409,7 @@ 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; }
h1, h2, h3, h4, .contact label, h5, h6 { h1, h2, h3, h4, .archive-list label, .contact label, h5, h6 {
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-rendering: optimizeLegibility; } text-rendering: optimizeLegibility; }
@ -439,17 +439,17 @@ h2 {
h3 { h3 {
font-size: -1rem; } } font-size: -1rem; } }
h4, .contact label { h4, .archive-list label, .contact label {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: normal; font-weight: normal;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
color: #656161; } color: #656161; }
@media only all and (min-width: 48em) and (max-width: 59.938em) { @media only all and (min-width: 48em) and (max-width: 59.938em) {
h4, .contact label { h4, .archive-list label, .contact label {
font-size: 1.35rem; } } font-size: 1.35rem; } }
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {
h4, .contact label { h4, .archive-list label, .contact label {
font-size: 1.25rem; } } font-size: 1.25rem; } }
h1 { h1 {
@ -608,14 +608,14 @@ td {
padding: 0.5rem; padding: 0.5rem;
border: 1px solid #d8d8d8; } border: 1px solid #d8d8d8; }
.button, .contact button { .button, .archive-list button, .contact button {
background: #87b672; background: #87b672;
color: #fff; color: #fff;
border: 1px solid #87b672; } border: 1px solid #87b672; }
.button:hover, .contact button:hover { .button:hover, .archive-list button:hover, .contact button:hover {
background: #fff; background: #fff;
color: #87b672; } color: #87b672; }
.button:active, .contact button:active { .button:active, .archive-list button:active, .contact button:active {
box-shadow: 0 1px 0 #679b50; } box-shadow: 0 1px 0 #679b50; }
.button-secondary { .button-secondary {
@ -755,12 +755,12 @@ td {
border-bottom: 0; } border-bottom: 0; }
.list-item .list-blog-header { .list-item .list-blog-header {
position: relative; } position: relative; }
.list-item .list-blog-header h4, .list-item .list-blog-header .contact label, .contact .list-item .list-blog-header label { .list-item .list-blog-header h4, .list-item .list-blog-header .archive-list label, .archive-list .list-item .list-blog-header label, .list-item .list-blog-header .contact label, .contact .list-item .list-blog-header label {
text-align: left; text-align: left;
margin-bottom: 1.5rem; } margin-bottom: 1.5rem; }
.list-item .list-blog-header h4 a, .list-item .list-blog-header .contact label a, .contact .list-item .list-blog-header label a { .list-item .list-blog-header h4 a, .list-item .list-blog-header .archive-list label a, .archive-list .list-item .list-blog-header label a, .list-item .list-blog-header .contact label a, .contact .list-item .list-blog-header label a {
color: #656161; } color: #656161; }
.list-item .list-blog-header h4 a:hover, .list-item .list-blog-header .contact label a:hover, .contact .list-item .list-blog-header label a:hover { .list-item .list-blog-header h4 a:hover, .list-item .list-blog-header .archive-list label a:hover, .archive-list .list-item .list-blog-header label a:hover, .list-item .list-blog-header .contact label a:hover, .contact .list-item .list-blog-header label a:hover {
color: #87b672; } color: #87b672; }
.list-item .list-blog-header img { .list-item .list-blog-header img {
display: block; display: block;
@ -858,7 +858,7 @@ div#breadcrumbs {
padding-left: 0; } } padding-left: 0; } }
#sidebar .sidebar-content { #sidebar .sidebar-content {
margin-bottom: 3rem; } margin-bottom: 3rem; }
#sidebar .sidebar-content h4, #sidebar .sidebar-content .contact label, .contact #sidebar .sidebar-content label { #sidebar .sidebar-content h4, #sidebar .sidebar-content .archive-list label, .archive-list #sidebar .sidebar-content label, #sidebar .sidebar-content .contact label, .contact #sidebar .sidebar-content label {
margin-bottom: 1rem; margin-bottom: 1rem;
text-align: left; } text-align: left; }
#sidebar .sidebar-content p, #sidebar .sidebar-content ul { #sidebar .sidebar-content p, #sidebar .sidebar-content ul {
@ -872,6 +872,36 @@ ul.pagination {
margin-top: 5rem; margin-top: 5rem;
text-align: center; } text-align: center; }
.archive-list h4, .archive-list label {
text-align: left; }
.archive-list input {
width: 50%;
line-height: 2rem; }
@media only all and (max-width: 47.938em) {
.archive-list input {
min-width: 80%; } }
@media only all and (min-width: 48em) and (max-width: 59.938em) {
.archive-list input {
min-width: 70%; } }
.archive-list textarea {
min-width: 80%;
min-height: 25rem; }
@media only all and (max-width: 47.938em) {
.archive-list textarea {
min-width: 100%; } }
@media only all and (min-width: 48em) and (max-width: 59.938em) {
.archive-list textarea {
min-width: 90%; } }
.archive-list input, .archive-list textarea {
border: 0 none;
background: rgba(154, 152, 152, 0.2);
box-shadow: none; }
.archive-list label {
font-size: 1rem; }
.archive-list button {
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-transform: uppercase; }
#error { #error {
text-align: center; text-align: center;
display: flex; display: flex;
@ -976,7 +1006,7 @@ ul.pagination {
padding-right: 0; padding-right: 0;
margin-left: 4rem; margin-left: 4rem;
margin-right: 4rem; } } margin-right: 4rem; } }
.modular .showcase .button, .modular .showcase .contact button, .contact .modular .showcase button { .modular .showcase .button, .modular .showcase .archive-list button, .archive-list .modular .showcase button, .modular .showcase .contact button, .contact .modular .showcase button {
color: #FFFFFF; color: #FFFFFF;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
padding: 0.3rem 1rem; padding: 0.3rem 1rem;
@ -985,7 +1015,7 @@ ul.pagination {
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
font-size: 1rem; } font-size: 1rem; }
.modular .showcase .button:hover, .modular .showcase .contact button:hover, .contact .modular .showcase button:hover { .modular .showcase .button:hover, .modular .showcase .archive-list button:hover, .archive-list .modular .showcase button:hover, .modular .showcase .contact button:hover, .contact .modular .showcase button:hover {
background: rgba(255, 255, 255, 0.2); } background: rgba(255, 255, 255, 0.2); }
.modular .slideme_container .arrow { .modular .slideme_container .arrow {
position: absolute; position: absolute;
@ -1075,7 +1105,7 @@ ul.pagination {
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {
.modular .features p { .modular .features p {
font-size: 1rem; } } font-size: 1rem; } }
.modular .features .button, .modular .features .contact button, .contact .modular .features button { .modular .features .button, .modular .features .archive-list button, .archive-list .modular .features button, .modular .features .contact button, .contact .modular .features button {
background-color: #87b672; background-color: #87b672;
color: #FFFFFF; color: #FFFFFF;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
@ -1104,7 +1134,7 @@ ul.pagination {
width: 100%; } } width: 100%; } }
.modular .features .feature i.fa { .modular .features .feature i.fa {
font-size: 2rem; } font-size: 2rem; }
.modular .features .feature h4, .modular .features .feature .contact label, .contact .modular .features .feature label { .modular .features .feature h4, .modular .features .feature .archive-list label, .archive-list .modular .features .feature label, .modular .features .feature .contact label, .contact .modular .features .feature label {
margin: 0; margin: 0;
font-size: 1.1rem; } font-size: 1.1rem; }
.modular .features .feature p { .modular .features .feature p {
@ -1126,7 +1156,7 @@ ul.pagination {
padding-right: 2rem; } padding-right: 2rem; }
.modular .features.big .feature-content.icon-offset { .modular .features.big .feature-content.icon-offset {
margin-left: 1rem; } margin-left: 1rem; }
.modular .features.big .feature-content h4, .modular .features.big .feature-content .contact label, .contact .modular .features.big .feature-content label { .modular .features.big .feature-content h4, .modular .features.big .feature-content .archive-list label, .archive-list .modular .features.big .feature-content label, .modular .features.big .feature-content .contact label, .contact .modular .features.big .feature-content label {
font-size: 1.2rem; } font-size: 1.2rem; }
.modular .features.big .feature-content p { .modular .features.big .feature-content p {
padding: 0; } padding: 0; }
@ -1148,7 +1178,7 @@ ul.pagination {
@media only all and (max-width: 47.938em) { @media only all and (max-width: 47.938em) {
.modular .bottom p { .modular .bottom p {
font-size: 1rem; } } font-size: 1rem; } }
.modular .bottom .button, .modular .bottom .contact button, .contact .modular .bottom button { .modular .bottom .button, .modular .bottom .archive-list button, .archive-list .modular .bottom button, .modular .bottom .contact button, .contact .modular .bottom button {
background-color: #87b672; background-color: #87b672;
color: #FFFFFF; color: #FFFFFF;
font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; font-family: "novecento_sans_widedemibold", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
@ -1156,7 +1186,7 @@ ul.pagination {
box-shadow: none; box-shadow: none;
font-size: 1rem; font-size: 1rem;
border: 0 none; } border: 0 none; }
.modular .bottom .button:hover, .modular .bottom .contact button:hover, .contact .modular .bottom button:hover { .modular .bottom .button:hover, .modular .bottom .archive-list button:hover, .archive-list .modular .bottom button:hover, .modular .bottom .contact button:hover, .contact .modular .bottom button:hover {
background-color: #558042; } background-color: #558042; }
.modular .bottom.borderbottom { .modular .bottom.borderbottom {
padding-bottom: 0; } padding-bottom: 0; }
@ -1317,7 +1347,7 @@ ul.pagination {
float: left; } float: left; }
.logo h3 a { .logo h3 a {
color: #9A9898; } color: #9A9898; }
.logo h4, .logo .contact label, .contact .logo label { .logo h4, .logo .archive-list label, .archive-list .logo label, .logo .contact label, .contact .logo label {
text-align: left; } text-align: left; }
.logo ul { .logo ul {
margin: 0; margin: 0;

File diff suppressed because one or more lines are too long

View file

@ -54,6 +54,9 @@
// Blog // Blog
@import "template/blog"; @import "template/blog";
// Archive
@import "template/archive";
// Errors // Errors
@import "template/errors"; @import "template/errors";

View file

@ -0,0 +1,41 @@
// Modular Showcase styling
.archive-list {
h4 {
text-align: left;
}
input {
width: 50%;
line-height: 2rem;
@include breakpoint(mobile-only) {
min-width: 80%;
}
@include breakpoint(tablet-range) {
min-width: 70%;
}
}
textarea {
min-width: 80%;
min-height: 25rem;
@include breakpoint(mobile-only) {
min-width: 100%;
}
@include breakpoint(tablet-range) {
min-width: 90%;
}
}
input, textarea {
border: 0 none;
background: transparentize($core-text, 0.8);
box-shadow: none;
}
label {
@extend h4;
font-size: 1rem;
}
button {
@extend .button;
@extend .default-animation;
font-family: $font-family-header;
text-transform: uppercase;
}
}

View file

@ -0,0 +1,42 @@
{% embed 'partials/base.html.twig' %}
{% set collection = page.collection() %}
{% set base_url = page.url %}
{% set feed_url = base_url %}
{% if base_url == '/' %}
{% set base_url = '' %}
{% endif %}
{% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %}
{% endif %}
{% block content %}
{% set blog_image = page.media.images|first %}
{% if blog_image %}
<div class="flush-top blog-header blog-header-image" style="background: {{ page.header.bg_color }} url({{ blog_image.url }}) no-repeat right;">
<h1>{{ page.title }}</h1>
</div>
{% endif %}
<div class="content-wrapper archive-list g-grid pure-g-r">
<div id="listing" class="g-block pure-u-2-3">
{{ page.content }}
{% if config.plugins.taxonomylist.enabled %}
<h4>Archives by tags</h4>
{% include 'partials/taxonomylist.html.twig' with {'taxonomy':'tag'} %}
{% endif %}
{% if config.plugins.archives.enabled %}
<h4>Archives by month</h4>
{% include 'partials/archives.html.twig' %}
{% endif %}
</div>
<div id="sidebar" class="g-block size-1-3 pure-u-1-3">
{% include 'partials/sidebar.html.twig' %}
</div>
</div>
{% endblock %}
{% endembed %}

View file

@ -5,8 +5,10 @@
</div> </div>
{% endif %} {% endif %}
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %} {% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
<div class="sidebar-content">
<h4>Related Posts</h4> <h4>Related Posts</h4>
{% include 'partials/relatedpages.html.twig' %} {% include 'partials/relatedpages.html.twig' %}
</div>
{% endif %} {% endif %}
{% if config.plugins.random.enabled %} {% if config.plugins.random.enabled %}
<div class="sidebar-content"> <div class="sidebar-content">