/*
*
* @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.
*
*/

html:not(.smartphone):not(.signature-editor) {
    overflow: hidden;
}

// use class here or we change the font in the entire appsuite
body.mce-content-body {
    // reset tiny font located in default theme
    font-family: Helvetica, Arial, sans-serif;
}

.ox-mce {
    // For large mails e.g. newsletters
    overflow-x: auto;
    margin: 13px;

    &.mce-edit-focus {
        outline: 0;
        .form-control-focus();
    }

    &.simple-mail {
        img {
            max-width: 100%;
            height: auto!important;
        }
    }

    // Force aspect ratio resizing of images in tinymce
    img.aspect-ratio {
        height: auto!important;
    }

    a {
        color: @link-color;
        text-decoration: none;
        &:hover { text-decoration: underline; }
    }

    table {
        border: 0 none;
        line-height: normal;

        td, th { padding: 8px; }
    }

    div { word-wrap: break-word; }

    blockquote {
        font-size: 14px;
        border-left: 1px solid @link-color;
        padding: 7px 0 7px 19px;
        margin: 1em 0 1em 0;
        opacity: 0.5;

        blockquote { opacity: 1.0; }
    }
}
