MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================= | /* ========================= | ||
HARD RESET (Citizen | HARD ISOLATION RESET | ||
(prevents Citizen "card UI") | |||
========================= */ | ========================= */ | ||
.subtab-wrapper, | .subtab-wrapper, | ||
| Line 10: | Line 10: | ||
/* ========================= | /* ========================= | ||
CONTAINER | |||
========================= */ | ========================= */ | ||
.subtab-wrapper { | .subtab-wrapper { | ||
| Line 19: | Line 19: | ||
} | } | ||
/* FLEX ROW | /* ========================= | ||
FLEX ROW | |||
========================= */ | |||
.subtab-list { | .subtab-list { | ||
display: flex !important; | display: flex !important; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 0.4rem; | gap: 0.4rem; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
align-items: center; | |||
} | } | ||
/* | /* ========================= | ||
TABS (IMPORTANT FIX) | |||
========================= */ | |||
.subtab-item { | .subtab-item { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
padding: 0. | padding: 0.25em 0.6em; | ||
border-radius: 4px; | border-radius: 4px; | ||
text-decoration: none !important; | |||
background: transparent !important; /* 🔴 KILLS BLUE BOX */ | |||
border: none !important; | |||
color: inherit; | |||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* | /* links already are the item, so force neutrality */ | ||
.subtab-item | .subtab-item:visited, | ||
.subtab-item:link { | |||
color: inherit; | color: inherit; | ||
} | } | ||
/* ACTIVE TAB */ | /* ========================= | ||
ACTIVE TAB | |||
========================= */ | |||
.subtab-item.active { | .subtab-item.active { | ||
font-weight: 600; | font-weight: 600; | ||
| Line 63: | Line 66: | ||
} | } | ||
/* HOVER */ | /* ========================= | ||
HOVER (optional) | |||
========================= */ | |||
.subtab-item:hover { | .subtab-item:hover { | ||
background: rgba(54,108,204,0.08); | background: rgba(54,108,204,0.08) !important; | ||
} | } | ||
/* FINAL SAFETY NET | /* ========================= | ||
FINAL CITIZEN OVERRIDE SAFETY NET | |||
========================= */ | |||
.subtab-list > * { | .subtab-list > * { | ||
background: transparent !important; | background: transparent !important; | ||
box-shadow: none !important; | |||
border: none !important; | |||
} | } | ||
Revision as of 16:12, 21 April 2026
/* =========================
HARD ISOLATION RESET
(prevents Citizen "card UI")
========================= */
.subtab-wrapper,
.subtab-list,
.subtab-item {
all: unset;
}
/* =========================
CONTAINER
========================= */
.subtab-wrapper {
display: block;
border-bottom: 1px solid #a2a9b1;
margin-bottom: 1em;
padding-bottom: 0.25em;
}
/* =========================
FLEX ROW
========================= */
.subtab-list {
display: flex !important;
flex-wrap: wrap;
gap: 0.4rem;
margin: 0;
padding: 0;
align-items: center;
}
/* =========================
TABS (IMPORTANT FIX)
========================= */
.subtab-item {
display: inline-flex !important;
padding: 0.25em 0.6em;
border-radius: 4px;
text-decoration: none !important;
background: transparent !important; /* 🔴 KILLS BLUE BOX */
border: none !important;
color: inherit;
white-space: nowrap;
}
/* links already are the item, so force neutrality */
.subtab-item:visited,
.subtab-item:link {
color: inherit;
}
/* =========================
ACTIVE TAB
========================= */
.subtab-item.active {
font-weight: 600;
border-bottom: 2px solid #36c;
}
/* =========================
HOVER (optional)
========================= */
.subtab-item:hover {
background: rgba(54,108,204,0.08) !important;
}
/* =========================
FINAL CITIZEN OVERRIDE SAFETY NET
========================= */
.subtab-list > * {
background: transparent !important;
box-shadow: none !important;
border: none !important;
}