MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(Some CSS for responsive images on wiki) |
No edit summary |
||
Line 9: | Line 9: | ||
Example on https://wiki.skycorp.global/index.php/Modding:Parse_Tester | Example on https://wiki.skycorp.global/index.php/Modding:Parse_Tester | ||
(They must be wrapped in a div) */ | (They must be wrapped in a div) */ | ||
.responsive- | .responsive-image img { | ||
max-width:100%; | max-width:100%; | ||
height:auto; | height:auto; | ||
} | } |
Latest revision as of 20:30, 9 October 2025
/* CSS placed here will be applied to all skins */
/* Modding namespace style */
.ns-3000 #content, .ns-3001 #content { background-color: #e4fef1; }
.ns-3000 div.thumb, .ns-3001 div.thumb { border-color: #e4fef1; }
.ns-3000 .mw-body { border: 1px solid #068846; }
/* For big images that should scale down to page size.
Example on https://wiki.skycorp.global/index.php/Modding:Parse_Tester
(They must be wrapped in a div) */
.responsive-image img {
max-width:100%;
height:auto;
}