MediaWiki:Vector.css: Difference between revisions

no edit summary
(Created page with "→‎* Typograhy refresh: →‎Test new Helvetica-based body font stack: html, body { font-family: "Nimbus Sans L", "Helvetica Neue", Arial, Helvetica, sans-serif; } /*...")
 
No edit summary
Line 1: Line 1:
/*
/* Fixes for Typography refresh:
  * Typograhy refresh
* 1. margin for H1 (in talk pages)
* 2. lists line-height
  * See also [[Bugzilla:64653]]
  */
  */
div#content h1 {
    margin-top: 1em;
}
div#content #firstHeading {
    margin-top: 0;
}
div#content dd,
div#content ol,
div#content ul {
    line-height: 1.6;
}
/* Fix for changelist legend due to above fix (which will probably be merged at some point,
  so this should probably be scoped in mediawiki.special.changeslist.legend.css) */
div#content .mw-changeslist-legend dd {
line-height: 1.3em;
}
/* Don't display some stuff on the main page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #footer-info-lastmod,
body.action-view.page-Main_Page #siteSub,
body.action-view.page-Main_Page #contentSub,
body.action-view.page-Main_Page h1.firstHeading {
    display: none !important;
}
/* Position Main Page top banner */
body.page-Main_Page #mp-topbanner {
  margin-top: 0 !important;
}
/* Position coordinates */
#coordinates {
    position: absolute;
    top: 0;
    right: 0;
    float: right;
    margin: 0;
    padding: 0;
    line-height: 1.5em;
    text-align: right;
    text-indent: 0;
    font-size: 85%;
    text-transform: none;
    white-space: nowrap;
}
/* For positioning icons at top-right, used in Templates
  "Spoken Article" and "Featured Article" */
div.topicon {
    position: absolute;
    top: -2.3em;
    margin-right: -10px;
    display: block !important;
}
/* FR topicon position */
div.flaggedrevs_short {
    position: absolute;
    top: -3em;
    right: 100px;
    z-index: 1;
    margin-left: 0;
    /* Because this is not yet a topicon, we emulate its behavior,
      this ensures compatibility with edit lead section gadget. */
    margin-right: -10px;
}


/* Test new Helvetica-based body font stack */
/* On rtl interfaces, we need to override the defaults.
html,
  It is content included (so ltr), but positioned in part of the rtl interface. */
body {
body.rtl #protected-icon {
font-family: "Nimbus Sans L", "Helvetica Neue", Arial, Helvetica, sans-serif;
    /* @noflip */
    left: 55px;
}
}
body.rtl #spoken-icon,
/* Force lining numbers in headers (for fonts like Georgia) */
body.rtl #commons-icon {
div#content h1,
    /* @noflip */
div#content h2,
    left: 30px;
div#content #firstHeading {
}
-moz-font-feature-settings: "lnum";
body.rtl #featured-star {
-webkit-font-feature-settings: "lnum";
    /* @noflip */
font-feature-settings: "lnum";
    left: 10px;
}
 
/* Menu over FR box */
div.vectorMenu div {
    z-index: 2;
}
 
/* Display "From Wikipedia, the free encyclopedia" */
#siteSub {
    display: inline;
    font-size: 92%;
}
}


/* Fix top margin for H1 in content */
/* Styling for updated markers on watchlist, history and recent/related changes */
div#content h1 {
li.mw-changeslist-line-watched,
margin-top: 1em;
li.mw-history-line-updated {
    list-style-image: url(//upload.wikimedia.org/wikipedia/commons/c/c2/ChangedBulletVector.png);
}
}
div#content #firstHeading {
 
margin-top: 0;
/* Blue instead of yellow padlock for secure links. */
#bodyContent a.external[href ^="https://"],
.link-https {
    background: url(//upload.wikimedia.org/wikipedia/en/0/00/Lock_icon_blue.gif) center right no-repeat;
    /* @noflip */
    padding-right: 16px;
}
}