mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Bug Fix: Login form now maintains the right layout on reize
This commit is contained in:
parent
80e7ffd9b0
commit
d6e0835ae2
@ -19,8 +19,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
top: 15px;
|
top: 0;
|
||||||
@include breakpoint($mobile) { top: 0; }
|
|
||||||
}
|
}
|
||||||
}//.ghost-login
|
}//.ghost-login
|
||||||
|
|
||||||
|
@ -24,7 +24,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
centerOnResize: _.debounce(function (e) {
|
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),
|
}, 100),
|
||||||
|
|
||||||
remove: function () {
|
remove: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user