Bootstrap'ize contact search form

pull/5742/merge
Aleksander Machniak 7 years ago
parent ef5583d9db
commit 757423373d

@ -115,6 +115,10 @@ html.ms .propform {
padding-top: ~"calc(1rem - 1px * 2)";
padding-bottom: ~"calc(1rem - 1px * 2)";
}
.nav-tabs {
margin-bottom: 1rem;
}
}

@ -485,6 +485,16 @@ function rcube_elastic_ui()
row.addClass(row_classes.join(' '));
});
// Other forms, e.g. Contact advanced search
$('fieldset.propform > .contactfieldgroup').each(function() {
$('.row', this).addClass('form-group').each(function() {
$('div:first', this).addClass('col-sm-4');
$('div:last', this).addClass('col-sm-8');
});
$('.label', this).addClass('col-form-label');
$('input,select').addClass('form-control');
});
// Testing Bootstrap Tabs on contact info/edit page
// Tabs do not scale nicely on very small screen, so can be used
// only with small number of tabs with short text labels

Loading…
Cancel
Save