Template:Infobox item/style.css
Template page
More actions
/* In Template:Infobox/styles.css */
/* --- Wrapper for the entire infobox --- */ /* By default (on desktop), it floats to the right */ .responsive-infobox-wrapper {
float: right; width: 300px; /* A standard desktop infobox width */ margin: 0 0 1em 1em; /* Spacing: top, right, bottom, left */ clear: right;
}
/* --- Internal multi-column lists --- */ /* Default style for the Value and Colors lists */ .infobox-responsive-list {
list-style: none;
padding-left: 0;
margin: 0;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
}
/* --- MOBILE STYLES using a Media Query --- */
/* This CSS only applies when the screen is 720px wide or less */
@media all and (max-width: 720px) {
/* Make the whole infobox stack at the top */
.responsive-infobox-wrapper {
float: none;
width: auto; /* Take up the full available width */
margin: 1em 0;
}
/* Make the internal lists a single column */
.infobox-responsive-list {
-webkit-column-count: 1;
-moz-column-count: 1;
column-count: 1;
}
}