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

.o_ChatWindowHeader {
    display: flex;
    align-items: center;
    height: $o-mail-chat-window-header-height;

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

.o_ChatWindowHeader_command {
    padding: 0 8px;
    display: flex;
    height: 100%;
    align-items: center;

    &:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
}

.o_ChatWindowHeader_commandBack {
    margin-right: 5px;
}

.o_ChatWindowHeader_item {
    margin: 0 3px;

    &.o_ChatWindowHeader_rightArea {
        margin-right: 0;
    }

    &:first-child {
        margin-left: 10px;

        &.o_ChatWindowHeader_command {
            margin-left: 0px; // no margin for commands
        }
    }

    &.o_ChatWindowHeader_rightArea:last-child .o_ChatWindowHeader_command {
        margin-right: 0px; // no margin for commands
    }
}

.o_ChatWindowHeader_name {
    max-height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.o_ChatWindowHeader_rightArea {
    display: flex;
    height: 100%;
    align-items: center;
}

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

.o_ChatWindowHeader {
    background-color: $o-brand-odoo;
    color: white;
    cursor: pointer;

    &:not(.o-mobile) {

        &:hover .o_ChatWindowHeader_command {
            opacity: 0.7;

            &:hover {
                opacity: 1;
            }
        }

        &:not(:hover) .o_ChatWindowHeader_command {
            opacity: 0.5;
        }
    }

}

.o_ChatWindowHeader_command.o-mobile {
    font-size: 1.3rem;
}

.o_ChatWindowHeader_name {
    user-select: none;
}