summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/message_list/message_list.scss
blob: cb06adda2613fe32df402a472788008e28368799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// ------------------------------------------------------------------
// Layout
// ------------------------------------------------------------------

.o_MessageList {
    display: flex;
    flex-flow: column;
    overflow: auto;

    &.o-empty {
        align-items: center;
        justify-content: center;
    }

    &:not(.o-empty) {
        padding-bottom: 15px;
    }
}

.o_MessageList_empty {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    align-self: center;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 2.5rem;
}

.o_MessageList_isLoadingMore {
    align-self: center;
}

.o_MessageList_isLoadingMoreIcon {
    margin-right: 3px;
}

.o_MessageList_loadMore {
    align-self: center;
}

.o_MessageList_separator {
    display: flex;
    align-items: center;
    padding: 0 0;
    flex: 0 0 auto;
}

.o_MessageList_separatorDate {
    padding: 15px 0;
}

.o_MessageList_separatorLine {
    flex: 1 1 auto;
    width: auto;
}

.o_MessageList_separatorNewMessages {
    // bug with safari: container does not auto-grow from child size
    padding: 0 0;
    margin-right: 15px;
}

.o_MessageList_separatorLabel {
    padding: 0 10px;
}

// ------------------------------------------------------------------
// Style
// ------------------------------------------------------------------

.o_MessageList {
    background-color: white;
}

.o_MessageList_empty {
    text-align: center;
}

.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/src/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: gray('400');
}

.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;
}

// ------------------------------------------------------------------
// Animation
// ------------------------------------------------------------------

.o_MessageList_separatorNewMessages:not(.o-disable-animation) {
    &.fade-leave-active {
        transition: opacity 0.5s;
    }

    &.fade-leave-to {
        opacity: 0;
    }
}