PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

MediaWiki:Common.css: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
Line 10: Line 10:
}
}


/* Disable links in table headers but keep sorting */
/* STRONG FIX: Disable links in ALL sortable table headers */
table.smwtable th.headerSort a,  
table.wikitable th a,
table.smwtable th a {
table.wikitable th.headerSort a {
     pointer-events: none;
     pointer-events: none !important; /* Makes clicks pass through to the sort button */
     cursor: default;
     cursor: pointer !important;     /* Shows the hand cursor for sorting */
     color: black; /* Optional: makes it look like normal text */
     color: black !important;         /* Forces text to look black, not blue */
     text-decoration: none;
     text-decoration: none !important; /* Removes the underline */
}
/* Re-enable pointer events for the sort icon if needed,
  but usually clicking the TH cell handles the sort. */
table.smwtable th {
    cursor: pointer;
}
}

Revision as of 22:59, 3 February 2026

/* CSS placed here will be applied to all skins */
/* Force tables to use 100% width when this class is used */
.fullwidth {
    width: 100% !important;
}

/* Optional: Prevent Game Mode from wrapping onto two lines */
.nowrap {
    white-space: nowrap;
}

/* STRONG FIX: Disable links in ALL sortable table headers */
table.wikitable th a,
table.wikitable th.headerSort a {
    pointer-events: none !important; /* Makes clicks pass through to the sort button */
    cursor: pointer !important;      /* Shows the hand cursor for sorting */
    color: black !important;         /* Forces text to look black, not blue */
    text-decoration: none !important; /* Removes the underline */
}