MediaWiki:Common.css

From m204wiki
Revision as of 02:54, 7 January 2014 by Admin (talk | contribs)
Jump to navigation Jump to search

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 be applied to all skins */
/* See also MediaWiki:Vector.css, MediaWiki:MonoBook.css, MediaWiki:Cologneblue.css, MediaWiki:Standard.css */
 
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.syntaxUL, p.pre pre.syntax {
    color: #000;
    background-color: #f9f9f9;
    padding: 5px 5px 5px 10px;
    border: 1px dashed #4169E1;
    font-family: Consolas,"Liberation Mono",monospace;
    line-height: 1.2;
    vertical-align: baseline;
    white-space: pre; }

p.syntaxUL {
    line-height: 1; 
    display: table;
}
 
span.squareb {
    font-weight: bold;
    color: black;
}
 
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 element variations   *************************************************************  */
 
/* thJustBold for a table with non-heading <th>s bold but not italicized -- also see tr.head, below  */
table, table.list table.thJustBold {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
th, td, .list th, .list td, .thJustBold th, .thJustBold td {
    border: 1px #aaa solid;
    padding: 0.5em;
    text-align: left;
    vertical-align: top;
}
 
td.bold  {
    font-weight: bold;
}

/* JAL added explicit bkgrd color to preserve it in table column *headings* in a class=thJustBold table  */
tr.head > th {
    vertical-align: bottom;
    white-space: nowrap;
    font-style: normal;
    background: #f2f2f2;
}

th, .list th {
    font-style: italic;
    background: #f2f2f2;
}
 
/* if <th> in first columns in table *content* in a class thJustBold table, make sure tr class=head for column headings  */
.thJustBold th {
    font-style: normal;
    background: #f9f9f9;
}

th var, th var.term {
    font-weight: bold;
    font-size: 100%;
    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;
}
 
/* for SoftSpy messages */
table.message {
    margin: 0;
    border: none;
    border-collapse: collapse;
    background-color: transparent;
}
 
table.message th {
    border: none;
    font-style: normal;
    white-space: nowrap;
}

table.message td {
    border: none;
}

table.message tr:first-child th {
    min-width: 7em;
}

table.message tr:first-child td {
    font-weight: bold;
}

table.message~hr, p.syntaxUL~hr {
    height: 2px;
    margin: 0;
    padding: .5px 0 .5px 0;
    border: 3px 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;
}
 
/* Sirius style was italic */
var.product {
    text-transform: none;
    color: black;
    font-style: normal;
    font-weight: normal;
    font-size: 100%;
}
 
/* JAL added 04/13 */
var.book {
    color: black;
    font-style: italic;
    font-weight: normal;
    font-size: 100%;
}

/* darker color used when font-style was italic */
/* Otherwise product links are very faint */
/* var.product a { color: #002bb8; }   */
 
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-weight: bold;
    font-size: 110%;
    padding-bottom: .6em;
}

/* deprecated until further notice; see css for caption, above */
.caption {
    color: black;
    font-size: 100%;
    font-weight: bold;
    text-align: center;
    line-height: 100%;
    margin-left: 15em;
    margin-right: 15em;
    margin-top: 2em;
    margin-bottom: 2em;
}
 

/* enclose non-single-paragraph Notes with blockquote class="note". Otherwise, use p class="note" */
.note   {
    margin-left: 15px;
    margin-right: 30px;
    border: none;
    padding: 0px;
}

li *.note, td *.note, th *.note   {
    margin-left: 10px;
    margin-right: 30px;
    border: none;
    padding: 0px;
}
 
/* enclose non-single-paragraph Cautions & Warnings with blockquote class="warn". Otherwise, use p class="warn" */
.warn   {
    margin-left: 20px;
    margin-right: 60px;
    text-align: justify;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 5px 5px 5px 10px;
}

/* used by message  on Sirius $function pages -- consider using .warn class (above) instead   */
.warning   {
    color: #990000;
    font-style: italic;
}

.smallAndTightList {
    line-height: 1.3;
}
 
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;
}
 
/* square bullets for lower-level nested lists  */
ul li ul {
    list-style-type:square;
    list-style-image: none;
}

/* HTML coding for types of ordered list doesn't work in wiki, hence the following CSS */
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;
    font-size:105%;
}

code {
    font-family: Consolas,"Liberation Mono",monospace;
}


/**
 * 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:TOC]]
 */
.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;
}

/** 
 * make toggle text/icon display to the left of toggled content; 
 * but elements after this floated element will try to flow around it,
 * so after the collapsible element's closing tag, specify <br close="all">
 */
.mw-collapsible span.mw-collapsible-toggle { float: left; }

/* indent collapsed text to line-up with h2 title text  */
div.mw-collapsible-content  {
   margin-left:2.32em;
}


/* ************************changes for Vector default **************************************** */
/* hides sidebar Toolbox (so we can substitute our own set of items) */
#p-tb { display:none; 
}
 
/* for Monobook, widens sidebar boxes a tiny bit */
.portlet  {
   width: 11.75em;
}

/* for Monobook, reduces (moves right) page content area a tiny bit  */
/* b/c IE doesn't respond, need to snug box padding (see 'portlet pBody', below) */
div#content  {   
   margin-left: 12.4em;
}

/* three tweaks to increase Vector sidebar width and make associated adjustments; see also MediaWiki:Vector.css */
div#mw-panel { 
   width: 11.5em; 
}
#left-navigation { 
   left: 10.5em; 
}
div#content.mw-body  {   
   margin-left: 10.5em;
}

/* for Monobook, for IE, lets sidebar box close on right by reducing the padding to right */
.portlet .pBody {
   padding-right: .1em;
}

/* for Vector, widens sidebar boxes a tiny bit by larger padding to right */
.portal .body {
   padding-right: 1em;
} 
  
/* for Monobook, removes box from containing class of "What's New" element; tweaks bottom space */
#p-\.C2\.A0.generated-sidebar.portlet .pBody {
   background-color:transparent;
   border:0px hidden transparent;
   padding-bottom: 0em;  
}

/* for Monobook, removes bullet graphic, changes font size and left margin for "What's New" */
#p-\.C2\.A0.generated-sidebar.portlet ul {
   list-style-type: none;
   list-style-image: none;
   font-style: normal;
   font-size: 100%;
   margin: .75em 0 0 .75em;
}   
  
/* hides Blank list item but preserves its space so sibling list element gets extra cushion */ 
#n-Blank {
   visibility:hidden;
} 

/* in Vector, tweaks blank list item below "What's New" element */
#mw-panel div.portal div.body ul li#n-Blank {
    line-height: .5em;
    padding-bottom: 0em;
}

/* tweaks list containing "What's News" element in Monobook and Vector */
#p-\.C2\.A0 ul {
   line-height: 1em;
   padding-bottom: 0em;
}

/* for Vector, makes left margin for "What's New" same as list items in lower sections */
/* default for this was .5; needed to precisely specify the "first" and "persistent"  */
#mw-panel.noprint.collapsible-nav .portal.first.persistent div.body  {
   margin-left: 1.25em;
} 

/* tweaks Vector sidebar list headings   */
div#mw-panel div.portal h5 { Font-size: .80em; 
}

/* ************************************************************************************* */