MediaWiki:Common.css

From Tuflow
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Hardware benchmark search controls */

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

.benchmark-table-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    float: right;
    width: 32%;
    min-width: 360px;
    max-width: 500px;
    margin: -2.35rem 0 0.25rem 1rem;
}

.benchmark-table-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.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: 100%;
    min-width: 0;
    max-width: none;
    min-height: 1.2rem;
    margin-top: 0.2rem;
    color: #72777d;
    font-size: 0.82rem;
    line-height: 1.2rem;
    text-align: left;
}

.benchmark-results-table {
    clear: both;
    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 {
        float: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0 0 0.35rem;
        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;
    }
}

/* Example Model Catalogue search controls */

.example-model-table-block {
    display: table;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.example-model-table-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 0 0.35rem;
}

.example-model-table-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 38%;
    min-width: 360px;
    max-width: 560px;
}

.example-model-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;
    text-align: left;
}

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

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

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

.example-model-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;
}

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

.example-model-result-count {
    width: 38%;
    min-width: 360px;
    max-width: 560px;
    min-height: 1.2rem;
    margin-top: 0.2rem;
    color: #72777d;
    font-size: 0.82rem;
    line-height: 1.2rem;
    text-align: left;
}

.example-model-results-table {
    width: 100%;
    margin-top: 0 !important;
}

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

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

    .example-model-table-controls {
        align-items: stretch;
    }

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

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

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

/* Final Example Model Catalogue search styling override */

body .example-model-table-block {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

body .example-model-table-controls {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    width: 100% !important;
    margin: 0 0 0.35rem !important;
}

body .example-model-table-search {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    width: 38% !important;
    min-width: 360px !important;
    max-width: 560px !important;
}

body input.example-model-search-input {
    box-sizing: border-box !important;
    display: block !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: 1px solid #a2b6cc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    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") !important;
    background-repeat: no-repeat !important;
    background-position: 0.7rem center !important;
    background-size: 16px 16px !important;
    color: #202122 !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

body input.example-model-search-input::placeholder {
    color: #72777d !important;
}

body input.example-model-search-input:hover {
    border-color: #7896bd !important;
}

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

body button.example-model-search-clear {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 0.75rem !important;
    border: 1px solid #a2a9b1 !important;
    border-radius: 4px !important;
    background: #f8f9fa !important;
    color: #202122 !important;
    font: inherit !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

body .example-model-result-count {
    width: 38% !important;
    min-width: 360px !important;
    max-width: 560px !important;
    min-height: 1.2rem !important;
    margin-top: 0.2rem !important;
    color: #72777d !important;
    font-size: 0.82rem !important;
    line-height: 1.2rem !important;
    text-align: left !important;
}

body .example-model-results-table {
    width: 100% !important;
    margin-top: 0 !important;
}

body .example-model-results-table tr[hidden] {
    display: none !important;
}

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

    body .example-model-table-controls {
        align-items: stretch !important;
    }

    body .example-model-table-search,
    body .example-model-result-count {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

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

    body button.example-model-search-clear {
        align-self: flex-end !important;
    }
}