Merge branch 'release/3.1.2'

This commit is contained in:
Michael Rose 2016-04-18 16:33:22 -04:00
commit 7be5c973db
8 changed files with 51 additions and 33 deletions

View file

@ -1,3 +1,14 @@
## [3.1.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.2)
### Enhancement
- Explain how to use `nav_list` helper in [documentation](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list).
- Reduce left/right padding on smaller screens to increase width of main content column.
### Bug Fixes
- Fix alignment issues with related posts [#273](https://github.com/mmistakes/minimal-mistakes/issues/273) and "Follow" button in author profile [#274](https://github.com/mmistakes/minimal-mistakes/issues/274).
## [3.1.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.1) ## [3.1.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.1.1)
### Bug Fix ### Bug Fix

View file

@ -1,21 +1,42 @@
{% include base_path %} {% include base_path %}
{% assign navigation = site.data.navigation[page.sidebar.nav] %} {% assign navigation = site.data.navigation[include.nav] %}
<nav class="nav__list"> <nav class="nav__list">
{% if page.sidebar.title %}<header><h4 class="nav__title" style="padding: 0;">{{ page.sidebar.title }}</h4></header>{% endif %} {% if page.sidebar.title %}<header><h4 class="nav__title" style="padding: 0;">{{ page.sidebar.title }}</h4></header>{% endif %}
<ul> <ul>
{% for nav in navigation %} {% for nav in navigation %}
<li><span class="nav__sub-title">{{ nav.title }}</span> <li>
{% if nav.url %}
{% comment %}internal/external URL check{% endcomment %}
{% if nav.url contains "http" %}
{% assign domain = "" %}
{% else %}
{% assign domain = base_path %}
{% endif %}
<a href="{{ domain }}{{ nav.url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
{% else %}
<span class="nav__sub-title">{{ nav.title }}</span>
{% endif %}
{% if nav.children != null %} {% if nav.children != null %}
<ul> <ul>
{% for child in nav.children %} {% for child in nav.children %}
{% assign nav_url = child.path | prepend: "/" | prepend: page.sidebar.nav | prepend: "/" | append: "/" %} {% comment %}internal/external URL check{% endcomment %}
{% if nav_url == page.url %} {% if child.url contains "http" %}
{% assign domain = "" %}
{% else %}
{% assign domain = base_path %}
{% endif %}
{% comment %}set "active" class on current page{% endcomment %}
{% if child.url == page.url %}
{% assign active = "active" %} {% assign active = "active" %}
{% else %} {% else %}
{% assign active = "" %} {% assign active = "" %}
{% endif %} {% endif %}
<li><a href="{{ nav_url | prepend: base_path }}" class="{{ active }}">{{ child.title }}</a></li>
<li><a href="{{ domain }}{{ child.url }}" class="{{ active }}">{{ child.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
@ -23,3 +44,5 @@
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>

View file

@ -18,7 +18,7 @@
{% if s.text %}{{ s.text | markdownify }}{% endif %} {% if s.text %}{{ s.text | markdownify }}{% endif %}
{% endfor %} {% endfor %}
{% if page.sidebar.nav %} {% if page.sidebar.nav %}
{% include nav_list items=page.sidebar.nav %} {% include nav_list nav=page.sidebar.nav %}
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View file

@ -6,16 +6,11 @@
@include container; @include container;
@include clearfix; @include clearfix;
margin-top: 3em; margin-top: 3em;
padding: 0 2em 3em; padding: 0 1em 3em;
color: mix(#fff, $gray, 25%); color: mix(#fff, $gray, 25%);
animation: intro 0.3s both; animation: intro 0.3s both;
animation-delay: 0.45s; animation-delay: 0.45s;
@include breakpoint($large) {
padding-left: 1em;
padding-right: 1em;
}
@include breakpoint($x-large) { @include breakpoint($x-large) {
max-width: $x-large; max-width: $x-large;
} }

View file

@ -12,16 +12,11 @@
&__inner-wrap { &__inner-wrap {
@include container; @include container;
@include clearfix; @include clearfix;
padding: 1em 2em 1em; padding: 1em 1em 1em;
font-family: $sans-serif-narrow; font-family: $sans-serif-narrow;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
@include breakpoint($large) {
padding-left: 1em;
padding-right: 1em;
}
@include breakpoint($x-large) { @include breakpoint($x-large) {
max-width: $x-large; max-width: $x-large;
} }

View file

@ -6,15 +6,10 @@
@include container; @include container;
@include clearfix; @include clearfix;
margin-top: 2em; margin-top: 2em;
padding-left: 2em;
padding-right: 2em;
animation: intro 0.3s both;
animation-delay: 0.35s;
@include breakpoint($large) {
padding-left: 1em; padding-left: 1em;
padding-right: 1em; padding-right: 1em;
} animation: intro 0.3s both;
animation-delay: 0.35s;
@include breakpoint($x-large) { @include breakpoint($x-large) {
max-width: $x-large; max-width: $x-large;
@ -295,10 +290,6 @@
float: left; float: left;
@include breakpoint($large) { @include breakpoint($large) {
@include pre(2 of 12);
}
@include breakpoint($x-large) {
@include pre(2.5 of 12); @include pre(2.5 of 12);
} }

View file

@ -127,7 +127,7 @@
.author__urls-wrapper { .author__urls-wrapper {
position: relative; position: relative;
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: middle;
font-family: $sans-serif; font-family: $sans-serif;
z-index: 10; z-index: 10;
position: relative; position: relative;
@ -142,7 +142,10 @@
@include breakpoint($large) { @include breakpoint($large) {
display: block; display: block;
} }
.btn {
button {
margin-bottom: 0;
@include breakpoint($large) { @include breakpoint($large) {
display: none; display: none;
} }

File diff suppressed because one or more lines are too long