MediaWiki:Common.css: Difference between revisions
Appearance
EkramHossen (talk | contribs) No edit summary Tag: Reverted |
EkramHossen (talk | contribs) No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 96: | Line 96: | ||
/* Promo banner styled like Featured Creators box */ | |||
#promo-banner { | |||
border: 1px solid #a2a9b1; | |||
background-color: #cef2e0; | |||
display: inline-block; /* Not full width */ | |||
padding: 8px 15px; | |||
font-weight: bold; | |||
margin: 10px auto; | |||
border-radius: 3px; | |||
max-width: 900px; | |||
} | |||
/* Center the box */ | |||
#promo-banner-container { | |||
text-align: center; | |||
margin-bottom: 10px; | |||
} | |||
/* Link styles */ | |||
#promo-banner a { | |||
color: #0645ad; | |||
text-decoration: none; | |||
} | |||
#promo-banner a:hover { | |||
text-decoration: underline; | |||
} | } |
Latest revision as of 00:39, 11 August 2025
/* CSS placed here will be applied to all skins */ /* Infoboxes */ .infobox { border: 1px solid #a2a9b1; color: black; padding: 0.2em; font-size: 88%; line-height: 1.5em; border-spacing: 3px; } @media screen { .infobox { background-color: #f8f9fa; } } @media (max-width: 640px) { .infobox { width: 100%; } .infobox .nowrap { white-space: normal; } } @media (min-width: 640px) { .infobox { margin: 0.5em 0 0.5em 1em; float: right; clear: right; width: 22em; } } .infobox-header, .infobox-label, .infobox-above, .infobox-full-data, .infobox-data, .infobox-below, .infobox-subheader, .infobox-image, .infobox-navbar, .infobox th, .infobox td { vertical-align: top; } .infobox-label, .infobox-data, .infobox th, .infobox td { text-align: left; } .infobox .infobox-above, .infobox .infobox-title, .infobox caption { font-size: 125%; font-weight: bold; text-align: center; } .infobox-title, .infobox caption { padding: 0.2em; } .infobox .infobox-header, .infobox .infobox-subheader, .infobox .infobox-image, .infobox .infobox-full-data, .infobox .infobox-below { text-align: center; } .infobox .infobox-navbar { text-align: right; } /* Infoboxes end */ body { background-color: #fff; } div.main-box { border: 1px solid #ccc; border-radius: 10px; padding: 15px; background: #f9f9f9; } /* Promo banner styled like Featured Creators box */ #promo-banner { border: 1px solid #a2a9b1; background-color: #cef2e0; display: inline-block; /* Not full width */ padding: 8px 15px; font-weight: bold; margin: 10px auto; border-radius: 3px; max-width: 900px; } /* Center the box */ #promo-banner-container { text-align: center; margin-bottom: 10px; } /* Link styles */ #promo-banner a { color: #0645ad; text-decoration: none; } #promo-banner a:hover { text-decoration: underline; }