Improve calendar widget style

pull/5742/merge
Aleksander Machniak 7 years ago
parent b92ef16339
commit b1b708408b

@ -136,6 +136,7 @@
.ui-datepicker { .ui-datepicker {
border: 1px solid @color-datepicker-border; border: 1px solid @color-datepicker-border;
box-shadow: 3px 3px 5px @color-popover-shadow;
border-radius: .3rem; border-radius: .3rem;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
@ -153,6 +154,10 @@
a { a {
height: 4rem; height: 4rem;
} }
select {
display: inline-block;
}
} }
.ui-icon { .ui-icon {
background-image: none !important; background-image: none !important;

@ -554,9 +554,14 @@ function rcube_elastic_ui()
$('a', this).addClass('btn btn-primary'); $('a', this).addClass('btn btn-primary');
}); });
// Style calendar widget (we use setTimeout() because there's no widget event we could bind to)
$('input.datepicker').focus(function() {
setTimeout(function() { bootstrap_style($('.ui-datepicker')); }, 5);
});
// Make logon form prettier // Make logon form prettier
if (rcmail.env.task == 'login') { if (rcmail.env.task == 'login' && context == document) {
$('#login-form table tr', context).each(function() { $('#login-form table tr').each(function() {
var input = $('input,select', this), var input = $('input,select', this),
label = $('label', this), label = $('label', this),
icon = $('<i>').attr('class', 'input-group-addon icon ' + input.attr('name').replace('_', '')); icon = $('<i>').attr('class', 'input-group-addon icon ' + input.attr('name').replace('_', ''));

Loading…
Cancel
Save