MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ========================= | ||
SUBTABS WRAPPER | |||
========================= */ | |||
.subtab-wrapper { | .subtab-wrapper { | ||
border-bottom: 1px solid #a2a9b1; | border-bottom: 1px solid #a2a9b1; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
padding-bottom: 0. | padding-bottom: 0.25em; | ||
} | } | ||
/* | /* ========================= | ||
FLEX CONTAINER FIX | |||
========================= */ | |||
.subtab-list { | .subtab-list { | ||
display: flex; | display: flex !important; | ||
flex-wrap: wrap; | flex-direction: row; | ||
gap: 0. | flex-wrap: wrap; /* change to nowrap if you want scroll tabs */ | ||
gap: 0.4rem; | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | |||
align-items: center; | |||
/* prevents Citizen overrides */ | |||
width: 100%; | |||
} | } | ||
/* | /* ========================= | ||
TAB ITEMS (CRITICAL FIX) | |||
========================= */ | |||
.subtab-item { | .subtab-item { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
width: auto !important; | width: auto !important; | ||
. | padding: 0.25em 0.6em; | ||
border-radius: 4px; | |||
white-space: nowrap; | |||
text-decoration: none; | |||
} | } | ||
/* | /* Make MediaWiki links inside spans behave properly */ | ||
.subtab-item a { | .subtab-item a { | ||
text-decoration: none | text-decoration: none; | ||
color: | color: inherit; | ||
} | } | ||
/* | /* ========================= | ||
.subtab-item | ACTIVE TAB | ||
========================= */ | |||
.subtab-item.active { | |||
font-weight: 600; | |||
border-bottom: 2px solid #36c; | |||
} | } | ||
/* | /* ========================= | ||
.subtab-item | OPTIONAL: HOVER EFFECT | ||
========================= */ | |||
.subtab-item:hover { | |||
background: rgba(54, 108, 204, 0.08); | |||
} | } | ||
/* | /* ========================= | ||
EMERGENCY OVERRIDE (Citizen safety net) | |||
========================= */ | |||
.subtab-list > * { | |||
display: inline-flex !important; | |||
width: auto !important; | |||
.subtab- | |||
display: inline- | |||
} | } | ||
Revision as of 16:10, 21 April 2026
/* =========================
SUBTABS WRAPPER
========================= */
.subtab-wrapper {
border-bottom: 1px solid #a2a9b1;
margin-bottom: 1em;
padding-bottom: 0.25em;
}
/* =========================
FLEX CONTAINER FIX
========================= */
.subtab-list {
display: flex !important;
flex-direction: row;
flex-wrap: wrap; /* change to nowrap if you want scroll tabs */
gap: 0.4rem;
margin: 0;
padding: 0;
list-style: none;
align-items: center;
/* prevents Citizen overrides */
width: 100%;
}
/* =========================
TAB ITEMS (CRITICAL FIX)
========================= */
.subtab-item {
display: inline-flex !important;
width: auto !important;
padding: 0.25em 0.6em;
border-radius: 4px;
white-space: nowrap;
text-decoration: none;
}
/* Make MediaWiki links inside spans behave properly */
.subtab-item a {
text-decoration: none;
color: inherit;
}
/* =========================
ACTIVE TAB
========================= */
.subtab-item.active {
font-weight: 600;
border-bottom: 2px solid #36c;
}
/* =========================
OPTIONAL: HOVER EFFECT
========================= */
.subtab-item:hover {
background: rgba(54, 108, 204, 0.08);
}
/* =========================
EMERGENCY OVERRIDE (Citizen safety net)
========================= */
.subtab-list > * {
display: inline-flex !important;
width: auto !important;
}