MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.infobox { | |||
border-collapse: collapse; | |||
background: #f9f9f9; | |||
border: 1px solid #aaa; | |||
width: 100%; | |||
max-width: 22em; | |||
font-size: 90%; | |||
box-sizing: border-box; | |||
margin: 0 auto 1em; | |||
} | |||
.infobox th { | |||
background: #d0e0f0; | |||
padding: 4px; | |||
font-size: 1em; | |||
} | |||
.infobox td { | |||
padding: 4px; | |||
font-size: 1em; | |||
} | |||
.infobox img { | |||
max-width: 100%; | |||
height: auto; | |||
display: block; | |||
margin: 0 auto; | |||
} | |||
/* Responsive adjustments for smaller screens */ | |||
@media screen and (max-width: 600px) { | |||
.infobox { | |||
font-size: 85%; | |||
max-width: 100%; | |||
margin: 0 auto; /* Explicitly center in mobile view */ | |||
display: table; /* Ensure table behaves correctly */ | |||
} | |||
.infobox th, .infobox td { | |||
padding: 3px; | |||
} | |||
} |
Revision as of 15:42, 4 June 2025
/* CSS placed here will be applied to all skins */ .infobox { border-collapse: collapse; background: #f9f9f9; border: 1px solid #aaa; width: 100%; max-width: 22em; font-size: 90%; box-sizing: border-box; margin: 0 auto 1em; } .infobox th { background: #d0e0f0; padding: 4px; font-size: 1em; } .infobox td { padding: 4px; font-size: 1em; } .infobox img { max-width: 100%; height: auto; display: block; margin: 0 auto; } /* Responsive adjustments for smaller screens */ @media screen and (max-width: 600px) { .infobox { font-size: 85%; max-width: 100%; margin: 0 auto; /* Explicitly center in mobile view */ display: table; /* Ensure table behaves correctly */ } .infobox th, .infobox td { padding: 3px; } }