MediaWiki:Common.css: Difference between revisions

From Kanthaus wiki
add .infoboxOuter class for responsive infobox templates
I swear that min-width and max-width will confuse me til the end
Line 5: Line 5:
}
}


@media (max-width: 500px) {
@media (min-width: 500px) {
   .infoboxOuter {
   .infoboxOuter {
     width: 200px;
     width: 200px;
   }
   }
}
}

Revision as of 18:41, 21 November 2024

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

.infoboxOuter {
  width: 100%;
}

@media (min-width: 500px) {
  .infoboxOuter {
    width: 200px;
  }
}