/*
*
* @copyright Copyright (c) Open-Xchange GmbH, Germany <info@open-xchange.com>
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.

* You should have received a copy of the GNU Affero General Public License
* along with OX App Suite. If not, see <https://www.gnu.org/licenses/agpl-3.0.txt>.
*
* Any use of the work other than as authorized under this license or copyright law is prohibited.
*
*/

@font-face {
    font-family: 'AndroidEmojiRegular';
    src: url('font/androidemoji.eot');
    src: url('font/androidemoji.eot') format('embedded-opentype'),
         url('font/androidemoji.woff') format('woff'),
         url('font/androidemoji.ttf') format('truetype');
}

.emojifont { font-family: 'AndroidEmojiRegular'; }

img.emoji {
    border: 0;
    margin: 0 2px;
}

.mceIcon.mce_emoji { background-position:-60px -20px; }

// work-around for Bug 34943 - the second rule can be removed for 7.8.0
// was .mceEmojiPane, .mce-container .mceEmojiPane
.mce-container .mceEmojiPane, .emoji-picker {
    height: 400px;
    width: 22.125rem;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.emoji-picker {

    .emoji-header {
        height: 2rem;
        border-bottom: 1px solid #ddd;
        padding: 0 16px;
        .emoji-category {
            font-weight: bold;
            line-height: 32px;
        }
    }

    .emoji-icons {
        flex: 1;
        padding: 16px;
        white-space: normal;
        overflow-y: auto;
        background-color: white;
    }

    .reset-recents {
        background: #eee;
        padding: 0;
        width: 100%;
        color: #333;
        font-size: 14px;
        line-height: 32px;
        text-align: center;
        box-sizing: border-box;
        cursor: pointer;
        display: block;
        margin-top: 8px;
    }

    button {
        /* we need a different font, otherwise we see broken emojis */
        // segoe is needed for IE11 or emojis will be black and white only
        font: 28px/40px "Helvetica Neue", "Segoe UI Emoji", Helvetica, Arial, sans-serif;
        color: @black;
        display: inline-block;
        width: 2.5rem;
        text-align: center;
        text-decoration: none;
        background-color: transparent;
        border-radius: 4px;
        padding: 0;
        border: 0;
        margin: 0;
        outline: 0;
        &:focus {
            background-color: @link-color;
        }
    }

    .emoji-footer {
        padding: 8px 16px;
        white-space: normal;
        border-top: 1px solid #ddd;
        overflow: hidden;
        display: flex;
        justify-content: space-between;
        button {
            font-size: 24px;
            filter: saturate(0);
        }
        .active {
            color: @link-color;
            filter: saturate(1);
        }
    }

    /* bootstrap re-resets */

    .dropdown-toggle, .dropdown-toggle * { cursor: pointer; }

    .dropdown-menu {
        padding: 5px 0;
        margin: 2px 0 0;
        background-color: #FFF;
        border: 1px solid rgba(0, 0, 0, 0.2);

        a { cursor: pointer; }
    }
}
