mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Merge pull request #485 from matthojo/Login-Fix
Bug Fix: Login form now maintains the right layout on resize
This commit is contained in:
commit
3a427905e0
@ -19,8 +19,7 @@
|
||||
}
|
||||
|
||||
main {
|
||||
top: 15px;
|
||||
@include breakpoint($mobile) { top: 0; }
|
||||
top: 0;
|
||||
}
|
||||
}//.ghost-login
|
||||
|
||||
|
@ -24,7 +24,13 @@
|
||||
},
|
||||
|
||||
centerOnResize: _.debounce(function (e) {
|
||||
$(".js-login-container").center();
|
||||
var container = $(".js-login-container");
|
||||
container.css({
|
||||
'position': 'relative'
|
||||
}).animate({
|
||||
'top': Math.round($(window).height() / 2) - container.outerHeight() / 2 + 'px'
|
||||
});
|
||||
$(window).trigger("centered");
|
||||
}, 100),
|
||||
|
||||
remove: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user