diff --git a/addons/mail/static/src/components/message_list/message_list.scss b/addons/mail/static/src/components/message_list/message_list.scss index 27a38fd878b..07bfb12f462 100644 --- a/addons/mail/static/src/components/message_list/message_list.scss +++ b/addons/mail/static/src/components/message_list/message_list.scss @@ -1,121 +1,13 @@ -// ------------------------------------------------------------------ -// Layout -// ------------------------------------------------------------------ - -.o_MessageList { - display: flex; - flex-flow: column; - overflow: auto; - - &.o-empty { - align-items: center; - justify-content: center; - } - - &:not(.o-empty) { - padding-bottom: map-get($spacers, 4); - } -} - -.o_MessageList_empty { - flex: 1 1 auto; - height: map-get($sizes, 100); - width: map-get($sizes, 100); - align-self: center; - display: flex; - flex-flow: column; - align-items: center; - justify-content: center; - padding: map-get($spacers, 4); - line-height: 2.5rem; -} - -.o_MessageList_isLoadingMore { - align-self: center; -} - -.o_MessageList_isLoadingMoreIcon { - margin-right: map-get($spacers, 1); -} - -.o_MessageList_loadMore { - align-self: center; -} - -.o_MessageList_separator { - display: flex; - align-items: center; - padding: map-get($spacers, 0) map-get($spacers, 0); - flex: 0 0 auto; -} - -.o_MessageList_separatorLine { - flex: 1 1 auto; - width: auto; -} - -.o_MessageList_separatorNewMessages { - // bug with safari: container does not auto-grow from child size - padding: map-get($spacers, 0) map-get($spacers, 0); - margin-right: map-get($spacers, 4); -} - -.o_MessageList_separatorLabel { - padding: map-get($spacers, 0) map-get($spacers, 3); -} - // ------------------------------------------------------------------ // Style // ------------------------------------------------------------------ -.o_MessageList { - background-color: $white; -} - -.o_MessageList_empty { - text-align: center; - font-style: italic; - color: $text-muted; -} - -.o_MessageList_emptyTitle { - font-weight: bold; - font-size: 1.3rem; - - &.o-neutral-face-icon:before { - @extend %o-nocontent-init-image; - @include size(120px, 140px); - background: transparent url(/web/static/img/neutral_face.svg) no-repeat center; - } -} - -.o_MessageList_loadMore { - cursor: pointer; -} - -.o_MessageList_message.o-has-message-selection:not(.o-selected) { - opacity: 0.5; -} - -.o_MessageList_separator { - font-weight: bold; -} - -.o_MessageList_separatorLine { - border-color: $border-color; -} - .o_MessageList_separatorLineNewMessages { border-color: lighten($o-brand-odoo, 15%); } .o_MessageList_separatorNewMessages { color: lighten($o-brand-odoo, 15%); - -} - -.o_MessageList_separatorLabel { - background-color: $white; } // ------------------------------------------------------------------ @@ -124,7 +16,4 @@ .o_MessageList_separatorNewMessages:not(.o-disable-animation) { transition: opacity 0.5s; - &.o-fade-leave { - opacity: 0; - } } diff --git a/addons/mail/static/src/components/message_list/message_list.xml b/addons/mail/static/src/components/message_list/message_list.xml index 9a0a7fdfe3c..4028552a0f7 100644 --- a/addons/mail/static/src/components/message_list/message_list.xml +++ b/addons/mail/static/src/components/message_list/message_list.xml @@ -3,26 +3,27 @@ -
+
-
+
-
+

Congratulations, your inbox is empty -

+ New messages appear here.
-
+

No starred messages -

+ You can mark any message as 'starred', and it shows up in this mailbox.
-
+ History +

No history messages -

+ Messages marked as read will appear in the history.
@@ -49,15 +50,15 @@ -
-
New messages +
+
New messages
-
-

+
+

@@ -74,13 +75,13 @@ -
- +
+ Loading...
- + Load more