Elastic: Cleanup some styles + fixed small regression

pull/6528/head
Aleksander Machniak 6 years ago
parent 3aac86eca7
commit 9b1d5f9eeb

@ -109,7 +109,7 @@
@color-message-success: @color-success;
@color-message-warning: @color-warning;
@color-message-error: @color-error;
@color-message-loading: @color-taskmenu-background;
@color-message-loading: tint(@color-font, 30%);
@color-message-error-box: @color-message;
@color-message-information-box: @color-message;
@color-message-success-box: @color-message;

@ -91,6 +91,10 @@
content: @fa-var-lock; // enigma plugin
}
&.chat > i.icon:before {
content: @fa-var-comment;
}
// This works with following structure: <i> <span> [button].
// <span> here is a one-line text, and button can be anything but <span>.
&.aligned-buttons {
@ -177,6 +181,8 @@
div {
border-color: transparent;
background-color: @color-message;
color: #fff;
&.voice {
position: absolute;
@ -186,63 +192,30 @@
i.icon {
font-size: 1.5em !important;
}
}
.loading {
background-color: @color-message-loading;
color: #fff;
& > i.icon:before {
color: #fff;
}
}
.alert-info.information {
color: #fff;
background-color: @color-message-information;
& > i.icon:before {
color: #fff;
}
.loading {
background-color: @color-message-loading;
}
.alert-info.notice {
color: #fff;
background-color: @color-taskmenu-background;
& > i.icon:before {
color: #fff;
}
&.chat > i.icon:before {
content: @fa-var-comment;
}
.alert-info.information {
background-color: @color-message-information;
}
.alert-success {
color: #fff;
background-color: @color-message-success;
& > i.icon:before {
color: #fff;
}
}
.alert-warning {
background-color: @color-message-warning;
& > i.icon:before {
color: #fff;
}
}
.alert-danger {
color: #fff;
background-color: @color-message-error;
& > i.icon:before {
color: #fff;
}
}
a {

@ -1790,7 +1790,7 @@ function rcube_elastic_ui()
// we need the content to be non-text node for best alignment
if (wrap && addicon && !$(object).is('.aligned-buttons')) {
$(object).wrap('<span>');
$(object).html($('<span>').html($(object).html()));
}
// Type can be e.g. 'notice chat'

Loading…
Cancel
Save