parent
8494157e64
commit
128977691a
6 changed files with 23 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Toggle close button on `mouseleave`. [#975](https://github.com/mmistakes/minimal-mistakes/issues/975)
|
||||||
|
|
||||||
## [4.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.4.1)
|
## [4.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.4.1)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,9 @@ $(document).ready(function(){
|
||||||
$btn.attr("count", numOfItems - numOfVisibleItems);
|
$btn.attr("count", numOfItems - numOfVisibleItems);
|
||||||
if (numOfVisibleItems === numOfItems) {
|
if (numOfVisibleItems === numOfItems) {
|
||||||
$btn.addClass('hidden');
|
$btn.addClass('hidden');
|
||||||
} else $btn.removeClass('hidden');
|
} else {
|
||||||
|
$btn.removeClass('hidden');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Window listeners
|
// Window listeners
|
||||||
|
@ -64,6 +66,7 @@ $(document).ready(function(){
|
||||||
// Mouse has left, start the timer
|
// Mouse has left, start the timer
|
||||||
timer = setTimeout(function() {
|
timer = setTimeout(function() {
|
||||||
$hlinks.addClass('hidden');
|
$hlinks.addClass('hidden');
|
||||||
|
$btn.toggleClass('close');
|
||||||
}, closingTime);
|
}, closingTime);
|
||||||
}).on('mouseenter', function() {
|
}).on('mouseenter', function() {
|
||||||
// Mouse is back, cancel the timer
|
// Mouse is back, cancel the timer
|
||||||
|
|
|
@ -4,9 +4,15 @@ permalink: /docs/history/
|
||||||
excerpt: "Change log of enhancements and bug fixes made to the theme."
|
excerpt: "Change log of enhancements and bug fixes made to the theme."
|
||||||
sidebar:
|
sidebar:
|
||||||
nav: docs
|
nav: docs
|
||||||
last_modified_at: 2017-04-21T19:59:55-04:00
|
last_modified_at: 2017-04-27T15:55:41-04:00
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Toggle close button on `mouseleave`. [#975](https://github.com/mmistakes/minimal-mistakes/issues/975)
|
||||||
|
|
||||||
## [4.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.4.1)
|
## [4.4.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.4.1)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
2
docs/assets/js/main.min.js
vendored
2
docs/assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,9 @@ $(document).ready(function(){
|
||||||
$btn.attr("count", numOfItems - numOfVisibleItems);
|
$btn.attr("count", numOfItems - numOfVisibleItems);
|
||||||
if (numOfVisibleItems === numOfItems) {
|
if (numOfVisibleItems === numOfItems) {
|
||||||
$btn.addClass('hidden');
|
$btn.addClass('hidden');
|
||||||
} else $btn.removeClass('hidden');
|
} else {
|
||||||
|
$btn.removeClass('hidden');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Window listeners
|
// Window listeners
|
||||||
|
@ -64,6 +66,7 @@ $(document).ready(function(){
|
||||||
// Mouse has left, start the timer
|
// Mouse has left, start the timer
|
||||||
timer = setTimeout(function() {
|
timer = setTimeout(function() {
|
||||||
$hlinks.addClass('hidden');
|
$hlinks.addClass('hidden');
|
||||||
|
$btn.toggleClass('close');
|
||||||
}, closingTime);
|
}, closingTime);
|
||||||
}).on('mouseenter', function() {
|
}).on('mouseenter', function() {
|
||||||
// Mouse is back, cancel the timer
|
// Mouse is back, cancel the timer
|
||||||
|
|
Loading…
Reference in a new issue