<commit_before>@if $enable-loader {
    @keyframes loader-spin-cw {
        to {
            transform: rotate(360deg);
        }
    }

    %loader-circle-base {
        position: relative;
        display: inline-block;
        width: $loader-circle-size;
        height: $loader-circle-size;
        vertical-align: $loader-circle-vertical-align;

        &::before,
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: inherit;
            height: inherit;
            content: "";
            border: $loader-circle-border-width solid transparent;
            // stylelint-disable-next-line property-disallowed-list
            border-radius: 50%;

        }
        &::after {
            border-left-color: currentColor;
            animation: $loader-circle-animation-speed linear infinite loader-spin-cw;
        }

        &::before {
            border-color: currentColor;
            opacity: $loader-circle-alt-opacity;
        }
    }

    @if $enable-loader-circle {
        .loader-circle {
            @extend %loader-circle-base;
        }
    }

    @if $enable-loader-double {
        .loader-double {
            @extend %loader-circle-base;

            &::after {
                border-right-color: currentColor;
            }
        }
    }

    @if $enable-transitions-reduced {
        @media (prefers-reduced-motion: reduce) {
            .loader-spin-cw {
                animation-duration: $loader-circle-animation-speed * 2;
            }
        }
    }
}
<commit_msg>Loader: fix `prefers-reduced-motion` setting (#781)<commit_after>@if $enable-loader {
    @keyframes loader-spin-cw {
        to {
            transform: rotate(360deg);
        }
    }

    %loader-circle-base {
        position: relative;
        display: inline-block;
        width: $loader-circle-size;
        height: $loader-circle-size;
        vertical-align: $loader-circle-vertical-align;

        &::before,
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            width: inherit;
            height: inherit;
            content: "";
            border: $loader-circle-border-width solid transparent;
            // stylelint-disable-next-line property-disallowed-list
            border-radius: 50%;

        }
        &::after {
            border-left-color: currentColor;
            animation: $loader-circle-animation-speed linear infinite loader-spin-cw;
        }

        &::before {
            border-color: currentColor;
            opacity: $loader-circle-alt-opacity;
        }
    }

    @if $enable-loader-circle {
        .loader-circle {
            @extend %loader-circle-base;
        }
    }

    @if $enable-loader-double {
        .loader-double {
            @extend %loader-circle-base;

            &::after {
                border-right-color: currentColor;
            }
        }
    }

    @if $enable-transitions-reduced {
        @media (prefers-reduced-motion: reduce) {
            .loader-circle,
            .loader-double {
                &::after {
                    animation-duration: $loader-circle-animation-speed * 2;
                }
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.11695018226002431, 'fraction_numerical': 0.005771567436208992, 'mean_word_length': 1.379335260115607, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4483337', 'n_tokens_mistral': 941, 'n_tokens_neox': 892, 'n_words': 158}