MediaWiki:Common.css: Difference between revisions

From The Taylor Archive
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Alternative selector fallback */
/* 1. Hide the language portlet chunk completely in Timeless when empty */
#p-lang,
#p-lang-sidebar,
#p-multilingual-message,
#p-lang {
.mw-portlet-lang,
#mw-site-navigation .sidebar-chunk:empty {
     display: none !important;
     display: none !important;
}
/* 2. Hide any sidebar card in Timeless that contains no visible links */
#mw-site-navigation .sidebar-chunk:not(:has(ul li)) {
    display: none !important;
}
/* 3. Fallback: target the last card directly if the browser doesn't support :has() */
#mw-site-navigation .sidebar-chunk:last-child {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}

Revision as of 18:51, 20 July 2026

/* CSS placed here will be applied to all skins */

/* 1. Hide the language portlet chunk completely in Timeless when empty */
#p-lang-sidebar,
#p-lang {
    display: none !important;
}

/* 2. Hide any sidebar card in Timeless that contains no visible links */
#mw-site-navigation .sidebar-chunk:not(:has(ul li)) {
    display: none !important;
}

/* 3. Fallback: target the last card directly if the browser doesn't support :has() */
#mw-site-navigation .sidebar-chunk:last-child {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}