frontend: add min-height only when necessary
Fixes https://gitlab.com/commento/commento-ce/issues/81
This commit is contained in:
parent
f54f4d0afd
commit
4d799182da
@ -1050,6 +1050,7 @@
|
|||||||
classAdd(oauthButtonsContainer, "oauth-buttons-container");
|
classAdd(oauthButtonsContainer, "oauth-buttons-container");
|
||||||
classAdd(oauthButtons, "oauth-buttons");
|
classAdd(oauthButtons, "oauth-buttons");
|
||||||
classAdd(close, "login-box-close");
|
classAdd(close, "login-box-close");
|
||||||
|
classAdd(root, "root-min-height");
|
||||||
|
|
||||||
emailButton.innerText = "Continue";
|
emailButton.innerText = "Continue";
|
||||||
loginLink.innerText = "Already have an account? Log in.";
|
loginLink.innerText = "Already have an account? Log in.";
|
||||||
@ -1378,6 +1379,7 @@
|
|||||||
var loginBoxContainer = $(ID_LOGIN_BOX_CONTAINER);
|
var loginBoxContainer = $(ID_LOGIN_BOX_CONTAINER);
|
||||||
|
|
||||||
classRemove(mainArea, "blurred");
|
classRemove(mainArea, "blurred");
|
||||||
|
classRemove(root, "root-min-height");
|
||||||
|
|
||||||
attrSet(loginBoxContainer, "style", "display: none");
|
attrSet(loginBoxContainer, "style", "display: none");
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
|
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
|
||||||
|
|
||||||
|
.commento-root-min-height {
|
||||||
|
min-height: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
.commento-root {
|
.commento-root {
|
||||||
font-family: "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
font-family: "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@ -8,7 +12,6 @@
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
min-height: 350px;
|
|
||||||
|
|
||||||
@import "colors-main.scss";
|
@import "colors-main.scss";
|
||||||
@import "common-main.scss";
|
@import "common-main.scss";
|
||||||
|
Loading…
Reference in New Issue
Block a user