MediaWiki:Vector.css
Revision as of 15:01, 26 April 2013 by Andrei Radulescu-Banu (talk | contribs)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Vector skin */ /* * ----------------------------------------------------- * 'simbio' style sheet for CSS2-capable browsers. * Redesigned by Moritz Otten and Olaf Lenz (2007) * This file contains the css rules for the layout of the * contents */ body,td,th,input { /* redundant rules for bad browsers */ font-family: Lucida, 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; color: black; } #mainContent { line-height: 1.3; /* value other than 'normal' needed for WinIE */ color: #000000; } /* ----------------------------------------------------- Title style content page title format */ #mainContent h1 { margin-top: 0; font-size: 2em; font-weight: bold; font-variant: small-caps; color: #2c1c5c; } h1, h2, h3, h4, h5, h6 { margin: 1em 0 0.2em 0; border-bottom: 1px solid #d9d9d9; font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; } h1 { font-size: 160%; font-weight: normal; } h2 { font-size: 150%; font-weight: normal; } h3 { font-size: 120%; } h4 { font-size: 100%; } h5 { font-size: 90%; } h6 { font-size: 90%; border: 0; } /* ----------------------------------------------------- ** user notification stuff */ .usermessage { background-color: #ffce7b; border: 1px solid #ffa500; color: black; font-weight: bold; margin: 2em 0em 1em 0em; padding: 0.5em 1em; vertical-align: middle; } #siteNotice { text-align: center; font-size: 95%; padding: 0 0.9em 0 0.9em; } #siteNotice p { margin: 0; padding: 0; } .error { color: red; font-size: larger; } #catlinks { border:1px solid #aaaaaa; background-color:#d6d6d6; padding: 3px 5px 3px 5px; margin-top: 1em; clear: both; } p.catlinks { padding: 0; display: inline; } /* ----------------------------------------------------- ** table of contents styles */ #toc { border:1px solid #aaaaaa; background-color:#f9f9f9; padding:5px; font-size: 95%; } #toc .tocindent { margin-left: 2em; } #toc .tocline { margin-bottom: 0px; } #toc p { margin: 0 } #toc .toctoggle { font-size: 94%; } #toc .editsection { margin-top: 0.7em; font-size: 94%; } /* fix toc top margin */ #toctitle h2 { border: 0; margin: 0; } /* ----------------------------------------------------- Navigation tweaks */ /* ** internal navigation style */ a { text-decoration: underline; border: none; } a:link { color: #1C0C4C; margin: 1px; } a:visited { color: #537499; margin: 1px; } a:hover { border: 1px dotted #2c1c5c; margin: 0; } a:active { color: #FF9900; margin: 1px; } a img { border: none; } /* ** keep the whitespace in front of the ^=, hides rule from konqueror ** this is css3, the validator doesn't like it when validating as css2 */ #mBody a[href ^="http://"], #mBody a[href ^="gopher://"] { background: url(external.png) center right no-repeat; padding-right: 13px; } #mBody a[href ^="https://"], .link-https { background: url("lock_icon.gif") center right no-repeat; padding-right: 16px; } #mBody a[href ^="mailto:"], .link-mailto { background: url("mail_icon.gif") center right no-repeat; padding-right: 18px; } #mBody a[href ^="news://"] { background: url("news_icon.png") center right no-repeat; padding-right: 18px; } #mBody a[href ^="ftp://"], .link-ftp { background: url("file_icon.gif") center right no-repeat; padding-right: 18px; } #mBody a[href ^="irc://"], .link-irc { background: url("discussionitem_icon.gif") center right no-repeat; padding-right: 18px; } /* special links */ /* wikipedia */ #mBody a[href ^="http://en.wikipedia.org"] { background: url(wikipedia.png) center right no-repeat; padding-right: 18px; } #mBody a[href $=".png"].download { } /* this can be used in the content area to switch off special external link styling */ #mBody .plainlinks a { background: none !important; padding: 0 !important; } /* ** edit selection position */ .editsection { font-size: smaller; } /* emulate center */ .center { width: 100%; text-align: center; } *.center * { margin-left: auto; margin-right: auto; } /* ** images style */ div.floatright, table.floatright { clear: right; float: right; position: relative; margin: 0 0 0.5em 0.5em; border: 0 } div.floatright p { font-style: italic; } div.floatleft, table.floatleft { float: left; position: relative; margin: 0 0.5em 0.5em 0; border: 0 } div.floatleft p { font-style: italic; } /* ** thumbnails stuff */ div.thumb { margin-bottom: 0.5em; border: thin solid white; width: auto; } div.thumb div { border:1px solid #cccccc; padding: 3px !important; background-color:#f9f9f9; font-size: 94%; text-align: center; overflow: hidden; } div.thumb div a img { border:1px solid #cccccc; } div.thumb div div.thumbcaption { border: none; text-align: left; line-height: 1.4em; padding: 0.3em 0 0.1em 0; } div.magnify { float: right; border: none !important; background: none !important; } div.magnify a, div.magnify img { display: block; border: none !important; background: none !important; } div.tright { clear: right; float: right; border-width: 0.5em 0 0.8em 1.4em; } div.tleft { float: left; margin-right:0.5em; border-width: 0.5em 1.4em 0.8em 0; } .urlexpansion, .hiddenStructure { display: none; } img.tex { vertical-align: middle; } span.texhtml { font-family: serif; } /* ** table standards */ table.rimage { float:right; position:relative; margin-left:1em; margin-bottom:1em; text-align:center; } .toccolours { border:1px solid #aaaaaa; background-color:#f9f9f9; padding:5px; font-size: 95%; } div.townBox { position:relative; float:right; background:White; margin-left:1em; border: 1px solid gray; padding:0.3em; width: 200px; overflow: hidden; clear: right; } div.townBox dl { padding: 0; margin: 0 0 0.3em 0; font-size: 96%; } div.townBox dl dt { background: none; margin: 0.4em 0 0 0; } div.townBox dl dd { margin: 0.1em 0 0 1.1em; background-color: #f3f3f3; } /* ** Page history styling */ .autocomment { color: gray; } /* the auto-generated edit comments */ #pagehistory span.user { margin-left: 1.4em; margin-right: 0.4em; } #pagehistory span.minor { font-weight: bold; } #pagehistory li { border: 1px solid White; } #pagehistory li.selected { background-color:#f9f9f9; border:1px dashed #aaaaaa; } /* ** Diff rendering */ table.diff { background:#ffffff; } td.diff-otitle { background:#ffffff; } td.diff-ntitle { background:#ffffff; } td.diff-addedline { background:#ccffcc; font-size: smaller; } td.diff-deletedline { background:#ffffaa; font-size: smaller; } td.diff-context { background:#eeeeee; font-size: smaller; } span.diffchange { color: red; font-weight: bold; } /* other things */ /* "Retrieved from ..." message */ .printfooter { display: none; } /* sub heading (e.g. query string) */ #contentSub { font-size: smaller; line-height: 1.2em; margin: 0 0 1.4em 1em; color: #7d7d7d; width: auto; } pre { background: #EEEEEE; border: dashed #666666 1px; padding: 15px 20px 15px 20px; overflow: auto; } hr { height: 1px; background-color: #000000; color: #000000; margin: 2em 0; } input[type="submit"] { font-weight: bold; } dt { font-weight: bold; } dd { margin: 0 0 1em 1em; } li { margin-top: 0.2em; margin-bottom: 0.2em; } sup { font-size: 70%; } form { margin: 0; display: inline; } label { font-weight: bold; } textarea { width: 100%; } /***** ** Table formatting *****/ table.wikitable, table.prettytable { margin:1em 1em 1em 0; background:#F9F9F9; border:1px #AAA solid; border-collapse:collapse; } table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td { border:1px #AAA solid; padding:0.2em; } table.wikitable th, table.prettytable th { background:#F2F2F2; text-align:center; } table.wikitable caption, table.prettytable caption { margin-left:inherit; margin-right:inherit; }