MediaWiki:Common.css

From WikiMedia i11

Revision as of 14:43, 16 January 2026 by Administrator (talk | contribs)

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.
/* Only target links inside the actual article content to avoid breaking UI */
#mw-content-text a:not(.new), 
.mw-parser-output a:not(.new) {
    color: #7D4698 !important;
}

/* Sidebar Links - Excluding dropdown toggles */
.medik-sidebar a:not(.dropdown-toggle), 
.sidebar-inner a:not(.dropdown-toggle) {
    color: #7D4698 !important;
}

/* Top Navigation - Target the text, not the container functionality */
#mw-navigation .nav-link:not(.dropdown-toggle) {
    color: #7D4698 !important;
}

/* Fix for the Dropdown Arrows/Toggles */
/* This ensures the 'arrow' stays visible and doesn't get overwritten */
.dropdown-toggle::after {
    color: #7D4698 !important; 
    vertical-align: middle !important;
}

/* Ensure the dropdown menu itself stays clickable and visible */
.dropdown-menu {
    border-top: 3px solid #7D4698 !important;
    z-index: 9999 !important;
}

.dropdown-item:hover {
    background-color: #f9f5fa !important;
    color: #7D4698 !important;
}

/* --- 2. TABS & BUTTONS (Restricted) --- */
/* Target active tabs specifically so we don't break the click state */
.nav-tabs .nav-item.show .nav-link, 
.nav-tabs .nav-link.active {
    color: #7D4698 !important;
    border-bottom: 2px solid #7D4698 !important;
}