MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Force perfect centering of small thumb in cell */ | ||
.mw-parser-output .cover-preview { | .mw-parser-output .wikitable td:first-child .cover-preview { | ||
text-align: center !important; | |||
display: | display: block !important; /* makes it block for centering */ | ||
margin: 0 auto !important; | |||
margin: 0 !important; | |||
} | } | ||
/* | /* Remove any left margin/padding on small/large images and wrappers */ | ||
.mw-parser-output .cover-preview img, | |||
.mw-parser-output .cover-preview a.image, | |||
.mw-parser-output .cover-preview .cover-small, | .mw-parser-output .cover-preview .cover-small, | ||
.mw-parser-output .cover-preview .cover-large-img { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
vertical-align: middle !important; /* fixes vertical off-center */ | |||
.mw-parser-output .cover-preview .cover-large | |||
border: | |||
} | } | ||
/* | /* Eliminate blank left space on large preview */ | ||
.mw-parser-output .cover-preview | .mw-parser-output .cover-preview .cover-large { | ||
left: 85px !important; /* nudge left a bit if blank space persists — test 80-100px */ | |||
margin-left: 0 !important; | |||
padding-left: 0 !important; | |||
} | } | ||
.mw-parser-output .cover-preview | /* If blank box is from a wrapper, hide extra space */ | ||
.mw-parser-output .cover-preview | .mw-parser-output .cover-preview .cover-large a, | ||
.mw-parser-output .cover-preview .cover-large img { | |||
margin-left: 0 !important; | |||
display: block !important; | |||
. | |||
} | } | ||
/* | /* Compact cell padding further if rows still feel tall */ | ||
.mw-parser-output .wikitable td:first-child { | |||
padding: 4px 6px !important; /* tighter top/bottom */ | |||
} | } | ||
Revision as of 12:40, 29 January 2026
/* Force perfect centering of small thumb in cell */
.mw-parser-output .wikitable td:first-child .cover-preview {
text-align: center !important;
display: block !important; /* makes it block for centering */
margin: 0 auto !important;
}
/* Remove any left margin/padding on small/large images and wrappers */
.mw-parser-output .cover-preview img,
.mw-parser-output .cover-preview a.image,
.mw-parser-output .cover-preview .cover-small,
.mw-parser-output .cover-preview .cover-large-img {
margin: 0 !important;
padding: 0 !important;
border: none !important;
vertical-align: middle !important; /* fixes vertical off-center */
}
/* Eliminate blank left space on large preview */
.mw-parser-output .cover-preview .cover-large {
left: 85px !important; /* nudge left a bit if blank space persists — test 80-100px */
margin-left: 0 !important;
padding-left: 0 !important;
}
/* If blank box is from a wrapper, hide extra space */
.mw-parser-output .cover-preview .cover-large a,
.mw-parser-output .cover-preview .cover-large img {
margin-left: 0 !important;
display: block !important;
}
/* Compact cell padding further if rows still feel tall */
.mw-parser-output .wikitable td:first-child {
padding: 4px 6px !important; /* tighter top/bottom */
}