MediaWiki:Vector-2022.css: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
| Line 5: | Line 5: | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
/* Infobox container styling */ | |||
.infobox { | .infobox { | ||
margin-bottom: 1.5em; | |||
width: 80%; | |||
width: | max-width: 400px; | ||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
.infobox | /* Name (header) centered */ | ||
.infobox-header { | |||
text-align: center; | |||
font-weight: bold; | |||
font-size: 1.2em; | |||
padding: 0.5em; | |||
background-color: #f8f9fa; | |||
} | |||
/* Image container centered */ | |||
.infobox-image-container { | |||
text-align: center; | |||
} | } | ||
/* Caption centered */ | |||
.infobox-caption { | |||
text-align: center; | text-align: center; | ||
font-style: italic; | font-style: italic; | ||
font-size: | font-size: 0.9em; | ||
padding-top: 0.3em; | |||
padding-bottom: 0.5em; | |||
} | |||
/* Data rows stay left aligned (default) */ | |||
.infobox-table td:not(.infobox-header):not(.infobox-image):not(.infobox-caption) { | |||
text-align: left; | |||
} | } | ||
} | } | ||