summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window/chat_window.scss
blob: 7b61cd3bc674ebbc1a4ad8c8f816c7be97e30413 (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
// ------------------------------------------------------------------
// Layout
// ------------------------------------------------------------------

.o_ChatWindow {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-flow: column;

    &:not(.o-mobile) {
        max-width: 100%;
        max-height: 100%;
        width: 325px;

        &.o-folded {
            height: $o-mail-chat-window-header-height;
        }

        &:not(.o-folded) {
            height: 400px;
        }
    }

    &.o-mobile {
        position: fixed;
    }

    &.o-fullscreen {
        height: 100%;
        width: 100%;
    }
}

.o_ChatWindow_header {
    flex: 0 0 auto;
}

.o_ChatWindow_newMessageForm {
    padding: 3px;
    margin-top: 3px;
    display: flex;
    align-items: center;
}

.o_ChatWindow_newMessageFormInput {
    flex: 1 1 auto;
}

.o_ChatWindow_newMessageFormLabel {
    margin-right: 5px;
    flex: 0 0 auto;
}

.o_ChatWindow_thread {
    flex: 1 1 auto;
}

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

.o_ChatWindow {
    background-color: $o-mail-thread-window-bg;
    border-radius: 6px 6px 0 0;
    box-shadow: -5px -5px 10px rgba(black, 0.09);
    outline: none;

    &:not(.o-mobile) {

        &.o-focused {
            box-shadow: -5px -5px 10px rgba(black, 0.18);
        }
    }


    .o_Composer {
        border: 0;
    }
}

.o_ChatWindow_header {
    border-radius: 3px 3px 0 0;
}

.o_ChatWindow_newMessageFormInput {
    outline: none;
    border: 1px solid gray('300'); // cancel firefox border on input focus
}

.o_ChatWindow_thread .o_ThreadView_messageList {
    font-size: 1rem;
}