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 */
/* Shared searchable table 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;
    text-align: left;
}

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

/* Hardware benchmark tables */

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

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

/* Example Model Catalogue table */

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

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

/* Prevent the Example Model Catalogue shrinking when no rows match */

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

.example-model-table-block .benchmark-table-controls {
    width: 32%;
    max-width: 500px;
}

.example-model-table-block .example-model-results-table {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 100% !important;
}

/* Responsive layout */

@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;
    }

    .example-model-table-block .benchmark-table-controls {
        width: 100%;
        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;
    }
}

/* QGIS Useful Plugins search table */

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

.qgis-plugin-table-block .qgis-plugin-results-table {
    box-sizing: border-box;
    clear: both;
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 0 !important;
}

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

mark.search-highlight {
    background-color: #ffeb3b;
    color: #202122;
    padding: 0 0.05em;
    border-radius: 2px;
}

@media screen and (max-width: 900px) {
    .qgis-plugin-table-block .benchmark-table-controls {
        width: 100%;
        max-width: none;
    }
}

/* Make the Example Model Catalogue accessible on narrow screens */

.example-model-table-wrapper {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.example-model-table-wrapper .example-model-results-table {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 0;
}

.example-model-table-wrapper .example-model-results-table th,
.example-model-table-wrapper .example-model-results-table td {
    white-space: normal;
    overflow-wrap: break-word;
}

/* Mobile Example Model Catalogue layout */

@media screen and (max-width: 768px) {
    .example-model-table-wrapper {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .example-model-table-wrapper .example-model-results-table {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    .example-model-table-wrapper .example-model-results-table th,
    .example-model-table-wrapper .example-model-results-table td {
        box-sizing: border-box;
        min-width: 0;
        padding: 0.45em 0.3em;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: none;
        font-size: 0.88rem;
        line-height: 1.3;
    }

    /* Keep the model-name column compact */
    .example-model-table-wrapper .example-model-results-table th:last-child,
    .example-model-table-wrapper .example-model-results-table td:last-child {
        min-width: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        font-size: 0.78rem;
    }
}

/* Hide mobile last-edited bar */

.last-modified-bar,
.minerva-footer-last-modified,
footer .last-modified,
footer [class*="last-modified"] {
    display: none !important;
}