Jump to content

MediaWiki:Common.css: Difference between revisions

From Crucible Codex
No edit summary
No edit summary
Line 50: Line 50:
}
}


/* ---------------------------------
/* =========================
   CAREERS PAGE LAYOUT
   CAREERS PAGE LAYOUT
   --------------------------------- */
   ========================= */


/* FIX 1:
/* FIX:
   Add containment for each career entry so floated portraits
   Each new entry must start below the previous floated portrait.
   cannot drift into the next entry and create the "diagonal" effect.
   This is the real anti-diagonal rule.
*/
*/
.career-entry {
.career-entry {
   display: flow-root;
   clear: both;
  overflow: auto;
   margin-bottom: 16px;
   margin-bottom: 16px;
   padding-bottom: 10px;
   padding-bottom: 10px;
Line 65: Line 66:
}
}


/* FIX 2:
/* Optional text wrapper */
  Make the text block explicit. This helps keep layout predictable.
*/
.career-text {
.career-text {
   display: block;
   display: block;
}
}


/* FIX 3:
/* FIX:
   Keep the portrait floated right, but use a modest top margin.
   Float portrait right inside its own entry.
   Your previous large top offset was contributing to the staggered look.
   Reduced top margin so it does not drift too low.
*/
*/
.career-portrait {
.career-portrait {
   float: right;
   float: right;
  clear: right;
   width: 150px;
   width: 150px;
   height: 150px;
   height: 150px;
   margin: 16px 0 8px 16px;
   margin: 24px 0 8px 16px;
   border: 1px solid #d7ad47;
   border: 1px solid #d7ad47;
  background: #000;
   overflow: hidden;
   overflow: hidden;
   box-sizing: border-box;
   box-sizing: border-box;
  background: #000;
   padding: 0;
   padding: 0;
}
}


/* FIX 4:
/* Make image fill box */
  Force the actual image to fill the portrait box cleanly.
  This prevents MediaWiki from sizing it oddly.
*/
.career-portrait img,
.career-portrait img,
.career-portrait .mw-file-element {
.career-portrait .mw-file-element {
Line 103: Line 98:
   padding: 0;
   padding: 0;
   border: 0;
   border: 0;
  box-shadow: none;
}
}


/* FIX 5:
/* Kill MediaWiki thumb styling inside career portraits */
  Neutralize MediaWiki thumbnail wrappers inside career portraits.
.career-portrait .thumb,
  Your .thumbinner rule was still adding frame-like styling.
*/
.career-portrait .thumbinner,
.career-portrait .thumbinner,
.career-portrait .thumbimage,
.career-portrait .thumbimage,
.career-portrait .image {
.career-portrait .image {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
   background: transparent !important;
   background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
   box-shadow: none !important;
   box-shadow: none !important;
}
}

Revision as of 18:37, 25 March 2026

/* =========================
   NIGHTCATS IMAGE SYSTEM
   ========================= */

/* Header image safety */
.nightcats-header {
  text-align: center;
  margin: 0 0 20px 0;
  max-width: 100%;
  overflow: hidden;
}

.nightcats-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------------------------------
   LARGE PULP FRAME
   Use for Peoples page, feature art,
   splash images, and larger portraits
   --------------------------------- */
.nightcats-frame {
  display: inline-block;
  padding: 8px;
  background: #f2e6c9;
  border-top: 1px solid #d8c39a;
  border-left: 1px solid #d8c39a;
  border-right: 1px solid #3a2a1a;
  border-bottom: 1px solid #3a2a1a;
  box-shadow:
    0 0 0 1px #8a7a52 inset,
    0 4px 10px rgba(0,0,0,0.45);
  margin: 8px 0 16px 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.nightcats-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nightcats-frame.right {
  float: right;
  clear: right;
}

/* =========================
   CAREERS PAGE LAYOUT
   ========================= */

/* FIX:
   Each new entry must start below the previous floated portrait.
   This is the real anti-diagonal rule.
*/
.career-entry {
  clear: both;
  overflow: auto;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #5a3b1f;
}

/* Optional text wrapper */
.career-text {
  display: block;
}

/* FIX:
   Float portrait right inside its own entry.
   Reduced top margin so it does not drift too low.
*/
.career-portrait {
  float: right;
  width: 150px;
  height: 150px;
  margin: 24px 0 8px 16px;
  border: 1px solid #d7ad47;
  background: #000;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
}

/* Make image fill box */
.career-portrait img,
.career-portrait .mw-file-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

/* Kill MediaWiki thumb styling inside career portraits */
.career-portrait .thumb,
.career-portrait .thumbinner,
.career-portrait .thumbimage,
.career-portrait .image {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ---------------------------------
   Tiny thumb treatment inside
   Nightcats pages if needed
   --------------------------------- */

/* FIX 6:
   Keep generic Nightcats thumbs styled, but EXCLUDE career portraits
   so the small career images do not inherit unwanted frame treatment.
*/
.nightcats-theme .thumbinner {
  background: #1a120c;
  border: 1px solid #5a3b1f;
  padding: 4px;
  box-sizing: border-box;
}

.career-portrait .thumbinner {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.nightcats-theme .thumbimage {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Captions */
.nightcats-theme .thumbcaption,
.career-caption {
  color: #d7c39a;
  font-size: 0.85em;
  line-height: 1.3;
  margin-top: 4px;
}