Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mblode committed Feb 18, 2016
2 parents faa6666 + 552fdeb commit d6ae14a
Show file tree
Hide file tree
Showing 19 changed files with 149 additions and 49 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.0
## 02/18/2016

1. [](#bugfix)
* Change the template structures

# v1.1.2
## 02/15/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: 1.1.2
version: 2.0.0
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": "1.1.2",
"version": "2.0.0",
"authors": [
"Matthew Blode"
],
Expand Down
Binary file added dist/images/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/images/favicon.ico
Binary file not shown.
49 changes: 41 additions & 8 deletions dist/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -1307,15 +1307,15 @@ dl {

blockquote {
margin: 0 0 1rem;
padding: 0.5625rem 1.25rem 0 1.1875rem;
border-left: 2px solid #333; }
padding: 0;
border-left: none; }
blockquote, blockquote p {
line-height: 1.6;
color: #333; }

cite {
display: block;
font-size: 0.8125rem;
font-size: 1rem;
color: #808080; }
cite:before {
content: '\2014 \0020'; }
Expand Down Expand Up @@ -3849,6 +3849,9 @@ img {
.hr--small {
margin-top: 0; }

.pad--10 {
padding-top: 10px; }

body {
font-size: 120%; }

Expand All @@ -3875,12 +3878,10 @@ h5 {
button {
font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; }

blockquote {
font-style: italic; }

pre {
background: #efefef;
margin-bottom: 16px; }
margin-bottom: 16px;
padding: 5px; }

date,
.footer--text,
Expand All @@ -3903,6 +3904,39 @@ date,
.dark:hover {
color: #00ab6b; }

blockquote > p {
padding: 15px;
border-left: 3px solid #333; }

blockquote > blockquote > blockquote {
margin: 0; }
blockquote > blockquote > blockquote p {
padding: 15px; }
blockquote > blockquote > blockquote > p {
border-left: 3px solid #00ab6b;
color: #00ab6b; }
blockquote > blockquote > blockquote > p a {
color: #00ab6b;
text-decoration: underline; }
blockquote > blockquote > blockquote > blockquote > p {
border-left: 3px solid #ffae00;
color: #ffae00; }
blockquote > blockquote > blockquote > blockquote > p a {
color: #ffae00;
text-decoration: underline; }
blockquote > blockquote > blockquote > blockquote > blockquote > p {
border-left: 3px solid #ec5840;
color: #ec5840; }
blockquote > blockquote > blockquote > blockquote > blockquote > p a {
color: #ec5840;
text-decoration: underline; }
blockquote > blockquote > blockquote > blockquote > blockquote > blockquote > p {
border-left: 5px solid #3adb76;
color: #3adb76; }
blockquote > blockquote > blockquote > blockquote > blockquote > blockquote > p a {
color: #00ab6b;
text-decoration: underline; }

.infinite-scroll {
margin: 0; }

Expand Down Expand Up @@ -4009,7 +4043,6 @@ date,
width: auto !important; }

.profile {
margin-bottom: 40px;
margin-top: 40px;
padding: 0; }

Expand Down
4 changes: 3 additions & 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": "1.1.2",
"version": "2.0.0",
"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
Binary file added src/images/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/styles/base/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ $value in $button-sizes {
.hr--small {
margin-top: 0;
}

.pad--10 {
padding-top: 10px;
}
6 changes: 3 additions & 3 deletions src/styles/base/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ $defnlist-margin-bottom: 1rem;
$defnlist-term-weight: $global-weight-bold;
$defnlist-term-margin-bottom: 0.3rem;
$blockquote-color: $black;
$blockquote-padding: rem-calc(9 20 0 19);
$blockquote-border: 2px solid $black;
$cite-font-size: rem-calc(13);
$blockquote-padding: 0;
$blockquote-border: none;
$cite-font-size: rem-calc(16);
$cite-color: $dark-gray;
$keystroke-font: $font-family-monospace;
$keystroke-color: $black;
Expand Down
63 changes: 59 additions & 4 deletions src/styles/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ button {
font-family: $default-font-family;
}

blockquote {
font-style: italic;
}

pre {
background: $lighter-gray;
margin-bottom: 16px;
padding: 5px;
}

date,
Expand Down Expand Up @@ -70,3 +67,61 @@ date,
color: $primary-color;
}
}

blockquote {
> p {
padding: 15px;
border-left: 3px solid $black;
}
}


blockquote > blockquote > blockquote {
margin: 0;

p {
padding: 15px;
}

> p {
border-left: 3px solid $primary-color;
color: $primary-color;

a {
color: $primary-color;
text-decoration: underline;
}
}

> blockquote > p {
// Red
border-left: 3px solid $warning-color;
color: $warning-color;

a {
color: $warning-color;
text-decoration: underline;
}
}

> blockquote > blockquote > p {
border-left: 3px solid $alert-color;
color: $alert-color;

a {
color: $alert-color;
text-decoration: underline;
}
}

> blockquote > blockquote > blockquote > p {
border-left: 5px solid $success-color;
color: $success-color;

a {
color: $primary-color;
text-decoration: underline;
}
}

}
1 change: 0 additions & 1 deletion src/styles/partials/_profile.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.profile {
margin-bottom: 40px;
margin-top: 40px;
padding: 0;
}
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions templates/default.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends 'partials/base.html.twig' %}

{% block content %}
<div class="columns small-12 pad--10">
{{ page.content }}
</div>
{% endblock %}
15 changes: 0 additions & 15 deletions templates/page.html.twig

This file was deleted.

6 changes: 5 additions & 1 deletion templates/partials/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
{% set avatar_url = pages.find('/about').media.images|first.url ?: url('theme://images/avatar.png') %}
{% set avatar_url = pages.find('/about').media.images|first.url ?: url('theme://dist/images/avatar.png') %}
{% import 'macros/dates.twig' as dates %}
<!DOCTYPE html>
<html class="no-js" lang="{{ grav.language.getActive ?: theme_config.default_lang }}">
Expand Down Expand Up @@ -39,6 +39,10 @@
{% include 'partials/header.html.twig' %}
{% endif %}

{% if page.header.profile %}
{% include 'partials/profile.html.twig' %}
{% endif %}

<div class="row">
{% block header %}
{% endblock %}
Expand Down
31 changes: 18 additions & 13 deletions templates/partials/profile.html.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<div class="columns profile">
<div class="columns small-8">
<div class="row">
<div class="columns profile">
<div class="columns small-8">
<a href="http://twitter.com/{{ theme_config.social.twitter|trim('@') }}">
<h1 class="dark">{{ site.author.name }}</h1>
</a>
<p>{{ 'SITE.DESCRIPTION'|t }}</p>
<button class="button default hollow">
<a href="http://twitter.com/{{ theme_config.social.twitter|trim('@') }}"><i class="fa fa-twitter"></i> Follow</a>
</button>
</div>
<div class="columns small-4">
<a href="http://twitter.com/{{ theme_config.social.twitter|trim('@') }}">
<h1 class="dark">{{ site.author.name }}</h1>
<img class="profile--avatar" src="{{ avatar_url}}">
</a>
<p>{{ 'SITE.DESCRIPTION'|t }}</p>
<button class="button default hollow">
<a href="http://twitter.com/{{ theme_config.social.twitter|trim('@') }}"><i class="fa fa-twitter"></i> Follow</a>
</button>
</div>
<div class="columns small-4">
<a href="http://twitter.com/{{ theme_config.social.twitter|trim('@') }}">
<img class="profile--avatar" src="{{ avatar_url }}">
</a>
</div>
</div>
</div>
<div class="columns small-12">
<hr>
</div>
</div>
File renamed without changes.

0 comments on commit d6ae14a

Please sign in to comment.