summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-11-10 12:19:38 +0100
committerGéry Debongnie <ged@odoo.com>2015-11-12 08:51:56 +0100
commit5264ccf0d0ebbfc6600ba5d3c0efc16bbe05c4d4 (patch)
tree00a61360f7c5855b37f16d9bc728e64becdd9b2c /addons/mail/static/src/less
parentdbc1061854c42578905f2aa6ecd0e77e3732c01a (diff)
[IMP] mail: needactions and messages read
Mainly concern the client action: - Display needactions per channels - For all channels except Inbox, clear needactions when opening the channel - Add snackbar to undo needactions clearing - Display a separator between read and unread messages in threads - Fix active channel (for Inbox and Starred) display in sidebar Various minor changes in chat_manager: - Code refactoring of bus notification handler - get_channel() don't fallback anymore on first channel
Diffstat (limited to 'addons/mail/static/src/less')
-rw-r--r--addons/mail/static/src/less/client_action.less11
-rw-r--r--addons/mail/static/src/less/thread.less13
2 files changed, 23 insertions, 1 deletions
diff --git a/addons/mail/static/src/less/client_action.less b/addons/mail/static/src/less/client_action.less
index 9f8d501c3a2..f6194bfc973 100644
--- a/addons/mail/static/src/less/client_action.less
+++ b/addons/mail/static/src/less/client_action.less
@@ -67,9 +67,10 @@
.o_mail_chat_content {
.o-flex(1, 1, 100%);
- height: 100%;
.o-flex-display();
.o-flex-flow(column, nowrap);
+ height: 100%;
+ position: relative;
.o_mail_thread {
.o-flex(1, 0, 0);
@@ -100,6 +101,14 @@
}
}
}
+ .o_mail_snackbar {
+ .o-position-absolute(15px, 15px);
+ padding-top: 10px;
+ padding-bottom: 10px;
+ background-color: lighten(@odoo-brand-optional, 50%);
+ border-color: lighten(@odoo-brand-optional, 40%);
+ color: @odoo-brand-optional;
+ }
}
}
diff --git a/addons/mail/static/src/less/thread.less b/addons/mail/static/src/less/thread.less
index bcb73d4dd7c..df865d14a4f 100644
--- a/addons/mail/static/src/less/thread.less
+++ b/addons/mail/static/src/less/thread.less
@@ -22,6 +22,19 @@
}
}
+ .o_thread_new_messages_separator {
+ border-bottom: solid lighten(@odoo-brand-primary, 15%) 1px;
+ text-align: right;
+ .o_thread_separator_label {
+ position: relative;
+ top: 8px;
+ padding: 0 10px;
+ background: white;
+ color: lighten(@odoo-brand-primary, 15%);
+ font-size: smaller;
+ }
+ }
+
.o_thread_message {
.o-flex-display();
padding: 4px 0;