Difference between revisions of "MediaWiki:Common.css"
From WikiPETia.info
(Comment and reorganize things) |
|||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
+ | |||
+ | /* Adjust color scheme */ | ||
body, body.ns-0, #article { background-color: #fafafa; } | body, body.ns-0, #article { background-color: #fafafa; } | ||
#sitetitle, #toplinks { text-transform: none; background-color: #0470b1; } /* was #6688aa; */ | #sitetitle, #toplinks { text-transform: none; background-color: #0470b1; } /* was #6688aa; */ | ||
.mediawiki #content { min-height: 620px; background-color: #e1ebf1; } | .mediawiki #content { min-height: 620px; background-color: #e1ebf1; } | ||
+ | /* Bring links in line with rest of page */ | ||
a, #quickbar a, #footer a, #linkcollection a { text-decoration: none; } | a, #quickbar a, #footer a, #linkcollection a { text-decoration: none; } | ||
a:hover, #quickbar a:hover, #footer a:hover, #linkcollection a:hover { text-decoration: underline; } | a:hover, #quickbar a:hover, #footer a:hover, #linkcollection a:hover { text-decoration: underline; } | ||
− | .tagline, div.mw-createacct-benefits-list div.icon-contributors { display: none; } | + | /* Remove unneeded elements, adjust position of rest */ |
+ | .tagline, div.mw-createacct-benefits-list div.icon-contributors, #linkcollection, div#p-search h3 { display: none; } | ||
+ | form#searchform-sidebar input.mw-searchInput { margin-top: 2px; } | ||
#article { padding: 0 10px 10px; margin-left: 120px; } | #article { padding: 0 10px 10px; margin-left: 120px; } | ||
#quickbar { width: 115px; top: 48px; } | #quickbar { width: 115px; top: 48px; } | ||
+ | /* Simplify fonts */ | ||
#article table.small, #article table.small td, #article table.small th, #article table.small p { font-size: 75%; } | #article table.small, #article table.small td, #article table.small th, #article table.small p { font-size: 75%; } | ||
− | |||
− | |||
− | |||
body, #sitetitle, #toplinks, #quickbar, #footer, #article, #article td, #article th, #article p { font-family: Arial,Helvetica,sans-serif; } | body, #sitetitle, #toplinks, #quickbar, #footer, #article, #article td, #article th, #article p { font-family: Arial,Helvetica,sans-serif; } | ||
+ | /* Harmonize headings */ | ||
h1#firstHeading { font-size: 1.9em; margin-bottom: 30px; margin-top: 7px; padding-top: 7px; color: #666666; } | h1#firstHeading { font-size: 1.9em; margin-bottom: 30px; margin-top: 7px; padding-top: 7px; color: #666666; } | ||
h1 { font-size: 1.7em; color: black; } | h1 { font-size: 1.7em; color: black; } | ||
Line 25: | Line 29: | ||
h2, h3, h4, h5, h6 { margin-bottom: 1em; } | h2, h3, h4, h5, h6 { margin-bottom: 1em; } | ||
+ | /* Adjust content to make it look better */ | ||
.toc { margin: 30px 0 20px; } | .toc { margin: 30px 0 20px; } | ||
− | |||
ul.float-left { text-align: left; } | ul.float-left { text-align: left; } | ||
ul.float-right { text-align: right; } | ul.float-right { text-align: right; } | ||
+ | /* Make galleries workable */ | ||
div.center div.floatnone a.image img { max-width: 100%; height: auto; } | div.center div.floatnone a.image img { max-width: 100%; height: auto; } | ||
div.gallerytext { margin-top: 45%; } | div.gallerytext { margin-top: 45%; } | ||
ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper, ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper, ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper { height: 100%; } | ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper, ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper, ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper { height: 100%; } | ||
− | + | /* Infobox template */ | |
− | + | .infobox { border: 1px solid #aaa; border-spacing: 3px; background-color: #f9f9f9; | |
− | + | color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; } | |
− | + | .infobox caption { font-size: 125%; font-weight: bold; padding: 0.2em; background-color: #e1ebf1; } | |
− | /* Infobox template | + | .infobox td, .infobox th { vertical-align: top; text-align: left; } |
− | .infobox { | + | .infobox.bordered { border-collapse: collapse; } |
− | + | .infobox.bordered td, .infobox.bordered th { border: 1px solid #aaa; } | |
− | + | .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } | |
− | |||
− | color: black; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | .infobox caption { | ||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | .infobox td, | ||
− | .infobox th { | ||
− | |||
− | |||
− | |||
− | } | ||
− | .infobox.bordered { | ||
− | |||
− | } | ||
− | .infobox.bordered td, | ||
− | .infobox.bordered th { | ||
− | |||
− | } | ||
− | .infobox.bordered .borderless td, | ||
− | .infobox.bordered .borderless th { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } |
Revision as of 13:26, 9 June 2016
/* CSS placed here will be applied to all skins */ /* Adjust color scheme */ body, body.ns-0, #article { background-color: #fafafa; } #sitetitle, #toplinks { text-transform: none; background-color: #0470b1; } /* was #6688aa; */ .mediawiki #content { min-height: 620px; background-color: #e1ebf1; } /* Bring links in line with rest of page */ a, #quickbar a, #footer a, #linkcollection a { text-decoration: none; } a:hover, #quickbar a:hover, #footer a:hover, #linkcollection a:hover { text-decoration: underline; } /* Remove unneeded elements, adjust position of rest */ .tagline, div.mw-createacct-benefits-list div.icon-contributors, #linkcollection, div#p-search h3 { display: none; } form#searchform-sidebar input.mw-searchInput { margin-top: 2px; } #article { padding: 0 10px 10px; margin-left: 120px; } #quickbar { width: 115px; top: 48px; } /* Simplify fonts */ #article table.small, #article table.small td, #article table.small th, #article table.small p { font-size: 75%; } body, #sitetitle, #toplinks, #quickbar, #footer, #article, #article td, #article th, #article p { font-family: Arial,Helvetica,sans-serif; } /* Harmonize headings */ h1#firstHeading { font-size: 1.9em; margin-bottom: 30px; margin-top: 7px; padding-top: 7px; color: #666666; } h1 { font-size: 1.7em; color: black; } h2 { font-size: 1.5em; } h3 { font-size: 1.3em; } h4 { font-size: 1.1em; } h2, h3, h4, h5, h6 { margin-bottom: 1em; } /* Adjust content to make it look better */ .toc { margin: 30px 0 20px; } ul.float-left { text-align: left; } ul.float-right { text-align: right; } /* Make galleries workable */ div.center div.floatnone a.image img { max-width: 100%; height: auto; } div.gallerytext { margin-top: 45%; } ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper, ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper, ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper { height: 100%; } /* Infobox template */ .infobox { border: 1px solid #aaa; border-spacing: 3px; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; } .infobox caption { font-size: 125%; font-weight: bold; padding: 0.2em; background-color: #e1ebf1; } .infobox td, .infobox th { vertical-align: top; text-align: left; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #aaa; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; }