Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 11: Line 11:
/* FORCE flex even under Citizen overrides */
/* FORCE flex even under Citizen overrides */
.subtab-list {
.subtab-list {
     display: flex !important;
     display: flex;
    flex-direction: row;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 1.2em;
     gap: 0.5rem;
     align-items: center;
     list-style: none;
    margin: 0;
    padding: 0;
}
}


/* Ensure items behave as inline-flex (Citizen likes to break flex children) */
/* Ensure items behave as inline-flex (Citizen likes to break flex children) */
.subtab-item {
.subtab-item {
     display: inline-flex;
     display: inline-flex !important;
     align-items: center;
     width: auto !important;
}
 
.subtab-item.active {
    font-weight: bold;
    border-bottom: 2px solid #36c;
}
}



Revision as of 16:09, 21 April 2026

/* All CSS here will be loaded for users of the Citizen skin */

/* === SubTabs Navigation === */

.subtab-wrapper {
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
}

/* FORCE flex even under Citizen overrides */
.subtab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure items behave as inline-flex (Citizen likes to break flex children) */
.subtab-item {
    display: inline-flex !important;
    width: auto !important;
}

.subtab-item.active {
    font-weight: bold;
    border-bottom: 2px solid #36c;
}

/* Link reset (Citizen aggressively styles links) */
.subtab-item a {
    text-decoration: none !important;
    color: #0645ad;
    padding-bottom: 2px;
    display: inline-block;
}

/* Hover */
.subtab-item a:hover {
    text-decoration: underline !important;
}

/* Active tab override (VERY IMPORTANT for Citizen) */
.subtab-item.active a {
    font-weight: 700;
    color: #202122 !important;
    border-bottom: 2px solid #202122;
}

/* Base tab */
.subtab-base a {
    font-weight: 700;
}

/* Link */
.subtab-link {
    display: inline-block;
}