wikimedia/mediawiki-core

View on GitHub
resources/src/jquery/jquery.suggestions.css

Summary

Maintainability
Test Coverage
/* suggestions plugin */

/* stylelint-disable selector-class-pattern */

.suggestions {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    border: 0;
    z-index: 1099;
    padding: 0;
    margin: -1px 0 0 0;
}

.suggestions-special {
    position: relative;
    background-color: #fff;
    cursor: pointer;
    border: 1px solid #a2a9b1;
    margin: 0;
    margin-top: -2px;
    display: none;
    padding: 0.25em 0.25em;
    line-height: 1.25em;
}

.suggestions-results {
    background-color: #fff;
    cursor: pointer;
    border: 1px solid #a2a9b1;
    padding: 0;
    margin: 0;
}

.suggestions-result {
    color: #000;
    margin: 0;
    line-height: 1.5em;
    padding: 0.01em 0.25em;
    text-align: left;
    /* Apply ellipsis to suggestions */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestions-result-current {
    background-color: #2a4b8d;
    color: #fff;
}

.suggestions-special .special-label {
    color: #72777d;
    text-align: left;
}

.suggestions-special .special-query {
    color: #000;
    font-style: italic;
    text-align: left;
}

.suggestions-special .special-hover {
    background-color: #c8ccd1;
}

.suggestions-result-current .special-label,
.suggestions-result-current .special-query {
    color: #fff;
}

.highlight {
    font-weight: bold;
}