MediaWiki:Common.css: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Remove !important from links to allow plainlinks to override icons.)
(Clarify comment about Mozilla icon on MozillaWiki links.)
Line 32: Line 32:
}
}


/* Add Mozilla icon to wiki links */
/* Add Mozilla icon to wiki links to discourage bad practice */
div#mw-content-text a.external[href^="http://wiki.mozilla.org"],
div#mw-content-text a.external[href^="http://wiki.mozilla.org"],
div#mw-content-text a.external[href^="https://wiki.mozilla.org"] {
div#mw-content-text a.external[href^="https://wiki.mozilla.org"] {

Revision as of 21:14, 2 April 2014

/* CSS placed here will be applied to all skins */

/* When the navbar grows, it disappears off the top */
/* https://bugzilla.mozilla.org/show_bug.cgi?id=893960 */
#header-contents {
  top: 0;
  text-align: right;
}

#header {
  height: 75px;
}

/* Correct directionality when page dir is different from site/user dir */
.mw-content-ltr ul,
.mw-content-rtl .mw-content-ltr ul {
	/* @noflip */
	margin: 0.3em 0 1em 1.6em;
}

.mw-content-ltr ol,
.mw-content-rtl .mw-content-ltr ol {
	/* @noflip */
	margin: 0.3em 0 1em 1.6em;
}

/* Add Bugzilla icon to BMO links */
div#mw-content-text a.external[href^="http://bugzilla.mozilla.org"],
div#mw-content-text a.external[href^="https://bugzilla.mozilla.org"] {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAAYBpQ0NQSUNDIFByb2ZpbGUAADjLrZG7SgNREIa/syKCaBrXC4KwhWiKKEGbCCKYFCpaxCCYpNvsrjGwbg67x9sD2At2YuEFrESsxDIPYCeIhQiCDyAINiJrcZQ0igj+MPDN38z8M2A0bCl9A1gLVFiYyVrFUtlqu8OgEwBsJ5LT+fwCP+r1FgFwM2JL6fM3dYTFUhmECZhVzUnArGieBMxNJRWIPGA6q7YLwgVS4VIhB2IXSFQ1HwKJiuYLILHhVBWIBpAO3FoA4hnIuF7kgJEElCNDBcYBMFgslS29mpqHqQFouW565QjOTqF3qOkl+6B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362UXMdd98r3hf0yAVLYPPhHy/SWDrCu8Di21alIaswI4FzU365XkXxKcES6kalV4RQj6PV0gPRp5hfyvmJnsteTj7G9qR7fWyMxsGSGEZCqVzlqt1uEnFBtVbI5zOMMAAAAASUVORK5CYII=") center right / 14px no-repeat;
    padding-right: 16px;
}

/* Add Mozilla icon to wiki links to discourage bad practice */
div#mw-content-text a.external[href^="http://wiki.mozilla.org"],
div#mw-content-text a.external[href^="https://wiki.mozilla.org"] {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAMlJREFUWMPtl7sJwzAQQDWIB3GGSJpAiuwR75Et4hUCLlynyABxn1aVmoAvJ7iDQ+hnYnCRK57B4kk8rGtsAMBsidEADfCP/eHI7JABeSOTWO/o3SGAfMi5CIdpkadwPZbWWvbCgJEOhYCGNkMGGdojc8HvYwG3hFw6jHkRUEkXBpwXbF6DKTYDpU0zXUftV3EZ1y0J8AddxT03iXlhBnKybm2Ai0y555HwTxHX/hJgEwH3hG80QAM0QAM0QAP+JmBcNUD/CzRgS77eSXt4B21UUwAAAABJRU5ErkJggg==") center right / 14px no-repeat;
    padding-right: 16px;
}

/* Default skin for navigation boxes */

table.navbox {            /* Navbox container style */
  border: 1px solid #aaa;
  width: 100%; 
  margin: auto;
  clear: both;
  font-size: 88%;
  text-align: center;
  padding: 1px;
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
  margin-top: -1px;            /* (doesn't work for IE6, but that's okay)       */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
  text-align: center;      /* Title and above/below styles */
  padding-left: 1em;
  padding-right: 1em;
}
.navbox-group {            /* Group style */
  white-space: nowrap;
  text-align: right;
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
.navbox, .navbox-subgroup {
  background: #fdfdfd;     /* Background color */
}
.navbox-list {
  border-color: #fdfdfd;   /* Must match background color */
}
.navbox-title,
table.navbox th {
  background: #ccccff;     /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
  background: #ddddff;     /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background: #e6e6ff;     /* Level 3 color */
}
.navbox-even {
  background: #f7f7f7;     /* Even row striping */
}
.navbox-odd {
  background: transparent; /* Odd row striping */
}
 
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;   /* [[MediaWiki:Common.js]]are styled here    */
    text-align: right;     /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],   */
}                          /* so they need to be the same width.         */


/* Standard Navigationsleisten, aka box hiding thingy
   from .de.  Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
    margin: 0;
    padding: 4px;
    border: 1px solid #aaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #fff;
    margin: 0;
    padding: 2px;
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    background-color: #ccf;
    position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0;
    padding: 0;
    line-height: 1px;
    clear: both;
}
a.NavToggle {
    position: absolute;
    top: 0;
    right: 3px;
    font-weight: normal;
    font-size: 90%;
}

/* Suppress title on front page */
body.page-Main_Page h1.firstHeading { display:none; }

/* For "sidenote" template */
.sidenote {
  float: right;
  margin: 5px;
  max-width: 300px;
  clear: both;
}

body[class*='page-Netpolicy_ISPM'] h2,
body[class*='page-Netpolicy_ISPM'] h3 {
  clear: both;
}