Modal opens, hide body scroller

This commit is contained in:
James Barnsley
2017-01-24 10:13:12 +13:00
parent b787a35fcf
commit e906edc360
3 changed files with 15 additions and 1 deletions

View File

@ -134,6 +134,16 @@ const UIMiddleware = (function(){
location.reload()
break
case 'OPEN_MODAL':
$('body').addClass('modal-open')
next(action)
break
case 'CLOSE_MODAL':
$('body').removeClass('modal-open')
next(action)
break
case 'BROWSER_NOTIFICATION':
var notification = window.Notification || window.mozNotification || window.webkitNotification;

View File

@ -11,6 +11,10 @@ html {
body {
overflow-y: scroll;
overflow-x: hidden;
&.modal-open {
overflow-y: hidden;
}
}
main,

View File

@ -16,7 +16,7 @@
.thumbnail {
position: absolute;
z-index: 2;
z-index: 3;
max-width: 240px;
bottom: 0;
left: 40px;