Commit b1b8eacd by doszhang

dos

parent c9490df6
......@@ -162,8 +162,15 @@ function initPage() {
const logoHeight = parseFloat($('.logo').css('height'));
const inputHeight = parseFloat($('.input-wrapper').css('height'));
const transformTop = parseFloat(getTranslateDistance());
let inputBottomSpacing;
let spacing = (headerHeight - transformTop - logoHeight - inputHeight - 27) / 2;
let spacing = (headerHeight - transformTop - logoHeight - inputHeight) / 3;
if (spacing > 35) {
inputBottomSpacing = 35;
} else {
inputBottomSpacing = 26.5;
}
spacing = (headerHeight - transformTop - logoHeight - inputHeight - inputBottomSpacing) / 2;
$('.logo').css('top', transformTop + spacing + 'px');
$('.input-wrapper').css('top', transformTop + (spacing * 2 + logoHeight) + 'px');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment