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

.o_ChatterTopbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    // We need the +1 to handle the status bar border-bottom.
    // The var is called `$o-statusbar-height`, but is used on button, therefore
    // doesn't include the border-bottom.
    // We use min-height to allow multiples buttons lines on mobile.
    min-height: $o-statusbar-height + 1;
}

.o_ChatterTopbar_actions {
    border-bottom: $border-width solid;
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap-reverse; // reverse to ensure send buttons are directly above composer
}

.o_ChatterTopbar_button {
    margin-bottom: -$border-width; /* Needed to allow "overriding" of the bottom border */
}

.o_ChatterTopbar_buttonAttachmentsCountLoader {
    margin-left: 2px;
}

.o_ChatterTopbar_buttonCount {
    padding-left: 0.25rem;
}

.o_ChatterTopbar_buttonClose {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
}

.o_ChatterTopbar_followerListMenu {
    display: flex;
}

.o_ChatterTopbar_rightSection {
    display: flex;
    flex: 1 0 auto;
    justify-content: flex-end;
}

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

.o_ChatterTopbar_actions {
    border-color: transparent;

    &.o-has-active-button {
        border-color: $border-color;
    }
}

.o_ChatterTopbar_button {
    border-radius: 0;

    &:hover {
        background-color: gray('300');
    }

    &.o-active {
        color: $o-brand-odoo;
        background-color: lighten(gray('300'), 7%);
        border-right-color: $border-color;

        &:not(:first-of-type),
        &:first-of-type.o-bordered {
            border-left-color: $border-color;
        }

        &.o-bordered {
            border-top-color: $border-color;
        }

        &:hover {
            background-color: gray('300');
            color: $link-hover-color;
        }
    }
}

.o_ChatterTopbar_buttonClose {
    border-radius: 0 0 10px 10px;
    font-size: $font-size-lg;
    background-color: gray('700');
    color: gray('100');
    cursor: pointer;

    &:hover {
        background-color: gray('600');
        color: $white;
    }
}