/**
 * Copyright (c) Enalean, 2019 - Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "pkg:@tuleap/tlp-swatch-colors/tlp-swatch-colors";

.quick-look-pane-highlighted .document-quick-look-folder-container {
    > .document-quick-look-dropzone-text {
        opacity: 0.85;
        color: var(--tlp-main-color);
    }

    > .document-folder-icon {
        display: none;
    }

    > .document-drop-into-folder-icon {
        display: block;
        opacity: 0.85;
    }
}

.quick-look-pane-highlighted-forbidden .document-quick-look-folder-container {
    > .document-quick-look-dropzone-text {
        opacity: 0.85;
        color: var(--tlp-danger-color);
    }

    > .document-folder-icon,
    > .document-drop-into-folder-icon {
        display: none;
    }

    > .fa-ban {
        display: block;
    }
}

.document-quick-look-folder-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    margin: 0 0 var(--tlp-medium-spacing);
    transition: transform ease-in-out 100ms;
    text-align: center;

    > .fa-ban {
        display: none;
        position: relative;
        top: -10px;
        transition: opacity ease-in-out 100ms;
        opacity: 0.85;
        color: var(--tlp-danger-color);
        font-size: 100px;
    }
}

.document-folder-icon {
    > path {
        fill: tlp-swatch-colors.$inca-silver-primary;
    }
}

.document-drop-into-folder-icon {
    display: none;

    > path {
        fill: var(--tlp-main-color);
    }
}
