Template:OOOInfoBox/styles.css: Difference between revisions

Created page with ".ooo-infobox { width: 320px; border: 1px solid #dcdcdc; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 90%; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 10px; overflow: hidden; } .ooo-infobox th, .ooo-infobox td { padding: 8px 10px; vertical-align: top; } .ooo-infobox .ooo-infobox__title { text-align: center; font-weight: 700; font-size: 110%; background: #f6f6f6; padding: 10px; } .ooo-infobox .ooo-i..."
 
No edit summary
Line 1: Line 1:
/* NMC dark skin for OOO infobox */
.ooo-infobox {
.ooo-infobox {
   width: 320px;
   width: 340px;
   border: 1px solid #dcdcdc;
   border: 1px solid #454545;
   border-collapse: separate;
   border-collapse: separate;
   border-spacing: 0;
   border-spacing: 0;
   background: #fff;
   background: #2a2a2a;              /* dark card */
  color: #eaeaea;
   font-size: 90%;
   font-size: 90%;
   box-shadow: 0 1px 3px rgba(0,0,0,.08);
   box-shadow: 0 2px 10px rgba(0,0,0,.25);
   border-radius: 10px;
   border-radius: 12px;
   overflow: hidden;
   overflow: hidden;
}
}


.ooo-infobox th,
/* title bar */
.ooo-infobox td {
  padding: 8px 10px;
  vertical-align: top;
}
 
.ooo-infobox .ooo-infobox__title {
.ooo-infobox .ooo-infobox__title {
   text-align: center;
   text-align: center;
   font-weight: 700;
   font-weight: 800;
   font-size: 110%;
   font-size: 112%;
   background: #f6f6f6;
  letter-spacing: .2px;
   padding: 10px;
   background: #353535;              /* your dark gray */
  color: #cea141;                     /* your gold */
   padding: 12px 10px;
  border-bottom: 1px solid #454545;
}
}


/* image area */
.ooo-infobox .ooo-infobox__image {
.ooo-infobox .ooo-infobox__image {
   text-align: center;
   text-align: center;
   padding: 10px;
   padding: 12px;
   background: #fafafa;
   background: #2f2f2f;
}
}


/* caption / description */
.ooo-infobox .ooo-infobox__caption {
.ooo-infobox .ooo-infobox__caption {
   text-align: center;
   text-align: center;
   font-style: italic;
   font-style: italic;
   color: #555;
   color: #cfcfcf;
   padding: 6px 10px 10px;
   padding: 8px 12px 12px;
   line-height: 1.35;
   line-height: 1.35;
  background: #2f2f2f;
  border-bottom: 1px solid #3a3a3a;
}
}


.ooo-infobox tr:nth-child(even) td,
/* rows */
.ooo-infobox tr:nth-child(even) th {
.ooo-infobox th,
   background: #fcfcfc;
.ooo-infobox td {
  padding: 9px 12px;
   vertical-align: top;
}
}


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


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


.ooo-infobox__group {
/* group headers */
  background: #f8f9fa;
}
.ooo-infobox__group th {
.ooo-infobox__group th {
   text-align: center;
   text-align: center !important;
   font-weight: 700;
   font-weight: 800 !important;
   padding: 8px 10px;
   padding: 10px 12px !important;
}
  background: #303030 !important;
.ooo-infobox__muted {
  color: #f0f0f0 !important;
   color: #666;
   border-top: 1px solid #3a3a3a;
   font-style: italic;
   border-bottom: 1px solid #3a3a3a;
}
}
/* small helper */
.ooo-infobox .ooo-infobox__muted { color: #bdbdbd; }
/* link contrast inside the box */
.ooo-infobox a { color: #ffd27a; }
.ooo-infobox a:hover { color: #ffeaac; }
/* images should not overflow */
.ooo-infobox .ooo-infobox__image img { max-width: 100%; height: auto; }