<commit_before>// Only display content to screen readers
//
// See: http://a11yproject.com/posts/how-to-hide-content
//
// 1. For long content, line feeds are not interpreted as spaces and small width
//    causes content to wrap 1 word per line:
//    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
// 2. `clip` is deprecated, use `clip-path` for future-proofing
//    https://www.w3.org/TR/css-masking-1/#clip-property
// See also:
//    https://hugogiraudel.com/2016/10/13/css-hide-and-seek/


@mixin sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    //clip-path: inset(50%); //2
    white-space: nowrap; // 1
    border: 0;
}

// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

@mixin sr-only-focusable {
    &:active,
    &:focus {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;<commit_msg>Fox overflow issue with sr-only (#393)<commit_after>// Only display content to screen readers
//
// See: http://a11yproject.com/posts/how-to-hide-content
//
// 1. For long content, line feeds are not interpreted as spaces and small width
//    causes content to wrap 1 word per line:
//    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
// 2. `clip` is deprecated, use `clip-path` for future-proofing
//    https://www.w3.org/TR/css-masking-1/#clip-property
// See also:
//    https://hugogiraudel.com/2016/10/13/css-hide-and-seek/


@mixin sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    //clip-path: inset(50%); //2
    white-space: nowrap; // 1
    border: 0;
}

// Use in conjunction with .sr-only to only display content when it's focused.
//
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
//
// Credit: HTML5 Boilerplate

@mixin sr-only-focusable {
    &:active,
    &:focus {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
{'fraction_non_alphanumeric': 0.14866581956797967, 'fraction_numerical': 0.04404913172384583, 'mean_word_length': 2.535928143712575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '2991085', 'n_tokens_mistral': 911, 'n_tokens_neox': 823, 'n_words': 220}