/**
 * Copyright (c) Enalean, 2022-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 "sass:map";
@use "pkg:@tuleap/tlp-swatch-colors";

.list-picker-option-colored-label-container {
    display: flex;
    align-items: center;
}

%-circular-knob {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.list-picker-circular-color {
    @extend %-circular-knob;

    margin: 0 6px 0 0;
    border: 3px solid var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.list-picker-circular-legacy-color {
    @extend %-circular-knob;

    display: flex;
    box-sizing: border-box; // To have the same round color size in BP and FP.
    align-items: center;
    margin: 0 6px 0 0;
}

.list-picker-avatar {
    @extend %-circular-knob;

    display: inline-block;
    margin: 0 4px 0 0;
    overflow: hidden;
    background: var(--tlp-neutral-normal-color) url("./assets/list-picker-default-avatar.svg")
        no-repeat center center;
    background-size: contain;
    vertical-align: middle;
}
