/**
 * 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 "quicklook/quicklook-header";
@use "quicklook/quicklook-actions";
@use "quicklook/quicklook-properties";
@use "quicklook/quicklook-embedded";
@use "quicklook/quicklook-image";
@use "quicklook/quicklook-folder";
@use "quicklook/quicklook-icon";

.document-quick-look-dropzone-text {
    transition: opacity ease-in-out 100ms;
    opacity: 0;
    font-size: 14px;
    pointer-events: none;
}

@mixin quick-look-pane-highlighted($color) {
    transition: box-shadow 100ms ease-in-out;
    box-shadow: inset 0 0 0 var(--tlp-small-spacing) $color;

    > .tlp-pane-container > .tlp-pane-section {
        margin: 0 var(--tlp-medium-spacing);
        padding: var(--tlp-medium-spacing) 0;
    }
}

.quick-look-pane-highlighted {
    @include quick-look-pane-highlighted(var(--tlp-main-color-transparent-15));
}

.quick-look-pane-highlighted-forbidden {
    @include quick-look-pane-highlighted(var(--tlp-danger-color-transparent-15));
}

.document-preview-spinner {
    margin: var(--tlp-medium-spacing) 0;
}

.document-quicklook-content {
    text-align: center;
}
