MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox-table th { text-align: right; vertical-align: top; width: 120px; } .infobox-table td { vertical-align: top; }" |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Infobox container */ | |||
.infobox { | .infobox { | ||
width: 300px!important; | |||
border: 1px solid #aaa; | border: 1px solid #aaa!important; | ||
background-color: #f9f9f9!important; | |||
font-family: Arial, sans-serif!important; | |||
padding: | font-size: 14px!important; | ||
color: #333!important; | |||
padding: 10px!important; | |||
float: right; | |||
margin: 0 0 10px 10px; | |||
} | } | ||
.infobox | |||
font-size: | /* H1 title style */ | ||
text-align: center; | .infobox h1 { | ||
font-size: 18px!important; | |||
text-align: center!important; | |||
margin-bottom: 10px!important; | |||
} | } | ||
.infobox | |||
/* Image style */ | |||
.infobox img { | |||
display: block!important; | |||
margin: 0 auto 10px auto!important; | |||
max-width: 100%!important; | |||
height: auto!important; | |||
border: 1px solid #ccc!important; | |||
} | } | ||
.infobox- | |||
/* Section header style */ | |||
.infobox .section-title { | |||
background-color: #ddd!important; | |||
padding: 5px!important; | |||
font-weight: bold!important; | |||
margin-top: 10px!important; | |||
margin-bottom: 5px!important; | |||
} | } | ||
.infobox | |||
/* Numbered list style */ | |||
.infobox ol { | |||
padding-left: 20px!important; | |||
margin: 0!important; | |||
} | } | ||
Latest revision as of 13:38, 28 January 2026
/* CSS placed here will be applied to all skins */
/* Infobox container */
.infobox {
width: 300px!important;
border: 1px solid #aaa!important;
background-color: #f9f9f9!important;
font-family: Arial, sans-serif!important;
font-size: 14px!important;
color: #333!important;
padding: 10px!important;
float: right;
margin: 0 0 10px 10px;
}
/* H1 title style */
.infobox h1 {
font-size: 18px!important;
text-align: center!important;
margin-bottom: 10px!important;
}
/* Image style */
.infobox img {
display: block!important;
margin: 0 auto 10px auto!important;
max-width: 100%!important;
height: auto!important;
border: 1px solid #ccc!important;
}
/* Section header style */
.infobox .section-title {
background-color: #ddd!important;
padding: 5px!important;
font-weight: bold!important;
margin-top: 10px!important;
margin-bottom: 5px!important;
}
/* Numbered list style */
.infobox ol {
padding-left: 20px!important;
margin: 0!important;
}