MediaWiki:Common.css: Difference between revisions

From Kanthaus wiki
init
 
add .infoboxOuter class for responsive infobox templates
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* .infoboxwidth {} */
.infoboxOuter {
  width: 100%;
}


@media (min-width: 35rem) {
@media (max-width: 500px) {
   div {
   .infoboxOuter {
     background: yellow;
     width: 200px;
   }
   }
}
}

Revision as of 18:38, 21 November 2024

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

.infoboxOuter {
  width: 100%;
}

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