<commit_before>// when to show what header buttons where.
// not certain if this is how we'll do this yet.
body {
    .header-button {
        display: none;
    }
    &[data-page-type='search'] {
        .header-button {
            &.home, &.expand, &.filter {
                display: block;
            }
        }
        #site-header h1.page {
            display: none;
        }
        #search, #search-q {
            display: block;
            width: 144px;
        }
    }
    &[data-page-type='leaf'], &[data-page-type='alpha'] {
        .header-button {
            &.back {
                display: block;
            }
        }
    }
    &[data-page-type='root'] {
        .header-button {
            &.search, &.settings {
                display: block;
            }
        }
    }
    // Simple single pages with a home icon.
    &[data-page-type='notice'] {
        .header-button {
            &.home {
                display: block;
            }
        }
    }
    &.show-search {
        #site-header h1 {
            display: none;
        }
        #search {
            display: block;
            width: 235px;
            max-width: 235px;
            margin: 0 12px 0 0;
        }
        #search-q {
            width: 235px;
            margin-right: 12px;
        }
        .header-button {
            &.right, &.settings {
                display: none;
            }
            &.cancel {
                display: block;
            }
        }
    }
}

@media (min-width: 532px) {
    body[data-page-type='root'] {
        #search {
            display: block;
        }
        .header-button {
            &.search {
                display: none;
            }
        }
    }
}
<commit_msg>fix cancel button overlap (bug 820189)<commit_after>// when to show what header buttons where.
// not certain if this is how we'll do this yet.
body {
    .header-button {
        display: none;
    }
    &[data-page-type='search'] {
        .header-button {
            &.home, &.expand, &.filter {
                display: block;
            }
        }
        #site-header h1.page {
            display: none;
        }
        #search, #search-q {
            display: block;
            width: 144px;
        }
    }
    &[data-page-type='leaf'], &[data-page-type='alpha'] {
        .header-button {
            &.back {
                display: block;
            }
        }
    }
    &[data-page-type='root'] {
        .header-button {
            &.search, &.settings {
                display: block;
            }
        }
    }
    // Simple single pages with a home icon.
    &[data-page-type='notice'] {
        .header-button {
            &.home {
                display: block;
            }
        }
    }
    &.show-search {
        #site-header h1 {
            display: none;
        }
        #search {
            display: block;
            width: 235px;
            max-width: 235px;
            margin: 0 12px 0 0;
        }
        #search-q {
            width: 198px;
            margin-right: 12px;
        }
        .header-button {
            &.right, &.settings {
                display: none;
            }
            &.cancel {
                display: block;
            }
        }
    }
}

@media (min-width: 532px) {
    body[data-page-type='root'] {
        #search {
            display: block;
        }
        .header-button {
            &.search {
                display: none;
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.12503568369968598, 'fraction_numerical': 0.015415358264344847, 'mean_word_length': 0.959731543624161, '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': '1182975', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1018, 'n_words': 213}