MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
Tags: Undo Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Fix infobox spacing */ | |||
.infobox { | |||
margin-top: 0 !important; | |||
margin-bottom: 0.5em; | |||
float: right; | |||
clear: right; | |||
} | |||
/* Remove extra spacing from surrounding elements */ | |||
.infobox + * { | |||
clear: none; | |||
} | |||
/* Fix infobox spacing */ | |||
.infobox { | |||
margin-top: 0 !important; | |||
margin-bottom: 0.5em; | |||
float: right; | |||
clear: right; | |||
} | |||
/* Remove extra spacing from surrounding elements */ | |||
.infobox + * { | |||
clear: none; | |||
} | |||
/* ========================= | /* ========================= | ||
TAB BAR CONTAINER | TAB BAR CONTAINER | ||
Revision as of 17:47, 21 April 2026
/* Fix infobox spacing */
.infobox {
margin-top: 0 !important;
margin-bottom: 0.5em;
float: right;
clear: right;
}
/* Remove extra spacing from surrounding elements */
.infobox + * {
clear: none;
}
/* Fix infobox spacing */
.infobox {
margin-top: 0 !important;
margin-bottom: 0.5em;
float: right;
clear: right;
}
/* Remove extra spacing from surrounding elements */
.infobox + * {
clear: none;
}
/* =========================
TAB BAR CONTAINER
========================= */
.wt-tabs {
display: inline-flex;
flex-wrap: wrap;
gap: 0;
border-bottom: 2px solid var(--color-base--subtle, #a2a9b1);
margin-bottom: 1.25em;
padding: 0;
align-items: flex-end;
width: 100%; /* stretch full width to block floats */
}
/* =========================
TAB SPANS (wrappers)
========================= */
.wt-tab {
display: inline-block;
position: relative;
margin-bottom: -2px; /* overlap container border-bottom */
}
/* =========================
TAB LINKS
========================= */
.wt-tab a {
display: inline-block;
padding: 0.4em 0.9em;
text-decoration: none;
color: var(--color-base, #54595d);
background: transparent;
border: 2px solid transparent;
border-bottom: none;
border-radius: 4px 4px 0 0;
line-height: 1.4;
white-space: nowrap;
font-size: 0.9em;
transition: background 0.15s, color 0.15s;
}
/* =========================
HOVER
========================= */
.wt-tab a:hover {
background: var(--color-surface-2, rgba(54,108,204,0.07));
color: var(--color-progressive, #36c);
}
/* =========================
ACTIVE TAB
.is-active is set by #ifeq in Template:SubTabs
========================= */
.wt-tab.is-active a {
font-weight: 600;
color: var(--color-progressive, #36c);
background: var(--color-surface-2, rgba(54,108,204,0.10)); /* visible bg */
border: 2px solid var(--color-base--subtle, #a2a9b1);
border-bottom-color: transparent; /* merges with container border */
border-radius: 4px 4px 0 0;
}