/**
 * Copyright (c) Enalean, 2018-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/>.
 */

$transition-duration: 50ms;
$transition-delay: 500ms;

%hide-moves-icons {
    > .backlog-item-content-collapsed > .backlog-item-details-effort-container {
        left: 0;
    }

    > .backlog-item-details-moves {
        display: none;
    }
}

.backlog-item-details-moves {
    position: absolute;
    z-index: 1000;
    top: 0;
    right: var(--tlp-small-spacing);
    height: 100%;
    transition: opacity $transition-duration $transition-delay;
    opacity: 0;
}

.backlog-item-details-move {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.7rem;

    &:first-child {
        top: calc((-1) * var(--tlp-small-spacing));
    }

    &:last-child {
        bottom: calc((-1) * var(--tlp-small-spacing));
    }
}
