Skip to content

Commit

Permalink
Merge branch 'release/3.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Jul 20, 2016
2 parents 5ed2ded + 21166c1 commit e122808
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 12 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,17 @@
## [3.3.3](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.3)

### Enhancements

- Make footer stick to the bottom of the page.

### Bug Fixes

- Fix `gallery` size bug [#402](https://github.com/mmistakes/minimal-mistakes/issues/402)

### Maintenance

- Set default `lang` to `en`.

## [3.3.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.3.2)

### Bug Fixes
Expand Down
6 changes: 2 additions & 4 deletions _includes/gallery
Expand Up @@ -6,11 +6,9 @@
{% assign gallery = page.gallery %}
{% endif %}

{% capture gallery_size %}{{ gallery | size }}{% endcapture %}

{% if gallery_size == '2' %}
{% if gallery.size == 2 %}
{% assign gallery_layout = 'half' %}
{% elsif gallery_size >= '3' %}
{% elsif gallery.size >= 3 %}
{% assign gallery_layout = 'third' %}
{% else %}
{% assign gallery_layout = '' %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Expand Up @@ -5,7 +5,7 @@
{% include base_path %}

<!doctype html>
<html lang="{{ site.locale | slice: 0,2 }}" class="no-js">
<html lang="{{ site.locale | slice: 0,2 | default: "en" }}" class="no-js">
<head>
{% include head.html %}
{% include head/custom.html %}
Expand Down
6 changes: 6 additions & 0 deletions assets/_scss/_base.scss
Expand Up @@ -2,6 +2,12 @@
BASE ELEMENTS
========================================================================== */

html {
/* sticky footer fix */
position: relative;
min-height: 100%;
}

body {
margin: 0;
padding: 0;
Expand Down
7 changes: 7 additions & 0 deletions assets/_scss/_footer.scss
Expand Up @@ -5,6 +5,13 @@
.page__footer {
@include full();
@include clearfix;
/* sticky footer fix start */
position: absolute;
bottom: 0;
width: 100%;
clear: both;
height: auto;
/* sticky footer fix end */
margin-top: 3em;
color: mix(#fff, $gray, 25%);
animation: intro 0.3s both;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/js/_main.js
Expand Up @@ -4,6 +4,24 @@

$(document).ready(function(){

// Sticky footer
var bumpIt = function() {
$('body').css('margin-bottom', $('.page__footer').outerHeight(true));
},
didResize = false;

bumpIt();

$(window).resize(function() {
didResize = true;
});
setInterval(function() {
if(didResize) {
didResize = false;
bumpIt();
}
}, 250);

// FitVids init
$("#main").fitVids();

Expand Down
10 changes: 5 additions & 5 deletions assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "minimal-mistakes",
"version": "3.3.2",
"version": "3.3.3",
"description": "Minimal Mistakes Jekyll theme npm build scripts",
"repository": {
"type": "git",
Expand Down

0 comments on commit e122808

Please sign in to comment.