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

@drag-size: 40px;

.drag-helper {
    position: absolute;
    z-index: 65000;
    width: 300px;
    height: @drag-size;
    line-height: @drag-size;
    color: #333;
    background-color: rgba(240, 240, 240, 0.95);
    padding: 0 14px 0 @drag-size + 14px;
    border: 1px solid #ccc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    .ellipsis();
}

.drag-counter {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: @drag-size;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: @selected-focussed-background;
}

.dndmask {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.inplace-dropzone {

    margin: 7px;
    border: 2px dashed #ccc;
    background-color: #fff;

    position: relative;
    &.abs { position: absolute; z-index: 1000000; }

    .dropzone-caption, .dropzone-dragover {
        color: #333;
        font-weight: bold;
        text-align: center;
        padding: 0 24px;
        top: 50%;
        width: 100%;
        margin-top: -10px;
        z-index: 1;
    }

    .dropzone-dragover {
        color: #777;
        font-size: 60px;
        line-height: 80px;
        margin-top: -60px;
        display: none;
    }

    .dropzone-overlay {
        background-color: white;
        opacity: 0.01;
        z-index: 2;
        // needed or floating dropzone css overwrites this
        display: block;
    }

    &.dragover {
        border-color: #777;
        .dropzone-caption { color: #aaa; margin-top: 20px; }
        .dropzone-dragover { display: block; }
    }
}
