MediaWiki:Common.css: Difference between revisions

m sanity test
move bg color infobox image to only dark mode
Tags: Mobile edit Mobile web edit
Line 89: Line 89:
}
}


/*bg color to get visible images in darkmode*/
.infobox-image{
.infobox-image{
   display: flex;
   display: flex;
Line 95: Line 94:
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   background-color:#909590;  
}
 
/*bg color to get visible transparent images in darkmode*/
 
@media screen {
  html.skin-theme-clientpref-night .infobox-image{
    background-color:#909590;
  }
}
 
@media screen and (prefers-color-scheme: dark) {
  /* automatic mode */
   html.skin-theme-clientpref-os .infobox-image{
    background-color:#909590;  
  }
}
}