MediaWiki:Common.css: Difference between revisions

From Tuflow
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 9: Line 9:
width: 32%;
width: 32%;
max-width: 500px;
max-width: 500px;
margin: -2.65rem 0 0.75rem 1rem;
margin: -1.95rem 0 0.45rem 1rem;
}
}


Line 15: Line 15:
box-sizing: border-box;
box-sizing: border-box;
width: 100%;
width: 100%;
min-height: 40px;
min-height: 32px;
height: 32px;
padding: 0.55rem 0.9rem 0.55rem 2.5rem;
padding: 0.35rem 0.75rem 0.35rem 2.35rem;
border: 1px solid #a2b6cc;
border: 1px solid #a2b6cc;
border-radius: 4px;
border-radius: 4px;
background-color: #fff;
background-color: #fff;
background-image:
background-image:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23545f6d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23545f6d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-repeat: no-repeat;
background-position: 0.8rem center;
background-position: 0.75rem center;
color: #202122;
color: #202122;
font: inherit;
font: inherit;
Line 43: Line 44:


.benchmark-search-clear {
.benchmark-search-clear {
min-height: 40px;
min-height: 32px;
padding: 0.55rem 0.9rem;
height: 32px;
padding: 0.35rem 0.75rem;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
border-radius: 4px;
border-radius: 4px;
Line 65: Line 67:
max-width: 500px;
max-width: 500px;
min-height: 1.3rem;
min-height: 1.3rem;
margin: -0.55rem 0 0.55rem 1rem;
margin: -0.25rem 0 0.45rem 1rem;
color: #72777d;
color: #72777d;
font-size: 0.82rem;
font-size: 0.82rem;
Line 117: Line 119:
width: 32% !important;
width: 32% !important;
max-width: 500px !important;
max-width: 500px !important;
margin: -2.65rem 0 0.75rem 1rem !important;
margin: -1.95rem 0 0.45rem 1rem !important;
}
}


Line 125: Line 127:
width: 32% !important;
width: 32% !important;
max-width: 500px !important;
max-width: 500px !important;
margin: -0.55rem 0 0.55rem 1rem !important;
margin: -0.25rem 0 0.45rem 1rem !important;
}
}



Revision as of 12:34, 14 July 2026

/* CSS placed here will be applied to all skins */
/* CPU benchmark search controls */

.benchmark-table-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    float: right;
    width: 32%;
    max-width: 500px;
    margin: -1.95rem 0 0.45rem 1rem;
}

.benchmark-search-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    height: 32px;
    padding: 0.35rem 0.75rem 0.35rem 2.35rem;
    border: 1px solid #a2b6cc;
    border-radius: 4px;
    background-color: #fff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23545f6d' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    color: #202122;
    font: inherit;
}

.benchmark-search-input::placeholder {
    color: #72777d;
}

.benchmark-search-input:hover {
    border-color: #7896bd;
}

.benchmark-search-input:focus {
    border-color: #36c;
    box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.14);
    outline: none;
}

.benchmark-search-clear {
    min-height: 32px;
    height: 32px;
    padding: 0.35rem 0.75rem;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    background: #f8f9fa;
    color: #202122;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.benchmark-search-clear:hover {
    border-color: #72777d;
    background: #fff;
}

.benchmark-result-count {
    float: right;
    clear: right;
    width: 32%;
    max-width: 500px;
    min-height: 1.3rem;
    margin: -0.25rem 0 0.45rem 1rem;
    color: #72777d;
    font-size: 0.82rem;
    text-align: left;
}

.benchmark-results-table {
    clear: both;
}

.benchmark-results-table tr[hidden] {
    display: none;
}

@media screen and (max-width: 900px) {
    .benchmark-table-search,
    .benchmark-result-count {
        float: none;
        width: 100%;
        max-width: none;
        margin-left: 0;
    }

    .benchmark-table-search {
        margin-top: 1rem;
        margin-bottom: 0.35rem;
    }

    .benchmark-result-count {
        margin-top: 0;
        margin-bottom: 0.55rem;
    }
}

@media screen and (max-width: 720px) {
    .benchmark-table-search {
        flex-direction: column;
        align-items: stretch;
    }

    .benchmark-search-clear {
        align-self: flex-end;
    }
}

/* Strong override to ensure the search is positioned on the right */
body .benchmark-table-search {
    display: flex !important;
    align-items: center;
    float: right !important;
    width: 32% !important;
    max-width: 500px !important;
    margin: -1.95rem 0 0.45rem 1rem !important;
}

body .benchmark-result-count {
    float: right !important;
    clear: right !important;
    width: 32% !important;
    max-width: 500px !important;
    margin: -0.25rem 0 0.45rem 1rem !important;
}

body .benchmark-results-table {
    clear: both !important;
}

@media screen and (max-width: 900px) {
    body .benchmark-table-search,
    body .benchmark-result-count {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }

    body .benchmark-table-search {
        margin-top: 1rem !important;
        margin-bottom: 0.35rem !important;
    }

    body .benchmark-result-count {
        margin-top: 0 !important;
        margin-bottom: 0.55rem !important;
    }
}