MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
m (add class noteN) |
|||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
pre { | pre { | ||
overflow-x: auto; /* Use horizontal scroller if needed; for | overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ | ||
overflow-y: hidden; /* overflow-x above messes up Chrome, this is the fix. Sigh */ | overflow-y: hidden; /* overflow-x above messes up Chrome, this is the fix. Sigh */ | ||
white-space: pre-wrap; /* css-3 */ | white-space: pre-wrap; /* css-3 */ | ||
Line 22: | Line 12: | ||
} | } | ||
p.pre, p.code | p.pre, p.code, p.output, p.syntax, p.pre pre.syntax { | ||
color: #000; | color: #000; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
Line 28: | Line 18: | ||
border: 1px dashed #4169E1; | border: 1px dashed #4169E1; | ||
font-family: Consolas,"Liberation Mono",monospace; | font-family: Consolas,"Liberation Mono",monospace; | ||
line-height: | font-size: 12.7px; | ||
line-height: 13.97px; | |||
vertical-align: baseline; | vertical-align: baseline; | ||
white-space: pre; | white-space: pre; } | ||
} | |||
span.squareb { | span.squareb { | ||
font-weight: bold; | font-weight: bold; | ||
color: | color: blue; | ||
} | } | ||
span.literal { | span.literal { | ||
font-style: normal; | font-style: normal; | ||
color: # | color: #601010; | ||
} | } | ||
Line 72: | Line 43: | ||
color: green; | color: green; | ||
} | } | ||
.pageBreak { page-break-before: always; } | .pageBreak { page-break-before: always; } | ||
table, table.list { | |||
table, table.list | |||
margin: 1em 1em 1em 0; | margin: 1em 1em 1em 0; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
Line 95: | Line 53: | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
th, td, .list th, .list | th, td, .list th, .list td { | ||
border: 1px #aaa solid; | border: 1px #aaa solid; | ||
padding: 0.5em; | padding: 0.5em; | ||
Line 102: | Line 60: | ||
} | } | ||
th, .list th { | th, .list th { | ||
font-style: italic; | font-style: italic; | ||
Line 120: | Line 65: | ||
} | } | ||
th var, th var.term { | th var, th var.term { | ||
font-weight: bold; | font-weight: bold; | ||
color: black; | color: black; | ||
} | } | ||
Line 160: | Line 97: | ||
} | } | ||
code, code.output { | |||
code, | |||
background-color: #F0F0F9; | background-color: #F0F0F9; | ||
} | } | ||
Line 226: | Line 131: | ||
} | } | ||
var.product { | var.product { | ||
color: black; | color: black; | ||
font-style: | font-style: italic; | ||
font-weight: normal; | font-weight: normal; | ||
font-size: 100%; | font-size: 100%; | ||
} | } | ||
var.product a { | |||
var. | color: #002bb8; /* Otherwise product links are very faint */ | ||
color: | |||
} | } | ||
var.camel { | var.camel { | ||
Line 251: | Line 146: | ||
} | } | ||
pre var { | pre var { | ||
font-weight: bold; | font-weight: bold; | ||
Line 296: | Line 186: | ||
} | } | ||
.caption { | |||
caption { | font-size: 11px; | ||
color: #601010; | |||
font-size: | |||
text-align: center; | text-align: center; | ||
line-height: 100%; | line-height: 100%; | ||
margin-left: | margin-left: 15em; | ||
margin-right: 15em; | |||
margin-right: | |||
margin-top: 1em; | margin-top: 1em; | ||
margin-bottom: 1em; | margin-bottom: 1em; | ||
} | } | ||
.warning { | |||
.warning | |||
color: #990000; | color: #990000; | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
.smallAndTightList { | .smallAndTightList { | ||
line-height: | font-family: Verdana, Arial, Helvetica, sans-serif; | ||
font-size: 11.5px; | |||
font-style: italic; | |||
line-height: 1em; | |||
color: #00CC33; | |||
background-color: #eeeed3; | |||
text-indent: 50px; | |||
list-style-position: inside; | |||
list-style-type: square; | |||
padding: 6px; | |||
margin: 2px; | |||
} | } | ||
Line 394: | Line 229: | ||
} | } | ||
ol.low-al li { | ol.low-al li { | ||
list-style-type:lower-alpha; | list-style-type:lower-alpha; | ||
} | } | ||
/** * Allow limiting of which header levels are shown in a TOC; | /** * Allow limiting of which header levels are shown in a TOC; | ||
* <div class="toclimit-3">, for instance, will limit to | * <div class="toclimit-3">, for instance, will limit to | ||
* showing ==headings== and ===headings=== but no further. | * showing ==headings== and ===headings=== but no further. | ||
* Used in [[Template:TOCright]] | |||
* Used in [[Template:TOCright]] | |||
*/ | */ | ||
Line 418: | Line 251: | ||
.toclimit-6 .toclevel-5 ul, | .toclimit-6 .toclevel-5 ul, | ||
.toclimit-7 .toclevel-6 ul { | .toclimit-7 .toclevel-6 ul { | ||
display: none; } | |||
} | |||
/* squeeze footer list items a bit to fit Sirius copyright claim */ | /* squeeze footer list items a bit to fit Sirius copyright claim */ | ||
#footer li { | #footer li { | ||
margin:0 1em; | |||
} | } | ||
Line 447: | Line 269: | ||
} | } | ||
h4 { | |||
font-size: | font-size: 110%; | ||
} | } | ||
Line 458: | Line 280: | ||
tt { | tt { | ||
font-family: Consolas, "Liberation Mono", monospace; | font-family: Consolas, "Liberation Mono", monospace; | ||
} | } | ||
Line 480: | Line 286: | ||
} | } | ||
/ | /* make Sidebar wider (to view change in Firefox: hold Shift while clicking Reload) */ | ||
/* this minor adjustment prevents some wrapping of items */ | |||
#column-content { margin-left: -12.5em } /* IE doesn't seem to respond to this one */ | |||
#column-content #content { margin-left: 12.5em } /* IE doesn't seem to respond to this one */ | |||
#p-logo a, #p-logo a:hover { width: 12.5em } | |||
.portlet { width: 11.8em } | |||
#p-cactions { left: 11.8em } | |||
/* | |||
. | |||
} | |||
/* | |||
} | |||
/* | |||
#p- | |||
#p- | |||
} | |||
} | |||
} | |||
Revision as of 17:30, 25 October 2016
/* CSS placed here will be applied to all skins */ pre { overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ overflow-y: hidden; /* overflow-x above messes up Chrome, this is the fix. Sigh */ white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ /* width: 99%; */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } p.pre, p.code, p.output, p.syntax, p.pre pre.syntax { color: #000; background-color: #f9f9f9; padding: 5px 5px 5px 10px; border: 1px dashed #4169E1; font-family: Consolas,"Liberation Mono",monospace; font-size: 12.7px; line-height: 13.97px; vertical-align: baseline; white-space: pre; } span.squareb { font-weight: bold; color: blue; } span.literal { font-style: normal; color: #601010; } span.term { font-style: italic; color: #000; } span.boldGreen { font-weight: bold; color: green; } .pageBreak { page-break-before: always; } table, table.list { margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; } th, td, .list th, .list td { border: 1px #aaa solid; padding: 0.5em; text-align: left; vertical-align: top; } th, .list th { font-style: italic; background: #f2f2f2; } th var, th var.term { font-weight: bold; color: black; } table.optionTable { margin: 0; border: none; border-collapse: collapse; } table.noBorder { margin: 0; border: none; border-collapse: collapse; background-color: transparent; } table.noBorder th, table.noBorder td { border: none; } table.nested { margin: 0; border: hidden; border-collapse: collapse; } table table.nested th { border: hidden; } code, code.output { background-color: #F0F0F9; } var { font-style: normal; font-weight: bold; font-size: 95%; color: #555; } /* tentatively removed from above: text-transform: capitalize; */ /* link-within-var */ var a:link { color: #5353EF; } var a:visited { color: #5353EF; } var.syntax { font-size: 100%; color: black; } var.term { text-transform: none; font-style: italic; font-weight: normal; font-size: 100%; color: black; } var.product { color: black; font-style: italic; font-weight: normal; font-size: 100%; } var.product a { color: #002bb8; /* Otherwise product links are very faint */ } var.camel { text-transform: none; } pre var { font-weight: bold; } .pageSubtitle { font-size:120%; color:black; font-weight: bold; } a:visited { color: #002bb8; } /* The "normal" source of the #bodyContent styles is the monobook css file on lin875 */ /* make links to non-wiki targets same color as non-var wiki links */ #bodyContent a.external:link, #bodyContent a.external:visited { color: #002bb8; } .showVisit a:link { color: #002bb8; } .showVisit a:visited { color: #5a3696; } .showVisit a:hover { text-decoration: underline; } .showVisit a:active { color: #faa700; } .showVisit a.new, #p-personal a.new { color: #ba0000; } .showVisit a.new:visited, #p-personal a.new:visited { color: #a55858; } .caption { font-size: 11px; color: #601010; text-align: center; line-height: 100%; margin-left: 15em; margin-right: 15em; margin-top: 1em; margin-bottom: 1em; } .warning { color: #990000; font-style: italic; } .smallAndTightList { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11.5px; font-style: italic; line-height: 1em; color: #00CC33; background-color: #eeeed3; text-indent: 50px; list-style-position: inside; list-style-type: square; padding: 6px; margin: 2px; } ul.nobul li { list-style-type: none; list-style-image: none; margin-left: 0; } ul.nobulnoindent li { list-style-type: none; list-style-image: none; margin-left: 0; text-indent: -1.5em; } ol.low-al li { list-style-type:lower-alpha; } /** * Allow limiting of which header levels are shown in a TOC; * <div class="toclimit-3">, for instance, will limit to * showing ==headings== and ===headings=== but no further. * Used in [[Template:TOCright]] */ .toclimit-2 .toclevel-1 ul, .toclimit-3 .toclevel-2 ul, .toclimit-4 .toclevel-3 ul, .toclimit-5 .toclevel-4 ul, .toclimit-6 .toclevel-5 ul, .toclimit-7 .toclevel-6 ul { display: none; } /* squeeze footer list items a bit to fit Sirius copyright claim */ #footer li { margin:0 1em; } /* use same red as Sirius PDFs */ h1 { color: #660000; font-family: Arial, Helvetica, sans-serif; } h2 { font-family: Arial, Helvetica, sans-serif; color: #660000; } h4 { font-size: 110%; } h6 { font-style: italic; font-size: 94%; } tt { font-family: Consolas, "Liberation Mono", monospace; } code { font-family: Consolas,"Liberation Mono",monospace; } /* make Sidebar wider (to view change in Firefox: hold Shift while clicking Reload) */ /* this minor adjustment prevents some wrapping of items */ #column-content { margin-left: -12.5em } /* IE doesn't seem to respond to this one */ #column-content #content { margin-left: 12.5em } /* IE doesn't seem to respond to this one */ #p-logo a, #p-logo a:hover { width: 12.5em } .portlet { width: 11.8em } #p-cactions { left: 11.8em }