MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
.infobox | /* General infobox styling */ | ||
.infobox { | |||
width: 300px; | |||
border: 1px solid #aaa; | |||
border-collapse: collapse; | |||
margin: 1em 0; | |||
background-color: #f9f9f9; | |||
font-family: sans-serif; | |||
} | } | ||
.infobox | .infobox th, | ||
.infobox td { | |||
padding: 5px 10px; | |||
text-align: left; | |||
} | } | ||
.infobox | .infobox th { | ||
background-color: #e5e5e5; | |||
font-weight: bold; | |||
} | } | ||
/* | /* Styling for the image section */ | ||
.infobox-image { | |||
text-align: center; | |||
padding: 10px; | |||
} | } | ||
.infobox- | .infobox-caption { | ||
font-size: 0.8em; | |||
color: #777; | |||
margin-top: 5px; | |||
} | } | ||
.infobox- | /* Header styling */ | ||
.infobox-header { | |||
background-color: #f0f0f0; | |||
font-weight: bold; | |||
text-align: center; | |||
} | } | ||
.infobox | /* Label styling */ | ||
.infobox-label { | |||
font-weight: bold; | |||
padding-right: 10px; | |||
vertical-align: top; | |||
} | } | ||
/* | /* Data styling */ | ||
.infobox-data { | |||
font-size: 1em; | |||
} | |||
/* Styling for the flag and seal images */ | |||
.infobox-data img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
/* Navbar (links) styling */ | |||
.infobox-navbar { | |||
border-top: 1px solid #ccc; | |||
padding-top: 5px; | |||
text-align: center; | |||
} | |||
.navbar a { | |||
text-decoration: none; | |||
color: #0066cc; | |||
margin: 0 5px; | |||
} | } | ||
.navbar a:hover { | |||
text-decoration: underline; | |||
} | |||
/* The hlist class for inline lists */ | |||
.mw-parser-output .hlist { | |||
margin: 0; | |||
padding: 0; | |||
list-style: none; | |||
display: inline-block; | |||
} | |||
.mw-parser-output .hlist li { | |||
display: inline-block; | |||
margin-right: 10px; | |||
display: | |||
} | } |
Revision as of 05:16, 2 January 2025
/* General infobox styling */ .infobox { width: 300px; border: 1px solid #aaa; border-collapse: collapse; margin: 1em 0; background-color: #f9f9f9; font-family: sans-serif; } .infobox th, .infobox td { padding: 5px 10px; text-align: left; } .infobox th { background-color: #e5e5e5; font-weight: bold; } /* Styling for the image section */ .infobox-image { text-align: center; padding: 10px; } .infobox-caption { font-size: 0.8em; color: #777; margin-top: 5px; } /* Header styling */ .infobox-header { background-color: #f0f0f0; font-weight: bold; text-align: center; } /* Label styling */ .infobox-label { font-weight: bold; padding-right: 10px; vertical-align: top; } /* Data styling */ .infobox-data { font-size: 1em; } /* Styling for the flag and seal images */ .infobox-data img { max-width: 100%; height: auto; } /* Navbar (links) styling */ .infobox-navbar { border-top: 1px solid #ccc; padding-top: 5px; text-align: center; } .navbar a { text-decoration: none; color: #0066cc; margin: 0 5px; } .navbar a:hover { text-decoration: underline; } /* The hlist class for inline lists */ .mw-parser-output .hlist { margin: 0; padding: 0; list-style: none; display: inline-block; } .mw-parser-output .hlist li { display: inline-block; margin-right: 10px; }