Difference between revisions of "MediaWiki:Vector.less"
Jump to navigation
Jump to search
(Created page with "/* ======================================================== CSS placed here will affect users of the Vector skin. Only CSS that affects parts of the interface...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | // <pre> | ||
/* ======================================================== | /* ======================================================== | ||
CSS placed here will affect users of the Vector skin. | CSS placed here will affect users of the Vector skin. | ||
Line 6: | Line 7: | ||
else should be at [[MediaWiki:Common.less]]. | else should be at [[MediaWiki:Common.less]]. | ||
======================================================== */ | ======================================================== */ | ||
+ | // </pre> | ||
+ | |||
+ | /* background image */ | ||
+ | body { | ||
+ | background: url('filepath://BackgroundTest.png?width=1000') @vector-background top left no-repeat; | ||
+ | |||
+ | @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { | ||
+ | background-image: url('filepath://BackgroundTest.png'); | ||
+ | background-size: 1000px 250px; | ||
+ | } | ||
+ | |||
+ | } |
Latest revision as of 14:17, 2 August 2020
//
/* ======================================================== CSS placed here will affect users of the Vector skin. Only CSS that affects parts of the interface outside of the content area (.mw-body) should be here; everything else should be at [[MediaWiki:Common.less]]. ======================================================== */ //
/* background image */ body {
background: url('filepath://BackgroundTest.png?width=1000') @vector-background top left no-repeat;
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { background-image: url('filepath://BackgroundTest.png'); background-size: 1000px 250px; }
}