frontend: add min-height only when necessary

Fixes https://gitlab.com/commento/commento-ce/issues/81
This commit is contained in:
Adhityaa Chandrasekar 2018-09-23 00:52:34 -04:00
parent f54f4d0afd
commit 4d799182da
2 changed files with 6 additions and 1 deletions

View File

@ -1050,6 +1050,7 @@
classAdd(oauthButtonsContainer, "oauth-buttons-container");
classAdd(oauthButtons, "oauth-buttons");
classAdd(close, "login-box-close");
classAdd(root, "root-min-height");
emailButton.innerText = "Continue";
loginLink.innerText = "Already have an account? Log in.";
@ -1378,6 +1379,7 @@
var loginBoxContainer = $(ID_LOGIN_BOX_CONTAINER);
classRemove(mainArea, "blurred");
classRemove(root, "root-min-height");
attrSet(loginBoxContainer, "style", "display: none");
}

View File

@ -1,5 +1,9 @@
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
.commento-root-min-height {
min-height: 350px;
}
.commento-root {
font-family: "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
font-size: 15px;
@ -8,7 +12,6 @@
overflow-x: hidden;
text-rendering: optimizeLegibility;
padding: 8px;
min-height: 350px;
@import "colors-main.scss";
@import "common-main.scss";