*/
init: function() {
require(['EventHandler', 'Ui/Dialog'], function(EventHandler, UiDialog) {
- var loginForm = document.getElementById('loginForm');
+ var loginForm = elById('loginForm');
+ var loginSection = elBySel('.loginFormLogin', loginForm);
+ if (loginSection && !loginSection.nextElementSibling) {
+ loginForm.classList.add('loginFormLoginOnly');
+ }
+
var callbackOpen = function(event) {
if (event instanceof Event) {
event.preventDefault();
}
}
}
-
- @include screen-md-up {
+}
+
+@include screen-md-up {
+ .loginForm:not(.loginFormLoginOnly) > form {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
/* force columns to be 300px wide in login overlay */
- .dialogContent .loginForm .section {
+ .dialogContent .loginForm:not(.loginFormLoginOnly) .section {
width: 300px;
}
}