summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/scss/emojis.scss
blob: b2cb71a496d4408a49084dce8bd29bd04525ed4d (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
// General variable
$o-mail-emoji-height: 2rem;

.o_mail_add_emoji {
    float: right;
    margin-bottom: 1rem;
    .dropdown-menu {
        .o_mail_emoji {
            cursor: pointer;
            padding: 2px;
            width: $o-mail-emoji-height;
            height: $o-mail-emoji-height;
            @include hover-focus() {
                background-color: grey('100');
            }
        }
    }
}

.o_form_view {
    // Emojis widgets should hide the emoji dropdown button when the field is invisible.
    // This is necessary because the button is added *after* the main element (and not inside)
    // (see '_attachEmojisDropdown' for more details)
    .o_invisible_modifier + .o_mail_add_emoji{
        display: none !important;
    }
}

.o_mail_emojis_dropdown {
    height: $o-mail-emoji-height;
    width: 40px;
    float: right;
    bottom: 33px;
    margin-bottom: -$o-mail-emoji-height;

    * {
        outline: none!important;
        box-shadow: none!important;
    }

    .dropdown-toggle:after {
        display: none;
    }
}

.o_mail_emojis_dropdown_translation {
    // if the button is added to a text field with a button "language"
    // add margin-right, so the emojis button is placed on the left of the
    // language button
    margin-right: 20px;
}

.o_mail_emojis_dropdown_textarea{
    bottom: 40px;
}


.o_xxs_form_view {
    .o_mail_emojis_dropdown {
        bottom: 50px;
    }
    .o_mail_add_emoji {
        .dropdown-menu {
            max-width: 320px;
        }
    }
}