// (C) 2024-2025 GoodData Corporation
@use "react-loading-skeleton/dist/skeleton.css";

.gd-ui-kit-skeleton {
    height: 100%;
    width: 100%;
    display: flex;

    &--inline {
        display: inline-flex;
        width: auto;
    }

    &--direction {
        &-column {
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }

        &-row {
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
        }
    }

    &__item {
        border-radius: 3px;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    .react-loading-skeleton {
        --base-color: var(--gd-palette-complementary-2);
        --highlight-color: var(--gd-palette-complementary-0);
    }

    span {
        line-height: 0;
        font-size: 0;
        width: 100%;
        height: 100%;
        display: block;
    }
}
