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

.dropzone-overlay {
    display: none;
    z-index: 3;
    &.visible { display: block; }
}

.dropzone-floating {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.1);
    color: #333;
    text-align: center;
    font-family: @normal-font-family;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2em;
    z-index: 65000;
    padding: 32px;

    @hoverColor: #AFC587;
    &.visible { display: flex; }

    .dropzone-floating-action {
        .flex-center();
        flex: 1;
        background: #fff;

        border-top: 2px dashed #aaa;
        border-right: 2px dashed #aaa;
        border-left: 2px dashed #aaa;
        &:last-child { border-bottom: 2px dashed #aaa; }

        &.hover { background-color: @hoverColor; }

        .dndignore { pointer-events: none }
    }
}
.io-ox-dropzone-multiple-overlay {
    display: table;
    color: #333;
    background-color: rgba(0,0,0,0.1);
    text-align: center;
    font-family: @normal-font-family;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2em;
    z-index: 65000;
    height: 100%;
    width: 100%;
    border-spacing: 50px;

    @hoverColor: #AFC587;

    .io-ox-dropzone-action {
        display: table-row;

        div {
            display: table-cell;
            vertical-align: middle;
            .dndignore { pointer-events: none }
            border: 1px dashed #aaa;
            background: #fff;
        }
        &.io-ox-dropzone-hover div {
            border-color: darken(@hoverColor, 30%);
            background-color: @hoverColor;
        }
    }
}

.modal.upload-problems {
    .list-group-item {
        border: 0;
    }
    .list-group-item:nth-child(odd) { background-color: #f5f5f5; }
}

// this is for all browsers without CSS filter support
.io-ox-dropzone-active .io-ox-dropzone-multiple-overlay { background-color: rgba(255, 255, 255, 0.60); }

// for those with CSS filter support (all major browsers except IE; see http://caniuse.com/#search=css%20filter)
.cssfilters .io-ox-dropzone-active {
    #io-ox-core { -webkit-filter: blur(20px); }
    .io-ox-dropzone-multiple-overlay { background-color: rgba(255, 255, 255, 0.20); }
}
