Template:OOOInfoBoxTabber/styles.css
Appearance
/* OOO Infobox – Tabber wrapper (TemplateStyles safe)
- Default width matches .ooo-infobox (300px)
- Right-aligned by default; overrides for left/none/center
- Rounds/clips tab strip to blend with the infobox top corners
*/
/* Default: right-aligned wrapper */
.ooo-infobox-tabwrap {
float: right;
clear: right;
width: 300px; /* match .ooo-infobox default */
margin: 0 0 1em 1em;
/* blend tabs into the infobox with same corner radius */
border-top-left-radius: 12px; /* keep in sync with .ooo-infobox */
border-top-right-radius: 12px;
overflow: hidden; /* clip any tab-strip line at corners */
}
/* Alignment overrides (module adds these classes) */
.ooo-infobox-tabwrap--left { float: left; clear: left; margin: 0 1em 1em 0; }
.ooo-infobox-tabwrap--none { float: none; margin: 0 0 1em 0; }
.ooo-infobox-tabwrap--center { float: none; display: block; margin: 0 auto 1em; }
/* Tab strip */
.ooo-infobox-tabwrap .tabber__tabs {
display: block;
margin: 0 0 .5rem 0;
width: 100%;
box-sizing: border-box;
border: 0; /* remove the horizontal line */
padding: 0;
}
/* Individual tabs */
.ooo-infobox-tabwrap .tabber__tab {
display: inline-block;
font-weight: 700;
font-size: 90%;
line-height: 1.2;
white-space: normal; /* wrap long labels */
padding: .25rem .5rem;
margin-right: .25rem;
text-decoration: none;
background: var(--background-color-neutral, #f5f5f5);
color: var(--color-base, #202122);
border: 1px solid #a2a9b1; /* literal to avoid TemplateStyles warnings */
border-bottom: none;
border-radius: 12px 12px 0 0; /* match infobox radius */
}
/* Active tab blends into the infobox */
.ooo-infobox-tabwrap .tabber__tab--active {
background: var(--background-color-base, #ffffff);
color: var(--color-base, #202122);
margin-bottom: -1px; /* overlap the infobox border to hide seam */
}
/* Tab panels sit flush with the infobox */
.ooo-infobox-tabwrap .tabber__panel {
padding: 0;
border: none;
}
/* Mobile: unfloat and full width */
@media (max-width: 640px) {
.ooo-infobox-tabwrap,
.ooo-infobox-tabwrap--left,
.ooo-infobox-tabwrap--none,
.ooo-infobox-tabwrap--center {
float: none;
width: 100%;
margin: 0 0 1em 0;
}
}