Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mblode committed Feb 18, 2016
1 parent 0ec2955 commit d15a481
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 91 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.0.1
## 02/18/2016

1. [](#bugfix)
* Fix sidebar

# v2.0.0
## 02/18/2016

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Medium
version: 2.0.0
version: 2.0.1
description: Medium is a simple and modern blogging theme based on Medium's design language, built for Grav CMS.
icon: globe
author:
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grav-theme-medium",
"version": "2.0.0",
"version": "2.0.1",
"authors": [
"Matthew Blode"
],
Expand Down
48 changes: 17 additions & 31 deletions dist/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -3938,37 +3938,32 @@ blockquote > blockquote > blockquote {
text-decoration: underline; }

.infinite-scroll {
margin: 0; }
padding: 0; }

@media screen and (min-width: 64em) {
@media screen and (min-width: 40em) {
.infinite-scroll {
margin-right: 350px; } }
padding-left: 15px;
padding-right: 15px; } }

.post-list {
margin-top: 10px;
margin-bottom: 10px;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.0392157);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.025), 0 1px 4px rgba(0, 0, 0, 0.03);
border-radius: 3px; }
border-radius: 3px;
margin-bottom: 15px;
margin-top: 5px; }
.post-list a {
color: #333;
display: block; }
.post-list img {
display: block;
margin-bottom: 10px;
margin-top: 10px;
max-height: 240px;
width: auto; }

.post-list--data {
padding: 15px 0; }

@media screen and (min-width: 40em) {
.post-list--data {
padding: 15px; } }

.post-list a {
color: #333;
display: block; }

.post-list img {
display: block;
margin-bottom: 10px;
margin-top: 10px;
max-height: 240px;
width: auto; }
padding: 15px; }

.post {
margin-top: 20px; }
Expand Down Expand Up @@ -4052,15 +4047,6 @@ blockquote > blockquote > blockquote {
height: 100px;
width: 100px; }

.sidebar {
width: 350px;
display: inline-block;
padding-left: 15px; }

.sidebar--inner {
padding-left: 15px;
padding-right: 15px; }

.sidebar--heading {
margin-top: 40px;
font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
Expand Down
2 changes: 1 addition & 1 deletion dist/styles/app.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grav-theme-medium",
"version": "2.0.0",
"version": "2.0.1",
"description": "Medium is a simple and modern blogging theme based on Medium's design language, built for Grav CMS.",
"main": "gulpfile.js",
"devDependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@import 'base/defaults';
@import 'base/typography';

@import 'templates/post-list';
@import 'templates/blog';
@import 'templates/post';

@import 'partials/navigation';
Expand Down
11 changes: 0 additions & 11 deletions src/styles/partials/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
.sidebar {
width: 350px;
display: inline-block;
padding-left: 15px;
}

.sidebar--inner {
padding-left: 15px;
padding-right: 15px;
}

.sidebar--heading {
margin-top: 40px;
font-family: $default-font-family;
Expand Down
36 changes: 36 additions & 0 deletions src/styles/templates/_blog.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.infinite-scroll {
padding: 0;
}

@include breakpoint(medium) {
.infinite-scroll {
padding-left: 15px;
padding-right: 15px;
}
}

.post-list {
background-color: $white;
border: 1px solid rgba(0, 0, 0, .0392157);
box-shadow: 0 1px 4px rgba(0, 0, 0, .025), 0 1px 4px rgba(0, 0, 0, .03);
border-radius: 3px;
margin-bottom: 15px;
margin-top: 5px;

a {
color: $black;
display: block;
}

img {
display: block;
margin-bottom: 10px;
margin-top: 10px;
max-height: 240px;
width: auto;
}
}

.post-list--data {
padding: 15px;
}
41 changes: 0 additions & 41 deletions src/styles/templates/_post-list.scss

This file was deleted.

7 changes: 5 additions & 2 deletions templates/blog.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% endblock %}

{% block content %}
<div class="infinite-scroll">
<div class="infinite-scroll columns small-12 large-8">
{% for post in collection %}
{% include 'partials/post-item.html.twig' %}
{% endfor %}
Expand All @@ -35,12 +35,15 @@
{% endif %}
</div>

<div class="sidebar show-for-large">


<div class="sidebar columns large-4 show-for-large">
<div class="sidebar--inner">
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
</div>
</div>


{% endblock %}

{% endembed %}
15 changes: 15 additions & 0 deletions templates/page.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends 'partials/base.html.twig' %}

{% block header %}
{% if page.header.profile %}
{% include 'partials/profile.html.twig' %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}

{% block content %}
<div class="columns small-12">
{{ page.content }}
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion templates/partials/post-item.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="post-list columns small-12">
<div class="post-list">
<div class="post-list--data">
<a href="{{ post.url }}"><h1 class="dark">{{ post.title }}</h1></a>
<a href="{{ post.url }}"><date>{{ post.date|nicetime(true) }}</date></a>
Expand Down
19 changes: 19 additions & 0 deletions templates/search_results.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% extends 'partials/simplesearch_base.html.twig' %}

{% block content %}
<div class="column small-12">
<div class="content-padding simplesearch">
<h1 class="search-header">Search Results</h1>
<div class="center">
{% include 'partials/simplesearch_searchbox.html.twig' %}

</div>


<p>Query: <strong>{{ query }}</strong> found {{ search_results.count }} {{ 'result'|pluralize(search_results.count) }}</p>
{% for page in search_results %}
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
{% endfor %}
</div>
</div>
{% endblock %}

0 comments on commit d15a481

Please sign in to comment.