MediaWiki:Common.css: Difference between revisions
version 2 |
added transparency checkerboard for certain images |
||
Line 162: | Line 162: | ||
background-color: #C5FCDC; | background-color: #C5FCDC; | ||
color: black; | color: black; | ||
} | |||
/* Put a chequered background behind images, only visible if they have transparency */ | |||
.gallerybox .thumb img, | |||
.filehistory a img, | |||
#file img { | |||
background: white url("http://huckjones.cz.cc/w/skins/common/images/Checker-16x16.png") repeat; | |||
} | |||
/* But not on articles, user pages, portals or with opt-out. */ | |||
.ns-0 .gallerybox .thumb img, | |||
.ns-2 .gallerybox .thumb img, | |||
.ns-100 .gallerybox .thumb img, | |||
.nochecker .gallerybox .thumb img { | |||
background: white; | |||
} | } |