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 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* CPU benchmark search controls */
/* Hardware benchmark search controls */

.benchmark-table-block {
display: table;
width: auto;
max-width: 100%;
margin: 0 auto;
}

.benchmark-table-controls {
display: flex;
flex-direction: column;
align-items: flex-end;
margin-bottom: 0.25rem;
}


.benchmark-table-search {
.benchmark-table-search {
Line 6: Line 20:
align-items: center;
align-items: center;
gap: 0.6rem;
gap: 0.6rem;
float: right;
width: 32%;
width: 32%;
min-width: 360px;
max-width: 500px;
max-width: 500px;
margin: 0 0 0.25rem 1rem;
}
}


Line 17: Line 30:
height: 34px;
height: 34px;
min-height: 34px;
min-height: 34px;
max-height: 34px;
padding: 0 0.75rem 0 2.25rem;
padding: 0 0.75rem 0 2.25rem;
line-height: 34px;
border: 1px solid #a2b6cc;
border: 1px solid #a2b6cc;
border-radius: 4px;
border-radius: 4px;
Line 50: Line 61:
height: 34px;
height: 34px;
min-height: 34px;
min-height: 34px;
max-height: 34px;
padding: 0 0.75rem;
padding: 0 0.75rem;
line-height: 32px;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
border-radius: 4px;
border-radius: 4px;
Line 68: Line 77:


.benchmark-result-count {
.benchmark-result-count {
float: right;
clear: right;
width: 32%;
width: 32%;
min-width: 360px;
max-width: 500px;
max-width: 500px;
min-height: 1.2rem;
min-height: 1.2rem;
margin: 0 0 0.4rem 1rem;
margin-top: 0.25rem;
color: #72777d;
color: #72777d;
font-size: 0.82rem;
font-size: 0.82rem;
Line 81: Line 89:


.benchmark-results-table {
.benchmark-results-table {
box-sizing: border-box;
margin-top: 0 !important;
clear: both;
width: 100%;
margin-left: 0;
margin-right: 0;
}
}


Line 93: Line 97:


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


.benchmark-table-search {
.benchmark-table-controls {
margin-top: 1rem;
align-items: stretch;
margin-bottom: 0.35rem;
}
}


.benchmark-table-search,
.benchmark-result-count {
.benchmark-result-count {
margin-top: 0;
width: 100%;
margin-bottom: 0.55rem;
min-width: 0;
max-width: none;
}
}
}
}
Line 120: Line 123:
.benchmark-search-clear {
.benchmark-search-clear {
align-self: flex-end;
align-self: flex-end;
}
}

/* Strong override to ensure compact right-aligned positioning */
body .benchmark-table-search {
display: flex !important;
align-items: center !important;
float: right !important;
width: 32% !important;
max-width: 500px !important;
margin: 0 0 0.25rem 1rem !important;
}

body input.benchmark-search-input {
box-sizing: border-box !important;
width: 100% !important;
height: 34px !important;
min-height: 34px !important;
max-height: 34px !important;
padding: 0 0.75rem 0 2.25rem !important;
line-height: 34px !important;
border-radius: 4px !important;
font-size: 0.95rem !important;
background-size: 16px 16px !important;
background-position: 0.7rem center !important;
}

body button.benchmark-search-clear {
height: 34px !important;
min-height: 34px !important;
max-height: 34px !important;
padding: 0 0.75rem !important;
line-height: 32px !important;
}

body .benchmark-result-count {
float: right !important;
clear: right !important;
width: 32% !important;
max-width: 500px !important;
min-height: 1.2rem !important;
margin: 0 0 0.4rem 1rem !important;
line-height: 1.2rem !important;
}

body .benchmark-results-table {
box-sizing: border-box !important;
clear: both !important;
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !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;
}
}
}
}

Revision as of 12:44, 14 July 2026

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

.benchmark-table-block {
    display: table;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.benchmark-table-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 0.25rem;
}

.benchmark-table-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 32%;
    min-width: 360px;
    max-width: 500px;
}

.benchmark-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 0 0.75rem 0 2.25rem;
    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.7rem center;
    background-size: 16px 16px;
    color: #202122;
    font: inherit;
    font-size: 0.95rem;
}

.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 {
    height: 34px;
    min-height: 34px;
    padding: 0 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 {
    width: 32%;
    min-width: 360px;
    max-width: 500px;
    min-height: 1.2rem;
    margin-top: 0.25rem;
    color: #72777d;
    font-size: 0.82rem;
    line-height: 1.2rem;
    text-align: left;
}

.benchmark-results-table {
    margin-top: 0 !important;
}

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

@media screen and (max-width: 900px) {
    .benchmark-table-block {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .benchmark-table-controls {
        align-items: stretch;
    }

    .benchmark-table-search,
    .benchmark-result-count {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

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

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