MediaWiki:Common.css: Difference between revisions

From Kanthaus wiki
re-add img descendent
switch margin to auto for centering on mobile
Line 11: Line 11:
   .infoboxOuter {
   .infoboxOuter {
     width: 100%;
     width: 100%;
    margin: auto;
   }
   }
}
}

Revision as of 19:57, 21 November 2024

/* CSS placed here will be applied to all skins */

.infoboxOuter {
  width: 200px;
  box-sizing: border-box;
  float: right;
  margin: 0.5rem;
}

@media (max-width: 500px) {
  .infoboxOuter {
    width: 100%;
    margin: auto;
  }
}

.infoboxOuter img {
  max-width: 100%;
  height: auto;
  aspect-ration: 1;
}