MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 50: | Line 50: | ||
} | } | ||
/* | /* ========================= | ||
CAREERS PAGE LAYOUT | CAREERS PAGE LAYOUT | ||
========================= */ | |||
/* FIX | /* FIX: | ||
Each new entry must start below the previous floated portrait. | |||
This is the real anti-diagonal rule. | |||
*/ | */ | ||
.career-entry { | .career-entry { | ||
clear: both; | |||
overflow: auto; | |||
margin-bottom: 16px; | margin-bottom: 16px; | ||
padding-bottom: 10px; | padding-bottom: 10px; | ||
| Line 65: | Line 66: | ||
} | } | ||
/* | /* Optional text wrapper */ | ||
*/ | |||
.career-text { | .career-text { | ||
display: block; | display: block; | ||
} | } | ||
/* FIX | /* FIX: | ||
Float portrait right inside its own entry. | |||
Reduced top margin so it does not drift too low. | |||
*/ | */ | ||
.career-portrait { | .career-portrait { | ||
float: right; | float: right; | ||
width: 150px; | width: 150px; | ||
height: 150px; | height: 150px; | ||
margin: | 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; | ||
padding: 0; | padding: 0; | ||
} | } | ||
/* | /* Make image fill box */ | ||
*/ | |||
.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; | |||
} | } | ||
/* | /* Kill MediaWiki thumb styling inside career portraits */ | ||
.career-portrait .thumb, | |||
.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; | ||
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;
}