Jump to content

Template:OOOInfoBoxTabber/styles.css: Difference between revisions

From Out of Ore Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 10: Line 10:
   clear: right;
   clear: right;
   width: 300px;                /* keep in sync with .ooo-infobox */
   width: 300px;                /* keep in sync with .ooo-infobox */
  margin: 0 0 1em 1em;
}
}



Revision as of 20:39, 12 October 2025

/* OOO Infobox – Tabber wrapper (TemplateStyles safe)
   - Default width matches .ooo-infobox (300px)
   - Right-aligned by default; left/none/center overrides
   - Removes tab-strip separator line in all implementations
*/

/* Wrapper (default right) */
.ooo-infobox-tabwrap {
  float: right;
  clear: right;
  width: 300px;                 /* keep in sync with .ooo-infobox */
}

/* Alignment overrides (added by module) */
.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;
  width: 100%;
  box-sizing: border-box;
}

/* 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 color warnings */
  border-bottom: none;          /* blend into panel */
  border-radius: 12px 12px 0 0; /* match infobox radius if rounded */
}

/* Active tab sits flush with content below (hides any seam) */
.ooo-infobox-tabwrap .tabber__tab--active {
  background: var(--background-color-base, #ffffff);
  color: var(--color-base, #202122);
  margin-bottom: -1px;
}

/* Panels: flush with infobox; no borders/padding */
.ooo-infobox-tabwrap .tabber__panel {
  padding: 0;
  border: 0;
  background: transparent;
}

/* Mobile: unfloat, 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;
  }
}