MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* 1. TABLE | /* 1. TABLE LAYOUT */ | ||
.mw-parser-output .wikitable { | .mw-parser-output .wikitable { | ||
width: 100% !important; | width: 100% !important; | ||
table-layout: auto !important; | table-layout: auto !important; | ||
border-collapse: collapse !important; | |||
} | } | ||
/* | /* 2. THE TEXT PADDING FIX */ | ||
/* This adds 15px of 'breathing room' to the left and right of every cell */ | |||
.mw-parser-output .wikitable td, | .mw-parser-output .wikitable td, | ||
.mw-parser-output .wikitable th { | .mw-parser-output .wikitable th { | ||
padding: | padding: 8px 15px !important; | ||
vertical-align: middle !important; | vertical-align: middle !important; | ||
text-align: left; | |||
} | } | ||
/* | /* 3. ENSURE COLUMNS DON'T SQUASH */ | ||
/* This | /* This gives the Manufacturer and Type columns a minimum size */ | ||
.mw-parser-output . | .mw-parser-output .wikitable td:nth-child(3), | ||
.mw-parser-output . | .mw-parser-output .wikitable td:nth-child(4) { | ||
.mw-parser-output img | min-width: 120px !important; | ||
} | |||
/* 4. THE IMAGE SIZE (Normal View) */ | |||
.mw-parser-output .imageWrapper img { | |||
width: 60px !important; | width: 60px !important; | ||
height: 80px !important; | height: 80px !important; | ||
object-fit: contain !important; | object-fit: contain !important; | ||
display: block !important; | display: block !important; | ||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | } | ||
/* | /* 5. THE HOVER ZOOM */ | ||
.mw-parser-output .coverThumb:hover . | .mw-parser-output .coverThumb:hover .imageWrapper img { | ||
position: absolute !important; | position: absolute !important; | ||
top: 0 !important; | top: 0 !important; | ||
left: 0 !important; | left: 0 !important; | ||
width: 350px !important; | width: 350px !important; | ||
height: auto !important; | height: auto !important; | ||
max-width: none !important; | max-width: none !important; | ||
/* | /* Adjust this to move it past the new padding */ | ||
transform: translate( | transform: translate(95px, -20px) !important; | ||
z-index: 10000 !important; | z-index: 10000 !important; | ||
| Line 44: | Line 50: | ||
} | } | ||
/* | /* 6. THE CONTAINERS */ | ||
.mw-parser-output .coverSmall { | .mw-parser-output .coverSmall { | ||
display: block !important; | display: block !important; | ||
Revision as of 10:38, 29 January 2026
/* 1. TABLE LAYOUT */
.mw-parser-output .wikitable {
width: 100% !important;
table-layout: auto !important;
border-collapse: collapse !important;
}
/* 2. THE TEXT PADDING FIX */
/* This adds 15px of 'breathing room' to the left and right of every cell */
.mw-parser-output .wikitable td,
.mw-parser-output .wikitable th {
padding: 8px 15px !important;
vertical-align: middle !important;
text-align: left;
}
/* 3. ENSURE COLUMNS DON'T SQUASH */
/* This gives the Manufacturer and Type columns a minimum size */
.mw-parser-output .wikitable td:nth-child(3),
.mw-parser-output .wikitable td:nth-child(4) {
min-width: 120px !important;
}
/* 4. THE IMAGE SIZE (Normal View) */
.mw-parser-output .imageWrapper img {
width: 60px !important;
height: 80px !important;
object-fit: contain !important;
display: block !important;
margin: 0 auto !important;
}
/* 5. THE HOVER ZOOM */
.mw-parser-output .coverThumb:hover .imageWrapper img {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 350px !important;
height: auto !important;
max-width: none !important;
/* Adjust this to move it past the new padding */
transform: translate(95px, -20px) !important;
z-index: 10000 !important;
pointer-events: none !important;
background: #fff !important;
border: 1px solid #888 !important;
box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
/* 6. THE CONTAINERS */
.mw-parser-output .coverSmall {
display: block !important;
width: 60px !important;
height: 80px !important;
position: relative !important;
overflow: visible !important;
}