Jump to content

MediaWiki:Common.css

From Crucible Codex
Revision as of 18:33, 25 March 2026 by WikiSysop (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================
   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 1:
   Add containment for each career entry so floated portraits
   cannot drift into the next entry and create the "diagonal" effect.
*/
.career-entry {
  display: flow-root;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #5a3b1f;
}

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

/* FIX 3:
   Keep the portrait floated right, but use a modest top margin.
   Your previous large top offset was contributing to the staggered look.
*/
.career-portrait {
  float: right;
  clear: right;
  width: 150px;
  height: 150px;
  margin: 16px 0 8px 16px;
  border: 1px solid #d7ad47;
  overflow: hidden;
  box-sizing: border-box;
  background: #000;
  padding: 0;
}

/* FIX 4:
   Force the actual image to fill the portrait box cleanly.
   This prevents MediaWiki from sizing it oddly.
*/
.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;
}

/* FIX 5:
   Neutralize MediaWiki thumbnail wrappers inside career portraits.
   Your .thumbinner rule was still adding frame-like styling.
*/
.career-portrait .thumbinner,
.career-portrait .thumbimage,
.career-portrait .image {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !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;
}