Jump to content

Template:OOOInfoBox/styles.css: Difference between revisions

From Out of Ore Wiki
No edit summary
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* NMC dark skin for OOO infobox */
/* =========================================================
  OOO INFOBOX — Clean Industrial Style
  Matches OOO wiki design system
  ========================================================= */
 
.ooo-infobox {
.ooo-infobox {
   width: 340px;
   width: 300px;
  border: 1px solid #454545;
   border-collapse: collapse;
   border-collapse: separate;
   font-size: 0.92rem;
   border-spacing: 0;
 
   background: #2a2a2a;               /* dark card */
   background: transparent;
   color: #eaeaea;
   color: inherit;
  font-size: 90%;
 
   box-shadow: 0 2px 10px rgba(0,0,0,.25);
   float: right;
   border-radius: 12px;
   clear: right;
   overflow: hidden;
   margin: 0 0 1em 1em;
}
}


/* title bar */
/* ---------------------------------------------------------
.ooo-infobox .ooo-infobox__title {
  TITLE
--------------------------------------------------------- */
 
.ooo-infobox__title {
   text-align: center;
   text-align: center;
   font-weight: 800;
   font-weight: 800;
   font-size: 112%;
   font-size: 1.1rem;
   letter-spacing: .2px;
   letter-spacing: 0.3px;
   background: #353535;               /* your dark gray */
 
   color: #cea141;                     /* your gold */
   padding-bottom: 10px;
   padding: 12px 10px;
   margin-bottom: 8px;
   border-bottom: 1px solid #454545;
 
   color: var(--ooo-accent);
 
   border-bottom: 2px solid var(--ooo-border);
}
}


/* image area */
/* ---------------------------------------------------------
.ooo-infobox .ooo-infobox__image {
  IMAGE
--------------------------------------------------------- */
 
.ooo-infobox__image {
   text-align: center;
   text-align: center;
   padding: 12px;
   padding: 8px 0 12px 0;
   background: #2f2f2f;
}
 
.ooo-infobox__image img {
  max-width: 100%;
   height: auto;
}
}


/* caption / description */
/* ---------------------------------------------------------
.ooo-infobox .ooo-infobox__caption {
  CAPTION
--------------------------------------------------------- */
 
.ooo-infobox__caption {
   text-align: center;
   text-align: center;
   font-style: italic;
   font-size: 0.85rem;
   color: #cfcfcf;
   margin-bottom: 12px;
  padding: 8px 12px 12px;
   opacity: 0.8;
   line-height: 1.35;
  background: #2f2f2f;
  border-bottom: 1px solid #3a3a3a;
}
}


/* rows */
/* ---------------------------------------------------------
  TABLE CELLS
--------------------------------------------------------- */
 
.ooo-infobox th,
.ooo-infobox th,
.ooo-infobox td {
.ooo-infobox td {
   padding: 9px 12px;
   padding: 6px 4px;
   vertical-align: top;
   vertical-align: top;
}
}


.ooo-infobox th {
.ooo-infobox th {
  width: 46%;
  color: #e6e6e6;
   text-align: left;
   text-align: left;
   font-weight: 600;
   font-weight: 600;
  width: 48%;
  opacity: 0.9;
}
}


/* subtle zebra striping */
.ooo-infobox td {
.ooo-infobox tr:nth-child(even) td,
   text-align: right;
.ooo-infobox tr:nth-child(even) th {
   background: rgba(255,255,255,0.03);
}
}


/* group headers */
/* ---------------------------------------------------------
  GROUP HEADERS
--------------------------------------------------------- */
 
.ooo-infobox__group th {
.ooo-infobox__group th {
   text-align: center !important;
   padding-top: 14px;
   font-weight: 800 !important;
  padding-bottom: 4px;
   padding: 10px 12px !important;
 
   background: #303030 !important;
  font-size: 0.85rem;
   color: #f0f0f0 !important;
   font-weight: 800;
   border-top: 1px solid #3a3a3a;
   letter-spacing: 0.3px;
   border-bottom: 1px solid #3a3a3a;
   text-transform: uppercase;
 
   color: var(--ooo-accent);
 
   border-bottom: 1px solid var(--ooo-border);
}
 
/* ---------------------------------------------------------
  MUTED TEXT
--------------------------------------------------------- */
 
.ooo-infobox__muted {
   opacity: 0.7;
}
}


/* small helper */
/* ---------------------------------------------------------
.ooo-infobox .ooo-infobox__muted { color: #bdbdbd; }
  ALIGNMENT OPTIONS
--------------------------------------------------------- */
 
.ooo-infobox--left {
  float: left;
  clear: left;
  margin: 0 1em 1em 0;
}


/* link contrast inside the box */
.ooo-infobox--none {
.ooo-infobox a { color: #ffd27a; }
  float: none;
.ooo-infobox a:hover { color: #ffeaac; }
  margin: 0 0 1em 0;
}


/* images should not overflow */
.ooo-infobox--center {
.ooo-infobox .ooo-infobox__image img { max-width: 100%; height: auto; }
  float: none;
  margin: 0 auto 1em;
}
 
/* ---------------------------------------------------------
  MOBILE
--------------------------------------------------------- */
 
@media (max-width: 640px) {
  .ooo-infobox,
  .ooo-infobox--left,
  .ooo-infobox--none,
  .ooo-infobox--center {
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
  }
}

Latest revision as of 20:35, 4 March 2026

/* =========================================================
   OOO INFOBOX — Clean Industrial Style
   Matches OOO wiki design system
   ========================================================= */

.ooo-infobox {
  width: 300px;
  border-collapse: collapse;
  font-size: 0.92rem;

  background: transparent;
  color: inherit;

  float: right;
  clear: right;
  margin: 0 0 1em 1em;
}

/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.ooo-infobox__title {
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.3px;

  padding-bottom: 10px;
  margin-bottom: 8px;

  color: var(--ooo-accent);

  border-bottom: 2px solid var(--ooo-border);
}

/* ---------------------------------------------------------
   IMAGE
--------------------------------------------------------- */

.ooo-infobox__image {
  text-align: center;
  padding: 8px 0 12px 0;
}

.ooo-infobox__image img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   CAPTION
--------------------------------------------------------- */

.ooo-infobox__caption {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

/* ---------------------------------------------------------
   TABLE CELLS
--------------------------------------------------------- */

.ooo-infobox th,
.ooo-infobox td {
  padding: 6px 4px;
  vertical-align: top;
}

.ooo-infobox th {
  text-align: left;
  font-weight: 600;
  width: 48%;
  opacity: 0.9;
}

.ooo-infobox td {
  text-align: right;
}

/* ---------------------------------------------------------
   GROUP HEADERS
--------------------------------------------------------- */

.ooo-infobox__group th {
  padding-top: 14px;
  padding-bottom: 4px;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;

  color: var(--ooo-accent);

  border-bottom: 1px solid var(--ooo-border);
}

/* ---------------------------------------------------------
   MUTED TEXT
--------------------------------------------------------- */

.ooo-infobox__muted {
  opacity: 0.7;
}

/* ---------------------------------------------------------
   ALIGNMENT OPTIONS
--------------------------------------------------------- */

.ooo-infobox--left {
  float: left;
  clear: left;
  margin: 0 1em 1em 0;
}

.ooo-infobox--none {
  float: none;
  margin: 0 0 1em 0;
}

.ooo-infobox--center {
  float: none;
  margin: 0 auto 1em;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 640px) {
  .ooo-infobox,
  .ooo-infobox--left,
  .ooo-infobox--none,
  .ooo-infobox--center {
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
  }
}