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

@use "pkg:@tuleap/burningparrot-theme/css/includes/global-variables";

#backlog-items-selected-bar {
    position: fixed;
    z-index: 999;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0 15px global-variables.$sidebar-expanded-width;
    border-top: 1px solid #e0e0e0;
    background: rgb(255 255 255 / 95%);
    text-align: center;

    &.ng-enter {
        animation: slideInUp 200ms;
    }

    &.ng-leave {
        animation: slideOutDown 200ms;
    }

    /* stylelint-disable selector-no-qualifying-type */
    > p:first-child {
        margin: 0 0 var(--tlp-small-spacing);
    }

    > p:last-child {
        margin: 0;

        &.focus {
            animation: pulse ease-in-out 750ms;
        }
    }
    /* stylelint-enable */
}

.sidebar-collapsed #backlog-items-selected-bar {
    padding-left: global-variables.$sidebar-collapsed-width;
}
