MediaWiki:Gadget-responsive-tables.css

From Path of Exile 2 Wiki
Revision as of 14:11, 29 November 2021 by Vinifera7 (talk | contribs) (Created page with ".c-responsive-table { margin-bottom: 20px; } .c-responsive-table__toolbar { margin-bottom: 2px; } .c-responsive-table__toolbar-button { display: inline-block;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After saving, you have to bypass your browser's cache to see the changes. The simplest method that will work for most users is to hold down the ⇧ Shift key and click the Reload toolbar button. For details and other methods, see Help:Clear your browser cache.

.c-responsive-table {
    margin-bottom: 20px;
}
.c-responsive-table__toolbar {
    margin-bottom: 2px;
}
.c-responsive-table__toolbar-button {
    display: inline-block;
    margin-right: 0.4em;
    border: none;
    font-size: 12px;
    color: #7c8489;
    background: #27292a;
}
.c-responsive-table__toolbar-button:hover,
.c-responsive-table__toolbar-button:focus {
    color: #a5b2bb;
    text-shadow: none;
    background: #343738;
}
.c-responsive-table__toolbar-button svg {
    display: inline-block;
    margin-right: 0.2em;
    vertical-align: -.125em;
    width: 1em;
    height: 1em;
}
.c-responsive-table__scroll {
    display: block;
    overflow-y: auto;
    overflow-x: auto;
    max-width: fit-content;
    max-width: -moz-fit-content;
    max-height: 50vh;
}
@media screen and (min-height: 600px) {
    .c-responsive-table__scroll {
        max-height: 25vh;
    }
}
.c-responsive-table.is-expanded .c-responsive-table__scroll {
    max-height: none !important;
    overflow-y: visible;
}
.c-responsive-table__table {
    margin: 0 !important;
}
.c-responsive-table__table tr:first-of-type th {
    position: sticky;
    top: 0px;
}
/* Needs to be set to -1px or a row of pixels is visible above the header on chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .c-responsive-table__table tr:first-of-type th {
        top: -1px;
    }
}